146 concept IPossibleCharacterRepresentation = convertible_to<T, char32_t> or same_as<remove_cv_t<T>, Character>;
238 constexpr Character (
char16_t hiSurrogate,
char16_t lowSurrogate);
239 constexpr Character (
char32_t c)
noexcept;
240 constexpr Character (
wchar_t c)
noexcept (
sizeof (wchar_t) == 4);
262 explicit constexpr operator char32_t ()
const noexcept;
271 template <
typename T>
272 constexpr T As ()
const noexcept
273 requires (same_as<T, char32_t> or (
sizeof (
wchar_t) ==
sizeof (
char32_t) and same_as<T, wchar_t>));
274 template <IUNICODECodePo
int T>
278 template <IUNICODECodePo
int T>
289 constexpr bool IsASCII ()
const noexcept;
290 template <IPossibleCharacterRepresentation CHAR_T>
291 static constexpr bool IsASCII (CHAR_T c)
noexcept;
292 template <IPossibleCharacterRepresentation CHAR_T>
293 static constexpr bool IsASCII (span<const CHAR_T> s)
noexcept;
299 template <IPossibleCharacterRepresentation CHAR_T>
300 static constexpr void CheckASCII (span<const CHAR_T> s);
301 template <IPossibleCharacterRepresentation CHAR_T>
302 static constexpr void CheckASCII (span<CHAR_T> s);
319 constexpr bool IsLatin1 ()
const noexcept;
320 template <IUNICODECanUnambiguouslyConvertFrom CHAR_T>
321 static constexpr bool IsLatin1 (span<const CHAR_T> s)
noexcept;
343 template <IUNICODECanUnambiguouslyConvertFrom CHAR_T>
350 template <IUNICODECanUnambiguouslyConvertFrom CHAR_T>
352 template <IUNICODECanUnambiguouslyConvertFrom CHAR_T>
404 nonvirtual
bool IsDigit () const noexcept;
407 nonvirtual
bool IsHexDigit () const noexcept;
410 nonvirtual
bool IsAlphabetic () const noexcept;
429 nonvirtual
bool IsAlphaNumeric () const noexcept;
434 nonvirtual
bool IsPunctuation () const noexcept;
443 constexpr
bool IsControl () const noexcept;
489 template <typename RESULT_T =
string, IPossibleCharacterRepresentation CHAR_T>
490 static
bool AsASCIIQuietly (span<const CHAR_T> fromS, RESULT_T* into)
491 requires requires (RESULT_T* into) {
492 { into->empty () } -> same_as<bool>;
493 { into->push_back (
ASCII{0}) };
503 static constexpr char16_t kUNICODESurrogate_High_End{0xDBFF};
504 static constexpr char16_t kUNICODESurrogate_Low_Start{0xDC00};
505 static constexpr char16_t kUNICODESurrogate_Low_End{0xDFFF};
513 static constexpr bool IsSurrogatePair (
char16_t hiSurrogate,
char16_t lowSurrogate);
514 static constexpr bool IsSurrogatePair_Hi (
char16_t hiSurrogate);
515 static constexpr bool IsSurrogatePair_Lo (
char16_t lowSurrogate);
527 constexpr bool operator== (
const Character&)
const noexcept =
default;
532 constexpr strong_ordering operator<=> (
const Character&)
const noexcept =
default;
535 struct EqualsComparer;
538 struct ThreeWayComparer;
546 template <IUNICODECanUnambiguouslyConvertFrom CHAR_T,
size_t E1,
size_t E2>
547 static constexpr strong_ordering
Compare (span<const CHAR_T, E1> lhs, span<const CHAR_T, E2> rhs, CompareOptions co)
noexcept;
550 [[deprecated (
"Since Stroika 3.0d1, use span based Compare")]]
static strong_ordering
553 return Compare (span{lhsStart, lhsEnd}, span{rhsStart, rhsEnd}, co);
557 char32_t fCharacterCode_;