89 std::string splitString = splitter.
getString();
90 std::vector<std::string> result = this->
split(splitString);
97 std::vector<std::string> result;
99 if (!
theString_.empty() && !splitter.empty()) {
101 for (std::string::size_type offset = 0;;) {
103 std::string::size_type found =
theString_.find(splitter, offset);
105 if (found != std::string::npos) {
106 std::string tmpString =
theString_.substr(offset, found-offset);
107 if (tmpString.size() > 0) {result.push_back(tmpString);}
108 offset = found + splitter.size();
111 if (tmpString.size() > 0) {result.push_back(tmpString);}
File containing declaration of LauString class.
Class for defining a string.
std::vector< std::string > split(const std::string &splitter) const
Split up a string according to a split string (e.g. ":" or " ")
LauString operator+=(int integer)
Add an integer to the string.
void addText(const char *text)
Add some text from a character array.
std::string theString_
The string.
void addInteger(int integer)
Add an integer value to the string.
std::string getString() const
Retrieve the string as an STL string.
void addDouble(double value)
Add a double value to the string.
Double_t value() const
The value of the parameter.
virtual ~LauString()
Destructor.
LauString()
Constructor for an empty string.