Module surrogates

Source
Expand description

Detection of UTF-16 surrogate codepoints for u16

This module exposes predicate functions for detecting surrogates, including trailing and leading surrogates.

Traits§

InfraUtf16Surrogate
Methods from the WHATWG Infra Standard for UTF-16 surrogates

Functions§

is_leading_surrogate_utf16
Checks if a u16 is a UTF-16 codepoint defined in the range of U+D800 to U+DBFF, inclusive.
is_surrogate_utf16
Checks if a u16 is a UTF-16 codepoint defined in the range of U+D800 to U+DFFF, inclusive.
is_trailing_surrogate_utf16
Checks if a u16 is a UTF-16 codepoint defined in the range of U+DC00 to U+DFFF, inclusive.