Changeset 85 in dev for ProjectEditor/SubOperation.cpp
- Timestamp:
- Mar 30, 2007, 4:19:07 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/SubOperation.cpp
r84 r85 167 167 return 0; 168 168 } 169 bool IsNumberChar( char c ){ 170 if(c>='0'&&c<='9'){ 171 return true; 172 } 173 return false; 174 } 169 175 BOOL IsVariableChar(char c){ 170 176 if((c>='A'&&c<='Z')||(c>='a'&&c<='z')||(c>='0'&&c<='9')|| … … 204 210 int pos = (int)temp3 - (int)temp1; 205 211 if( pos == 0 ){ 206 if( ! IsVariableChar( temp1[len2]) ){212 if( !( IsVariableTopChar( temp1[len2] ) || IsNumberChar( temp1[len2] ) ) ){ 207 213 break; 208 214 } 209 215 } 210 216 else{ 211 if( !IsVariableChar( temp1[pos-1] ) 212 && !IsVariableChar( temp1[pos+len2] ) ){ 217 if( !( IsVariableTopChar( temp1[pos-1] ) || IsNumberChar( temp1[pos-1] ) ) 218 && !( IsVariableTopChar( temp1[pos+len2] ) || IsNumberChar( temp1[pos+len2] ) ) 219 ){ 213 220 break; 214 221 } … … 569 576 else if(str[0]=='t'||str[0]=='T'){ 570 577 if(lstrcmpi(str,"Then")==0) return -1; 578 if(lstrcmpi(str,"This")==0) return -1; 571 579 if(lstrcmp(str,"True")==0) return -1; 572 580 if(lstrcmpi(str,"Type")==0) return COM_TYPE;
Note:
See TracChangeset
for help on using the changeset viewer.