development/Common/Utility/source/Console.cpp
//! Parse line into tokens separated by one or more spaces
//! Use "some text with embedded spaces" to treat that as a one token
Parse line into tokens separated by one or more spaces
Use "some text with embedded spaces" to treat that as a one token
Parse line into tokens separated by one or more spaces Use " some text with embedded spaces " to treat that as a one token
std::vector<std::string> commandParser(const std::string& line)
    {
        boost::escaped_list_separator<char> sep('\\', ' ', '\"');
        boost::tokenizer<boost::escaped_list_separator<char> > tokenizer(line, sep);
        std::vector<std::string> result(tokenizer.begin(), tokenizer.end());
        return result;
    }
std :: vector < std :: string > commandParser ( const std :: string & line ) { boost :: escaped_list_separator < char > sep ( ' \\ ' , ' ' , ' \" ' ) ; boost :: tokenizer < boost :: escaped_list_separator < char > > tokenizer ( line , sep ) ; std :: vector < std :: string > result ( tokenizer . begin ( ) , tokenizer . end ( ) ) ; return result ; }
Parse line into tokens separated by one or more spaces
Use "some text with embedded spaces" to treat that as a one token
Parse line into tokens separated by one or more spaces Use " some text with embedded spaces " to treat that as a one token