unicons::u32_length
#include <unicode_traits.hpp>
template <class InputIt>
size_t u32_length(InputIt first, InputIt last) noexcept
Returns the number of UTF-32 characters (codepoints) required to represent the string.
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.
The number of UTF-32 characters