|
BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines a few helper functions. More...
Go to the source code of this file.
Namespaces | |
| StringUtils | |
| Utility functions to analyze or modify strings. | |
Functions | |
| bool | StringUtils::matchesPattern (const std::string &text, const std::string &wildcardPattern) |
| Returns true if text matches pattern with wildcards '*' and '?'. | |
| std::string | StringUtils::padRight (const std::string &name, size_t length) |
| Returns string right-padded with blanks. | |
| std::vector< std::string > | StringUtils::split (const std::string &text, const std::string &delimeter) |
| Split string into vector of string using delimeter. More... | |
| void | StringUtils::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 | StringUtils::join (const std::vector< std::string > &joinable, const std::string &joint) |
| Returns string obtain by joining vector elements. | |
| std::string | StringUtils::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 | StringUtils::scientific (const T value, int n=10) |
| Returns scientific string representing given value of any numeric type. | |
| std::string | StringUtils::to_lower (std::string text) |
| Returns new string which is lower case of text. | |
Defines a few helper functions.
Definition in file StringUtils.h.