Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/src/Module_wx/new/a.gura

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2115 - (show annotations) (download)
Mon May 7 07:13:52 2012 UTC (12 months, 2 weeks ago) by pxn11432
File size: 703 byte(s)
1 import(re)
2
3 search(fileName:string):map = {
4 stat = `start
5 readlines(fileName).each() {|line|
6 if (stat == `start) {
7 if (m = line.match(r'Gura_ImplementFunction\((\w+)')) {
8 stat = `function
9 } elsif (m = line.match(r'Gura_ImplementMethod\((\w+),\s*(\w+)')) {
10 stat = `method
11 }
12 } elsif (stat == `function) {
13 if (line.match(r'^#if\s+0')) {
14 printf("'%s'\n", m.group(1))
15 } elsif (line.match(r'^}')) {
16 stat = `start
17 }
18 } elsif (stat == `method) {
19 if (line.match(r'^#if\s+0')) {
20 //printf("'%s.%s'\n", m.group(1).replace('wx_', 'wx'), m.group(2))
21 } elsif (line.match(r'^}')) {
22 stat = `start
23 }
24 }
25 }
26 }
27 search(path.glob('*.cpp'))

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.