Changeset 957 for code/branches/core2/src/util
- Timestamp:
- Mar 30, 2008, 5:38:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/util/String.cc
r947 r957 72 72 // 3) ;comment in unreal tournament config-file style 73 73 // 4) //comment in code style 74 if (teststring[0] == '#' || teststring[0] == '%' || teststring[0] == ';' || (teststring[0] == '/' && teststring[0] == '/')) 75 return true; 74 if (teststring.size() >= 2) 75 { 76 if (teststring[0] == '#' || teststring[0] == '%' || teststring[0] == ';' || (teststring[0] == '/' && teststring[1] == '/')) 77 return true; 78 } 79 else if (teststring.size() == 1) 80 { 81 if (teststring[0] == '#' || teststring[0] == '%' || teststring[0] == ';') 82 return true; 83 } 76 84 77 85 return false;
Note: See TracChangeset
for help on using the changeset viewer.