Changeset 7214 in orxonox.OLD for branches/std/src/lib/util/substring.cc
- Timestamp:
- Mar 10, 2006, 7:18:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/util/substring.cc
r7212 r7214 63 63 } 64 64 65 /** 66 * An empty String 67 */ 68 const std::string SubString::emptyString = ""; 69 70 65 71 66 72 unsigned int SubString::split(const std::string& string, char splitter) … … 101 107 102 108 /** 103 * splits line into tokens and stores them in ret. Supports delimiters, escape characters, 109 * @brief splits line into tokens and stores them in ret. 110 * @param ret the Array, where the Splitted strings will be stored in 111 * @param offsets an Array of Offsets, here the distance from the inputstring 112 * to the beginning of the current token is stored 113 * @param line the inputLine to split 114 * @param delimiters a String of Delimiters (here the input will be splitted) 115 * @param escape_char: Escape carater (escapes splitters) 116 * @param safemode_char: the beginning of the safemode is marked with this 117 * @param comment_char: the beginning of a comment is marked with this: (until the end of a Line) 118 * @param start_state: the Initial state on how to parse the String. 119 * @returns SPLIT_LINE_STATE the parser was in when returning 120 * 121 * Supports delimiters, escape characters, 104 122 * ignores special characters between safemode_char and between comment_char and linend '\n'. 105 123 * 106 * @returns SPLIT_LINE_STATE the parser was in when returning107 124 */ 108 125 SPLIT_LINE_STATE SubString::splitLine(std::vector<std::string>& ret, std::vector<unsigned int>& offsets,
Note: See TracChangeset
for help on using the changeset viewer.