stringFunc.hh
Sequence< Real > realSeqFromStringWithPower(const std::string s)
Converts a string to a sequence of real numbers, where a power may be allowed to express,...
std::string stringSubs(const std::string str, const std::string var, F value)
Substitute all occurances of a substring var of a string str by value which may be for example a real...
Definition: stringFunc.hh:81
std::vector< std::string > splitString(const std::string text, const std::string separators)
Split the string text string into words, where the separation token are included in separators.
std::string stringtolower(const std::string s)
ParseObjectFromString(const char *name="", const Sequence< F > data=Sequence< F >())
Constructor with default name and default data.
Definition: stringFunc.hh:105
std::vector< std::string > splitStringByComma(const std::string text)
Split a strings in words separated by commas while respecting the bracket hierachies.
ParseObjectFromString(const char *name, const F data1, const F data2)
Constructor with default name and default first two data entries.
Definition: stringFunc.hh:112
ParseObjectFromString(const char *name, const F data)
Constructor with default name and default first data entry.
Definition: stringFunc.hh:109
Sequence< concepts::Set< uint > > uintSeqSets(const std::string s)
Converts a string to a sequence of sets of uint.
std::string getFilenamePrefix(const std::string str)
Returns the prefix of a given full filename, e.g.
Class for parsing objects like "Circle(1.0)" or "Edge(1,2)" from a string.
Definition: stringFunc.hh:102
Sequence with operations, output operator, and method of the particular element types.
Definition: sequence.hh:39
std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Definition: stringFunc.hh:160
std::vector< std::string > splitStringNameParams(const std::string text)
Split a string like "Ellipse(1.0, 4)" into "Ellipse", "1.0", "4".
ParseObjectFromString(const char *name, const F data1, const F data2, const F data3)
Constructor with default name and default first three data entries.
Definition: stringFunc.hh:115
std::string getDirectory(const std::string str)
Returns the directory of a given full filename.
std::string getFilename(const std::string str)
Returns the filename (with ending) of a given full filename.
std::string removeAllWhite(const std::string str)
Removes all white space in the string str.
char tolower(const char ch)