BornAgain
1.19.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 '?'. More... | |
template<typename T > | |
std::string | scientific (const T value, int n=10) |
Returns scientific string representing given value of any numeric type. More... | |
std::vector< std::string > | split (const std::string &text, const std::string &delimeter) |
Split string into vector of string using delimeter. More... | |
Utility functions to analyze or modify strings.
bool mumufit::stringUtils::matchesPattern | ( | const std::string & | text, |
const std::string & | wildcardPattern | ||
) |
Returns true if text matches pattern with wildcards '*' and '?'.
Definition at line 22 of file StringUtils.cpp.
std::string mumufit::stringUtils::scientific | ( | const T | value, |
int | n = 10 |
||
) |
Returns scientific string representing given value of any numeric type.
Definition at line 41 of file StringUtils.h.
Referenced by StringUtils::scientific(), MinimizerAdapter::statusMap(), GSLLevenbergMarquardtMinimizer::statusMap(), and Minuit2Minimizer::statusMap().
std::vector< std::string > mumufit::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 51 of file StringUtils.cpp.
References StringUtils::split().
Referenced by MinimizerOptions::processCommand(), and MinimizerOptions::setOptionString().