|
tfel
|
03 mar 2011 More...
Namespaces | |
| namespace | tfel |
| the namespace tfel encloses all the TFEL project. This namespace is empty. | |
Functions | |
| TFELUTILITIES_VISIBILITY_EXPORT bool | tfel::utilities::starts_with (std::string_view, std::string_view) |
| TFELUTILITIES_VISIBILITY_EXPORT bool | tfel::utilities::ends_with (std::string_view, std::string_view) |
| TFELUTILITIES_VISIBILITY_EXPORT std::vector< std::string > | tfel::utilities::tokenize (std::string_view, const char, const bool=false) |
| TFELUTILITIES_VISIBILITY_EXPORT std::vector< std::string > | tfel::utilities::tokenize (std::string_view, std::string_view) |
| TFELUTILITIES_VISIBILITY_EXPORT std::string | tfel::utilities::replace_all (std::string_view, std::string_view, std::string_view, const std::string::size_type=0u) |
| replace all occurences of substring s1 by s2 | |
| TFELUTILITIES_VISIBILITY_EXPORT void | tfel::utilities::replace_all (std::string &, std::string_view, std::string_view, std::string_view, const std::string::size_type=0u) |
| replace all occurences of substring s1 by s2 | |
| TFELUTILITIES_VISIBILITY_EXPORT std::string | tfel::utilities::replace_all (std::string_view, const char, const char) |
| replace all occurences of character c1 by c2 | |
| TFELUTILITIES_VISIBILITY_EXPORT void | tfel::utilities::replace_all (std::string &, const char, std::string_view) |
| replace all occurences of character c by n | |
| template<typename T> | |
| T | tfel::utilities::convert (const std::string &) |
| convert a string to the given type | |
| template<> | |
| TFELUTILITIES_VISIBILITY_EXPORT double | tfel::utilities::convert (const std::string &) |
| partial specialisation for double | |
| template<> | |
| TFELUTILITIES_VISIBILITY_EXPORT long double | tfel::utilities::convert (const std::string &) |
| partial specialisation for double | |
| TFELUTILITIES_VISIBILITY_EXPORT std::string | tfel::utilities::convert (const float &) |
| convert a float to string using scientific notation and a 14 digit precision. | |
| TFELUTILITIES_VISIBILITY_EXPORT std::string | tfel::utilities::convert (const double &) |
| convert a double to string using scientific notation and a 14 digit precision. | |
| TFELUTILITIES_VISIBILITY_EXPORT std::string | tfel::utilities::convert (const long double &) |
| convert a long double to string using scientific notation and a 14 digit precision. | |
03 mar 2011
| TFELUTILITIES_VISIBILITY_EXPORT std::string tfel::utilities::convert | ( | const double & | ) |
convert a double to string using scientific notation and a 14 digit precision.
| [in] | v | string to be converted |
| TFELUTILITIES_VISIBILITY_EXPORT std::string tfel::utilities::convert | ( | const float & | ) |
convert a float to string using scientific notation and a 14 digit precision.
| [in] | v | string to be converted |
| TFELUTILITIES_VISIBILITY_EXPORT std::string tfel::utilities::convert | ( | const long double & | ) |
convert a long double to string using scientific notation and a 14 digit precision.
| [in] | v | string to be converted |
| TFELUTILITIES_VISIBILITY_EXPORT long double tfel::utilities::convert | ( | const std::string & | ) |
partial specialisation for double
| [in] | s | string to be converted |
| TFELUTILITIES_VISIBILITY_EXPORT double tfel::utilities::convert | ( | const std::string & | ) |
partial specialisation for double
| [in] | s | string to be converted |
| T tfel::utilities::convert | ( | const std::string & | ) |
convert a string to the given type
| [in] | s | string to be converted |
| TFELUTILITIES_VISIBILITY_EXPORT bool tfel::utilities::ends_with | ( | std::string_view | , |
| std::string_view | ) |
| [in] | s1 | first string |
| [in] | s2 | second string |
| TFELUTILITIES_VISIBILITY_EXPORT void tfel::utilities::replace_all | ( | std::string & | , |
| const char | , | ||
| std::string_view | ) |
replace all occurences of character c by n
| [in,out] | s | : original string |
| [in] | c | : character to be changed |
| [in] | n | : replacement character |
| TFELUTILITIES_VISIBILITY_EXPORT void tfel::utilities::replace_all | ( | std::string & | , |
| std::string_view | , | ||
| std::string_view | , | ||
| std::string_view | , | ||
| const std::string::size_type | = 0u ) |
replace all occurences of substring s1 by s2
| r | : result |
| s | : original string |
| s1 | : substring to be changed |
| s2 | : replacement string |
| ps | : beginning of the search |
| TFELUTILITIES_VISIBILITY_EXPORT std::string tfel::utilities::replace_all | ( | std::string_view | , |
| const char | , | ||
| const char | ) |
replace all occurences of character c1 by c2
| c | : original string |
| c1 | : character to be changed |
| c2 | : replacement character |
| TFELUTILITIES_VISIBILITY_EXPORT std::string tfel::utilities::replace_all | ( | std::string_view | , |
| std::string_view | , | ||
| std::string_view | , | ||
| const std::string::size_type | = 0u ) |
replace all occurences of substring s1 by s2
| s | : original string |
| s1 | : substring to be changed |
| s2 | : replacement string |
| ps | : beginning of the search |
| TFELUTILITIES_VISIBILITY_EXPORT bool tfel::utilities::starts_with | ( | std::string_view | , |
| std::string_view | ) |
| [in] | s1 | first string |
| [in] | s2 | second string |
| TFELUTILITIES_VISIBILITY_EXPORT std::vector< std::string > tfel::utilities::tokenize | ( | std::string_view | , |
| const char | , | ||
| const bool | = false ) |
split a string into tokens using the specified delimiter
| s | string to be splitted |
| c | delimiter |
| keep_empty_string | if true, the empty strings before, between and after the delimiters are kept |
| TFELUTILITIES_VISIBILITY_EXPORT std::vector< std::string > tfel::utilities::tokenize | ( | std::string_view | , |
| std::string_view | ) |
split a string into tokens using the specified delimiter
| s | : string to be splitted |
| delim | : delimiter |