![]() |
PandaRoot
|
Separates a string into substrings at arbitrary delimiters. More...
#include <PndStringSeparator.h>
Public Member Functions | |
PndStringSeparator () | |
~PndStringSeparator () | |
PndStringSeparator (std::string AInput, std::string ADelimiter=" ") | |
void | SetInput (std::string AInput) |
void | SetDelimiter (std::string ADelimiter) |
void | ResetVector () |
std::vector< std::string > | GetStringVector (void) |
std::string | Replace (std::string from, std::string to) |
void | Print () |
Protected Member Functions | |
void | TestFirst () |
void | TestLast () |
bool | GetIfFirst () |
bool | GetIfLast () |
Separates a string into substrings at arbitrary delimiters.
Separates an input string into substrings and stores them in a string vector. The separation criteria is a string of characters. If no delimiters are given the default delimiter " " is used.
## Example
Definition at line 31 of file PndStringSeparator.h.
|
inline |
Definition at line 33 of file PndStringSeparator.h.
Referenced by ~PndStringSeparator().
|
inline |
|
explicit |
|
inlineprotected |
Definition at line 61 of file PndStringSeparator.h.
|
inlineprotected |
Definition at line 62 of file PndStringSeparator.h.
std::vector<std::string> PndStringSeparator::GetStringVector | ( | void | ) |
Referenced by ResetVector().
void PndStringSeparator::Print | ( | ) |
Referenced by ResetVector().
std::string PndStringSeparator::Replace | ( | std::string | from, |
std::string | to | ||
) |
Referenced by ResetVector().
|
inline |
Definition at line 38 of file PndStringSeparator.h.
References GetStringVector(), Print(), and Replace().
|
inline |
Definition at line 37 of file PndStringSeparator.h.
|
inline |
Definition at line 36 of file PndStringSeparator.h.
|
inlineprotected |
Definition at line 47 of file PndStringSeparator.h.
|
inlineprotected |
Definition at line 54 of file PndStringSeparator.h.