Skip to content
Snippets Groups Projects
Commit b32979b0 authored by rosen's avatar rosen
Browse files

fix tokenize bug

parent 0a8252df
No related branches found
No related tags found
No related merge requests found
...@@ -237,7 +237,7 @@ inline void TokenizeString(std::string const& s, char const* d, C& ret, bool ski ...@@ -237,7 +237,7 @@ inline void TokenizeString(std::string const& s, char const* d, C& ret, bool ski
std::string::const_iterator beg; std::string::const_iterator beg;
bool in_token = false; bool in_token = false;
for( std::string::const_iterator it = s.begin(), end = s.end(); it != end; ++it ) { for( std::string::const_iterator it = s.begin(), end = s.end(); it != end; ++it ) {
if( delims[*it] ) { if( delims[(unsigned char)*it] ) {
if( in_token ) { if( in_token ) {
output.push_back(typename C::value_type(beg, it)); output.push_back(typename C::value_type(beg, it));
in_token = false; in_token = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment