#include <unicodeUtils.h>
Wrapper for a 32-bit code point value that can be encoded as UTF-8.
A single TfUtf8CodePoint
may be converted to a string using TfStringify
as well.
Definition at line 53 of file unicodeUtils.h.
constexpr TfUtf8CodePoint::TfUtf8CodePoint |
( |
| ) |
|
|
default |
Construct a code point initialized to the replacement value.
constexpr TfUtf8CodePoint::TfUtf8CodePoint |
( |
uint32_t |
value | ) |
|
|
inlineexplicit |
Construct a UTF-8 valued code point, constrained by the maximum value and surrogate range.
Definition at line 73 of file unicodeUtils.h.
constexpr uint32_t TfUtf8CodePoint::AsUInt32 |
( |
| ) |
const |
|
inline |
constexpr uint32_t TfUtf8CodePoint::MaximumValue = 0x10FFFF |
|
static |
Values higher than this will be replaced with the replacement code point.
Definition at line 61 of file unicodeUtils.h.
constexpr TfUtf8CodePoint TfUtf8InvalidCodePoint TfUtf8CodePoint::ReplacementValue = 0xFFFD |
|
static |
Code points that cannot be decoded or are outside of the valid range will be replaced with this value.
The replacement code point can be used to signal that a code point could not be decoded and needed to be replaced.
Definition at line 57 of file unicodeUtils.h.
constexpr std::pair<uint32_t, uint32_t> TfUtf8CodePoint::SurrogateRange = {0xD800, 0xDFFF} |
|
static |
Values in this range (inclusive) cannot be constructed and will be replaced by the replacement code point.
Definition at line 66 of file unicodeUtils.h.
The documentation for this class was generated from the following file: