GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
unicode.hpp File Reference

Go to the source code of this file.

Classes

struct  grem::unicode::UTF8Sentinel
 Sentinel type for UTF8Iterator. More...
class  grem::unicode::UTF8Iterator< BaseIterator, BaseSentinel >
 Iterator type for decoding Unicode code points from a UTF-8 string, wrapping an existing iterator for UTF-8 code units. More...
class  grem::unicode::UTF8Iterator< BaseIterator, BaseSentinel >
 Specialization of UTF8Iterator that provides forward iteration capability (and an optimized implementation) for base iterators that support it. More...
class  grem::unicode::UTF8View
 Non-owning view type for decoding Unicode code points from a contiguous UTF-8 string. More...

Namespaces

namespace  grem
namespace  grem::unicode

Functions

constexpr bool grem::unicode::isValidCodePoint (char32_t codePoint) noexcept
 Check if a 32-bit unsigned integer value falls within the valid ranges for a Unicode code point.
template<input_iterator InputIterator, sentinel_for< InputIterator > Sentinel>
constexpr Pair< char32_t, InputIterator > grem::unicode::decodeCodePointFromUTF8 (InputIterator it, Sentinel end)
 Decode a single Unicode code point from an iterator of UTF-8 code units in a UTF-8-encoded string.
constexpr InplaceBuffer< char8_t, 4 > grem::unicode::encodeUTF8FromCodePoint (char32_t codePoint) noexcept
 Encode a Unicode code point into a sequence of UTF-8 code units.

Variables

constexpr char32_t grem::unicode::CODE_POINT_ERROR {0xFFFFFFFF}
 Invalid code point value, used as a return value in Unicode decoding algorithms for conveying encoding errors.