|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Utility functions to analyze or modify strings. More...
Functions | |
| bool | matchesPattern (const std::string &text, const std::string &wildcardPattern) |
| Returns true if text matches pattern with wildcards '*' and '?'. | |
| std::string | padRight (const std::string &name, size_t length) |
| Returns string right-padded with blanks. | |
| std::vector< std::string > | split (const std::string &text, const std::string &delimeter) |
| Split string into vector of string using delimeter. More... | |
| void | replaceItemsFromString (std::string &text, const std::vector< std::string > &items, const std::string &replacement="") |
| Replaces all occurences of items from string text with delimiter. | |
| std::string | join (const std::vector< std::string > &joinable, const std::string &joint) |
| Returns string obtain by joining vector elements. | |
| std::string | removeSubstring (const std::string &text, const std::string &substr) |
| Removes multiple occurences of given substring from a string and returns result. | |
| template<typename T > | |
| std::string | scientific (const T value, int n=10) |
| Returns scientific string representing given value of any numeric type. | |
| std::string | to_lower (std::string text) |
| Returns new string which is lower case of text. | |
Utility functions to analyze or modify strings.
| std::vector< std::string > StringUtils::split | ( | const std::string & | text, |
| const std::string & | delimeter | ||
| ) |
Split string into vector of string using delimeter.
Returns token vector obtained by splitting string at delimiters.
Definition at line 57 of file StringUtils.cpp.