xte ::uppercase ()
Defined in header <xte/data/uppercase.hpp> Converts a single character or every character of a range to its uppercase representation.
Only handles the English alphabet.
Definition
inline constexpr auto uppercase =xte ::visitor { [][[nodiscard ]](char c )static noexcept ->char {/* ... */ }, []<std ::range ::input_range Range >[[nodiscard ]](Range range )static noexcept (xte ::is_noex_range <Range >) ->Range requires (xte ::is_same <std ::ranges ::range_value_t <Range >,char >) {/* ... */ } };
Example
Output:std ::println ("{}" ,xte ::uppercase ("HeLlO, wOrLd!"s ));
[View in Compiler Explorer]HELLO, WORLD!