3 #ifndef INCLUDE_NN_NLIB_UNICODE_STRINGPREP_H_
4 #define INCLUDE_NN_NLIB_UNICODE_STRINGPREP_H_
25 static bool InTableC11(uint32_t utf32) NLIB_NOEXCEPT {
return utf32 == 0x0020; }
28 return utf32 < 0x0020 || utf32 == 0x007F;
34 static bool InTableC5(uint32_t utf32) NLIB_NOEXCEPT {
35 return utf32 >= 0xD800 && utf32 <= 0xDFFF;
37 static bool InTableC6(uint32_t utf32) NLIB_NOEXCEPT {
38 return utf32 >= 0xFFF9 && utf32 <= 0xFFFD;
40 static bool InTableC7(uint32_t utf32) NLIB_NOEXCEPT {
41 return utf32 >= 0x2FF0 && utf32 <= 0x2FFB;
44 static bool InTableC9(uint32_t utf32) NLIB_NOEXCEPT {
45 return utf32 == 0xE0001 || (utf32 >= 0xE0020 && utf32 <= 0xE007F);
54 #endif // INCLUDE_NN_NLIB_UNICODE_STRINGPREP_H_
static bool InTableC9(uint32_t utf32) noexcept
Determines whether the character is described in RFC 3454, C.9 (Tagging characters).
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
Implements the tables defined in RFC 3454 (https://www.ietf.org/rfc/rfc3454.txt). ...
Data structure to store mapping results from StringPrep.
static bool InTableC11(uint32_t utf32) noexcept
Determines whether the character is described in RFC 3454, C.1.1 (ASCII space characters).
size_t n
Number of characters stored in StringPrepMapResult::code.
A file that contains the configuration information for each development environment.
static bool InTableC5(uint32_t utf32) noexcept
Determines whether the character is described in RFC 3454, C.5 (Surrogate codes). ...
static bool InTableC6(uint32_t utf32) noexcept
Determines whether the character is described in RFC 3454, C.6 (Inappropriate for plain text)...
static bool InTableC21(uint32_t utf32) noexcept
Determines whether the character is described in RFC 3454, C.2.1 (ASCII control characters).
static bool InTableC7(uint32_t utf32) noexcept
Determines whether the character is described in RFC 3454, C.7 (Inappropriate for canonical represent...