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

Function to_upper_case

include/fplus/string_tools.hpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138// to_upper_case("ChaRacTer&WorDs34") == "CHARACTER&WORDS34"
139template <typename String>
140String to_upper_case(const String& str)
141{
142 typedef typename String::value_type Char;
143 return transform([](Char c) -> Char {
144 return static_cast<Char>(
145 std::toupper(static_cast<unsigned char>(c)));
146 },
147 str);
148}
149
150// API search type: to_upper_case_loc : (Locale, String) -> String
151// fwd bind count: 1

Callers 3

result_test.cppFile · 0.50

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected