Changeset 1219 for code/trunk/src/util
- Timestamp:
- May 2, 2008, 10:44:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/String.cc
r1214 r1219 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.