A unicode code point. More...
#include <code_point.hpp>
Classes | |
| struct | _gc_group |
Public Types | |
| enum | general_category_t { LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter), LEXY_UNICODE_CATEGORY =(Lu, uppercase_letter) } |
Public Member Functions | |
| constexpr | code_point () noexcept |
| constexpr | code_point (char32_t value) noexcept |
| LEXY_UNICODE_CONSTEXPR general_category_t | general_category () const noexcept |
| constexpr bool | is_ascii () const noexcept |
| constexpr bool | is_bmp () const noexcept |
| constexpr bool | is_control () const noexcept |
| constexpr bool | is_noncharacter () const noexcept |
| constexpr bool | is_private_use () const noexcept |
| constexpr bool | is_scalar () const noexcept |
| constexpr bool | is_surrogate () const noexcept |
| constexpr bool | is_valid () const noexcept |
| LEXY_UNICODE_CATEGORY_GROUP ("cased-letter", LC, cased_letter, Lu, Ll, Lt) | |
| LEXY_UNICODE_CATEGORY_GROUP ("letter", L, letter, Lu, Ll, Lt, Lm, Lo) | |
| LEXY_UNICODE_CATEGORY_GROUP ("mark", M, mark, Mn, Mc, Me) | |
| LEXY_UNICODE_CATEGORY_GROUP ("number", N, number, Nd, Nl, No) | |
| LEXY_UNICODE_CATEGORY_GROUP ("other", C, other, Cc, Cf, Cs, Co, Cn) | |
| LEXY_UNICODE_CATEGORY_GROUP ("punctuation", P, punctuation, Pc, Pd, Ps, Pe, Pi, Pf, Po) | |
| LEXY_UNICODE_CATEGORY_GROUP ("separator", Z, separator, Zs, Zl, Zp) | |
| LEXY_UNICODE_CATEGORY_GROUP ("symbol", S, symbol, Sm, Sc, Sk, So) | |
| constexpr auto | value () const noexcept |
Private Attributes | |
| char32_t | _value |
Friends | |
| constexpr friend bool | operator!= (code_point lhs, code_point rhs) noexcept |
| constexpr friend bool | operator== (code_point lhs, code_point rhs) noexcept |
A unicode code point.
Definition at line 20 of file code_point.hpp.
Definition at line 76 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 23 of file code_point.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 24 of file code_point.hpp.
|
noexcept |
|
inlineconstexprnoexcept |
Definition at line 32 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 36 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 45 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 59 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 53 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 70 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 49 of file code_point.hpp.
|
inlineconstexprnoexcept |
Definition at line 40 of file code_point.hpp.
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "cased-letter" | , |
| LC | , | ||
| cased_letter | , | ||
| Lu | , | ||
| Ll | , | ||
| Lt | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "letter" | , |
| L | , | ||
| letter | , | ||
| Lu | , | ||
| Ll | , | ||
| Lt | , | ||
| Lm | , | ||
| Lo | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "mark" | , |
| M | , | ||
| mark | , | ||
| Mn | , | ||
| Mc | , | ||
| Me | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "number" | , |
| N | , | ||
| number | , | ||
| Nd | , | ||
| Nl | , | ||
| No | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "other" | , |
| C | , | ||
| other | , | ||
| Cc | , | ||
| Cf | , | ||
| Cs | , | ||
| Co | , | ||
| Cn | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "punctuation" | , |
| P | , | ||
| punctuation | , | ||
| Pc | , | ||
| Pd | , | ||
| Ps | , | ||
| Pe | , | ||
| Pi | , | ||
| Pf | , | ||
| Po | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "separator" | , |
| Z | , | ||
| separator | , | ||
| Zs | , | ||
| Zl | , | ||
| Zp | |||
| ) |
| lexy::code_point::LEXY_UNICODE_CATEGORY_GROUP | ( | "symbol" | , |
| S | , | ||
| symbol | , | ||
| Sm | , | ||
| Sc | , | ||
| Sk | , | ||
| So | |||
| ) |
|
inlineconstexprnoexcept |
Definition at line 26 of file code_point.hpp.
|
friend |
Definition at line 167 of file code_point.hpp.
|
friend |
Definition at line 163 of file code_point.hpp.
|
private |
Definition at line 173 of file code_point.hpp.