| 108 | // to_lower_case("ChaRacTer&WorDs23") == "character&words23" |
| 109 | template <typename String> |
| 110 | String 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 |
no test coverage detected