Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 985 Bytes

is_low_surrogate.md

File metadata and controls

27 lines (19 loc) · 985 Bytes
unicons::is_low_surrogate

Header

#include <unicode_traits.hpp>

Synopsis

template <class InputIt>
bool is_low_surrogate(InputIt first, InputIt last) noexcept

Checks if the character is a UTF-16 low surrogate code point in the range 0xDC00 to 0xDFFF inclusive.

Parameter Description
first, last Input iterators that demarcate the range of characters. The character type may be any integral type, signed or unsigned, with size in bits of 8, 16 or 32.

The source encoding scheme is assumed to be one-to-one with the character width, UTF-8 with 8 bit characters, UTF-16 with 16 bit characters, and UTF-32 with 32 bit characters. If the source contains characters that are illegal in that encoding scheme, an error code will be returned.

Return value

true if the character is a UTF-16 low surrogate code point, false otherwise.