Changeset 592 for code/branches/FICN/src/misc
- Timestamp:
- Dec 17, 2007, 8:59:31 PM (17 years ago)
- Location:
- code/branches/FICN/src/misc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/misc/String2Number.h
r560 r592 15 15 * Number in string can be decimal, hexadecimal or octal 16 16 * 17 * @aut or Nicolas Perrenoud<nicolape@ee.ethz.ch>17 * @author Nicolas Perrenoud<nicolape@ee.ethz.ch> 18 18 * 19 19 * @example -
code/branches/FICN/src/misc/Tokenizer.h
r507 r592 12 12 * Returns the result as a vector<string> object 13 13 * 14 * @aut or Nicolas Perrenoud<nicolape@ee.ethz.ch>14 * @author Nicolas Perrenoud<nicolape@ee.ethz.ch> 15 15 */ 16 16 … … 18 18 { 19 19 vector<std::string> tokens; 20 20 21 21 // Skip delimiters at beginning. 22 22 std::string::size_type lastPos = str.find_first_not_of(delimiters, 0); … … 32 32 // Find next "non-delimiter" 33 33 pos = str.find_first_of(delimiters, lastPos); 34 } 35 return tokens; 34 } 35 return tokens; 36 36 } 37 37
Note: See TracChangeset
for help on using the changeset viewer.