MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / to_upper_case_loc

Function to_upper_case_loc

include/fplus/string_tools.hpp:155–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153// to_upper_case_loc(locale("ru_RU.utf8"), "cYrIlLiC КиРиЛлИцА") == "CYRILLIC КИРИЛЛИЦА"
154template <typename String>
155String to_upper_case_loc(const std::locale& lcl, const String& str)
156{
157 typedef typename String::value_type Char;
158 return transform([&lcl](Char c) -> Char {
159 return static_cast<Char>(
160 std::toupper(c, lcl));
161 },
162 str);
163}
164
165// API search type: to_string_fill_left : (Char, Int, a) -> String
166// fwd bind count: 2

Callers

nothing calls this directly

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected