21 #include <qfileinfo.h>
36 if (!f.open (IO_ReadOnly))
39 QByteArray FileContent = f.readAll ();
40 File = QString (FileContent);
47 while((i=File.find(
"//", i)) >= 0) {
48 j = File.find(
'\n', i+2);
56 while((i=File.find(
"/*", i)) >= 0) {
57 j = File.find(
"*/", i+2);
61 File.remove(i, j-i+2);
65 Expr.setCaseSensitive(
true);
66 Expr1.setCaseSensitive(
true);
68 Expr.setPattern(
"\\bmodule\\b");
69 k = File.findRev(Expr, k);
73 Expr.setPattern(
"\\bendmodule\\b");
74 i = File.find(Expr, k+7);
77 s = File.mid(k+7, i-k-7);
79 Expr.setPattern(
"\\b");
83 j = s.find(Expr, i+1);
95 s = s.mid(i+1, j-i-1);
105 Expr.setCaseSensitive(
true);
106 Expr1.setCaseSensitive(
true);
110 Expr.setPattern(
"(\\binput\\b|\\boutput\\b|\\binout\\b)");
111 Expr1.setPattern(
"(\\b)");
112 while((i=s.find(Expr, i)) >= 0) {
113 j = s.find(Expr1, i+1);