Public Member Functions | |
StringStripper (const std::string &separator) | |
std::vector< std::string > | strip (std::string line) |
strip strips the std::string into a std::vector of std::strings. |
It is mostly used to strip a name to be used in a name server. An example could be to strip the following name:
std::string name = "motor.electric.stepper.motor1"; std::vector<std::string> vec = StringStripper(".").strip(name);
Definition at line 31 of file StringStripper.h.
org::xmlBlaster::util::StringStripper::StringStripper | ( | const std::string & | separator | ) |
Definition at line 38 of file StringStripper.h.
std::vector<std::string> org::xmlBlaster::util::StringStripper::strip | ( | std::string | line | ) |
strip strips the std::string into a std::vector of std::strings.
If the input std::string terminates with a separator, then the last std::string in the std::vector will be empty. No separator appears in the return std::strings.
Definition at line 48 of file StringStripper.h.