Changeset 1210
- Timestamp:
- May 1, 2008, 12:11:03 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/util/String.cc
r1111 r1210 65 65 { 66 66 unsigned int pos1 = 0; 67 unsignedint pos2 = str.size() - 1;67 int pos2 = str.size() - 1; 68 68 for (; pos1 < str.size() && (str[pos1] == ' ' || str[pos1] == '\t' || str[pos1] == '\n'); pos1++); 69 for (; pos2 > = 0&& (str[pos2] == ' ' || str[pos2] == '\t' || str[pos2] == '\n'); pos2--);69 for (; pos2 > 0 && (str[pos2] == ' ' || str[pos2] == '\t' || str[pos2] == '\n'); pos2--); 70 70 return str.substr(pos1, pos2 - pos1 + 1); 71 71 }
Note: See TracChangeset
for help on using the changeset viewer.