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

Function to_lower_case

include/fplus/string_tools.hpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108// to_lower_case("ChaRacTer&WorDs23") == "character&words23"
109template <typename String>
110String to_lower_case(const String& str)
111{
112 typedef typename String::value_type Char;
113 return transform([](Char c) -> Char {
114 return static_cast<Char>(
115 std::tolower(static_cast<unsigned char>(c)));
116 },
117 str);
118}
119
120// API search type: to_lower_case_loc : (Locale, String) -> String
121// fwd bind count: 1

Callers 1

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected