Text utilities.
Definition in file text.hpp.
Go to the source code of this file.
#include <locale>
#include <userver/utils/text_light.hpp>
|
std::string | utils::text::Format (double value, const std::string &locale, int ndigits=0, bool is_fixed=true) |
| Return number formatted with specified locale.
|
|
std::string | utils::text::ToLower (std::string_view str, const std::string &locale=kEnLocale) |
| Transform letters to lower case.
|
|
std::string | utils::text::ToUpper (std::string_view str, const std::string &locale=kEnLocale) |
| Transform letters to upper case.
|
|
std::string | utils::text::Capitalize (std::string_view str, const std::string &locale) |
| Capitalizes the first letter of the str.
|
|
const std::locale & | utils::text::GetLocale (const std::string &name) |
| Returns a locale with the specified name.
|
|