xte::uppercase()

Defined in header <xte/data/uppercase.hpp>

Converts a single character or every character of a range to its uppercase representation.


Definitions

#0
[[nodiscard]] constexpr char uppercase(char c) noexcept;

#1
[[nodiscard]] constexpr xte::string uppercase(xte::string_view string) noexcept(false);

#2
template<std::range::input_range Range>
[[nodiscard]] constexpr Range uppercase(Range range) noexcept(/* ... */);
Requires that Range is a range of chars and is mutable.



Example

static_assert(xte::uppercase("HeLlO, wOrLd!") == "HELLO, WORLD!");
[View in Compiler Explorer]