Helper class to tokenize easily a string.
More...
|
| static std::vector< std::string > | tokenize (const std::string &str, const std::string &delimiters=" ") |
| | tokenize a given string More...
|
| |
Helper class to tokenize easily a string.
| std::vector< std::string > cpe::string_tokenizer::tokenize |
( |
const std::string & |
str, |
|
|
const std::string & |
delimiters = " " |
|
) |
| |
|
static |
tokenize a given string
- Returns
- the vector of string tokenized
- Parameters
-
| str | the input string |
| delimiters | the delimiter between the string ("," ";" " " ...), default is empty space |
exemple std::vector <std::string> mesh_conv::string_tokenizer.tokenize(std::string("4.5,87.1,10"),",");
The documentation for this class was generated from the following files:
- /home/damien/work/2013_2014_teaching/2014_04_modelisation/2014_04_modelisation/spline/modelisation_tp2_parametrique_partie_1/libinterface/string_helper.hpp
- /home/damien/work/2013_2014_teaching/2014_04_modelisation/2014_04_modelisation/spline/modelisation_tp2_parametrique_partie_1/libinterface/string_helper.cpp