Changeset 381 in dev for trunk/abdev/BasicCompiler_Common/Compile.cpp
- Timestamp:
- Dec 19, 2007, 3:31:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Compile.cpp
r372 r381 49 49 } 50 50 token[i] = source[pos]; 51 } 52 } 53 void GetCustomToken( char *token, const char *source, int &pos, char delimitation, bool isEscapeSequence ) 54 { 55 for( int i=0; ; i++, pos++ ){ 56 if( isEscapeSequence ) 57 { 58 if( source[pos] == 1 && source[pos+1] == delimitation ) 59 { 60 token[i] = 0; 61 pos++; 62 break; 63 } 64 } 65 else 66 { 67 if( source[pos] == delimitation ) 68 { 69 token[i] = 0; 70 break; 71 } 72 } 73 74 token[i] = source[pos]; 75 76 if( source[pos] == '\0' ) 77 { 78 break; 79 } 51 80 } 52 81 }
Note:
See TracChangeset
for help on using the changeset viewer.