Represents a translation of a unicode codepoint.
More...
|
uint8_t | kind |
| The type of the translation result. This can be any of the following values:
|
|
union { | |
|
uint32_t character | |
| The translation, as a unicode character. More...
|
|
struct { | |
|
const uint8_t * contents | |
| Raw UTF-8 encoded string. More...
|
|
size_t size | |
| UTF-8 size of the string, in bytes. More...
|
|
void * __heap | |
| A pointer to a heap memory block, unused. More...
|
|
} string | |
| The translation, as a UTF-8 encoded string. More...
|
|
} | contents | |
| A union of translation results. This can either be a unicode character or a UTF-8 encoded string.
|
|
Represents a translation of a unicode codepoint.
typedef struct {
union {
struct {
} decancer_translation_t;
uint32_t character
The translation, as a unicode character.
Definition decancer.h:459
uint8_t kind
The type of the translation result. This can be any of the following values:
Definition decancer.h:448
void * __heap
A pointer to a heap memory block, unused.
Definition decancer.h:483
const uint8_t * contents
Raw UTF-8 encoded string.
Definition decancer.h:470
struct decancer_translation_t::@055126230360146023271027206162071221275052050102::@064156024124040346156266345054015221177346323031 string
The translation, as a UTF-8 encoded string.
size_t size
UTF-8 size of the string, in bytes.
Definition decancer.h:476
- See also
- decancer_cure_char
-
decancer_translation_init
-
decancer_translation_clone
-
decancer_translation_free
- Note
- You are responsible in freeing this object later passing it as a pointer to decancer_translation_free.
- Warning
- You MUST pass this struct to decancer_translation_init first before using decancer_cure_char. Not doing so could result in possible undefined behavior.
◆ __heap
void* decancer_translation_t::__heap |
A pointer to a heap memory block, unused.
- Note
- If this value is not NULL and kind is DECANCER_TRANSLATION_KIND_STRING, then you must pass this struct to decancer_translation_free later.
- Since
- 3.1.0
◆ character
uint32_t decancer_translation_t::character |
The translation, as a unicode character.
- Since
- 1.5.4
◆ contents [1/2]
const uint8_t* decancer_translation_t::contents |
Raw UTF-8 encoded string.
- Since
- 1.5.4
◆ [union] [2/2]
union { ... } decancer_translation_t::contents |
A union of translation results. This can either be a unicode character or a UTF-8 encoded string.
- Since
- 1.5.4
◆ kind
uint8_t decancer_translation_t::kind |
◆ size
size_t decancer_translation_t::size |
UTF-8 size of the string, in bytes.
- Since
- 1.5.4
◆ [struct]
struct { ... } decancer_translation_t::string |
The translation, as a UTF-8 encoded string.
- Since
- 1.5.4
The documentation for this struct was generated from the following file:
- /home/runner/work/decancer/decancer/bindings/native/decancer.h