Parent Directory | Revision Log | Patch
revision 184 by torben, Fri Dec 12 13:57:10 2008 UTC | revision 185 by torben, Mon Dec 15 09:10:05 2008 UTC | |
---|---|---|
# | Line 146 namespace Util | Line 146 namespace Util |
146 | return str; | return str; |
147 | } | } |
148 | ||
149 | ||
150 | vector<string> str_split(string input) | |
151 | { | |
152 | string buf; | |
153 | stringstream ss(input); | |
154 | vector<string> tokens; | |
155 | while (ss >> buf) | |
156 | tokens.push_back(buf); | |
157 | return tokens; | |
158 | } | |
159 | ||
160 | ||
161 | vector<string> str_split(string input, string delimiter) | vector<string> str_split(string input, string delimiter) |
162 | { | { |
163 | vector<string> retval; | vector<string> retval; |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |