A
Ahmet Kilic
str = " uses
Windows, Messages, SysUtils, Classes, Controls, Forms, Dialogs,
Graphics,
Login_c, Login_i,
Utility_c, Utility_i,
Agent_i,
MMenu, // メニューオブジェクト
CtrlForm, // ç”»é¢èµ·å‹•åˆ¶å¾¡
CommonData, // 共有データä¿æŒã‚¯ãƒ©ã‚¹
ServerAccess, // 通信ラッピング層統括クラス
MasterList, // å称マスター管ç†ã‚¯ãƒ©ã‚¹
IniFileAccess, // iniファイル管ç†ã‚¯ãƒ©ã‚¹
MessageAccess, // 共通メッセージ管ç†ã‚¯ãƒ©ã‚¹
LogAccess, // ãƒã‚°å‡ºåŠ›åˆ¶å¾¡ã‚¯ãƒ©ã‚¹
TelephoneCommand, // 電話制御用コマンドクラス
TelephoneDataClass, // 電話制御用データクラス
ExtCtrls, jpeg, StdCtrls;
type "
str.scan(/^\s*uses\s*$(.*?)\s*,\s*(\S+)\s*;\s*^type/m) do |us|
names = $1
names.split(/,/).each do |name| # split the words(w+) only
sub_name = names.gsub(/\/*\s*(\S+)$/, "") # problem here
I think
puts " ===== sub names ======= #{ sub_name}"
# puts " >>>>>>> here uses #{ name}"
if /(\w+)/m =~ name
ref = $1
var = $1
# puts "@@@@@@@ here uses #{ var}"
if class_name
# puts " class name : #{class_name} reference class
name #{var} "
end
end
end
end
please help me abut this problem. I want to exclude or split the
comments.( japanese comment parts). I tried many combinations but still
problem.
Windows, Messages, SysUtils, Classes, Controls, Forms, Dialogs,
Graphics,
Login_c, Login_i,
Utility_c, Utility_i,
Agent_i,
MMenu, // メニューオブジェクト
CtrlForm, // ç”»é¢èµ·å‹•åˆ¶å¾¡
CommonData, // 共有データä¿æŒã‚¯ãƒ©ã‚¹
ServerAccess, // 通信ラッピング層統括クラス
MasterList, // å称マスター管ç†ã‚¯ãƒ©ã‚¹
IniFileAccess, // iniファイル管ç†ã‚¯ãƒ©ã‚¹
MessageAccess, // 共通メッセージ管ç†ã‚¯ãƒ©ã‚¹
LogAccess, // ãƒã‚°å‡ºåŠ›åˆ¶å¾¡ã‚¯ãƒ©ã‚¹
TelephoneCommand, // 電話制御用コマンドクラス
TelephoneDataClass, // 電話制御用データクラス
ExtCtrls, jpeg, StdCtrls;
type "
str.scan(/^\s*uses\s*$(.*?)\s*,\s*(\S+)\s*;\s*^type/m) do |us|
names = $1
names.split(/,/).each do |name| # split the words(w+) only
sub_name = names.gsub(/\/*\s*(\S+)$/, "") # problem here
I think
puts " ===== sub names ======= #{ sub_name}"
# puts " >>>>>>> here uses #{ name}"
if /(\w+)/m =~ name
ref = $1
var = $1
# puts "@@@@@@@ here uses #{ var}"
if class_name
# puts " class name : #{class_name} reference class
name #{var} "
end
end
end
end
please help me abut this problem. I want to exclude or split the
comments.( japanese comment parts). I tried many combinations but still
problem.