xieite ::ch {}
Defined in fragment xieite :ch
(header-only:
<xieite/str/ch.hpp>
)
A namespace providing collections of characters.
Contents
#0Provides the size of the English alphabet.constexpr std ::size_t alphabet_size =26 ;
#1
The English alphabet in uppercase. Its size is guaranteed to beconstexpr std ::string_view upper ="ABCDEFGHIJKLMNOPQRSTUVWXYZ" ;
xieite ::ch ::alphabet_size
.#2
The English alphabet in lowercase. Its size is guaranteed to beconstexpr std ::string_view lower ="abcdefghijklmnopqrstuvwxyz" ;
xieite ::ch ::alphabet_size
.#3
Digitsconstexpr std ::string_view digits ="0123456789" ;
0
through 9
in ascending order.#4
Whitespace characters.constexpr std ::string_view whitesp =" ;\t\n\v\f\r "
#5
All alphanumeric characters. Consists of digits, followed by the uppercase English alphabet, followed by the lowercase English alphabet.constexpr std ::string_view alphanum ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ;
#6
Uppercase and lowercase vowels in the English alphabet. Does not include semivowels.constexpr std ::string_view vowels ="AEIOUaeiou" ;
#7
Uppercase and lowercase consonants in the English alphabet. Includes semivowels (constexpr std ::string_view consonants ="BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz" ;
W
, Y
, w
, y
).
Example
Output:import std ;import xieite ;int main () {xieite ::unroll <16uz >([]<std ::size_t ... i > {xieite ::dump (xieite ::ch ::alphanum [i ]...); }); }
View in Compiler Explorer0 1 2 3 4 5 6 7 8 9 A B C D E F