header_utils
Loading...
Searching...
No Matches
ghassanpl::string_ops::text_decode_result Struct Reference

Shamelessly stolen from https://github.com/arc80/plywood/. More...

#include <unicode.h>

Public Types

enum  status : uint8_t { unsupported_encoding , truncated , invalid , valid }
 

Public Attributes

status status
 The result of the decode.
 
char32_t point
 The decoded codepoint (or -1 if failed)
 
uint8_t byte_count
 The number of bytes this codepoint takes up in the input string.
 

Detailed Description

Shamelessly stolen from https://github.com/arc80/plywood/.

Definition at line 372 of file unicode.h.

Member Enumeration Documentation

◆ status

enum ghassanpl::string_ops::text_decode_result::status : uint8_t

Definition at line 374 of file unicode.h.

Member Data Documentation

◆ byte_count

uint8_t ghassanpl::string_ops::text_decode_result::byte_count

The number of bytes this codepoint takes up in the input string.

Definition at line 386 of file unicode.h.

◆ point

char32_t ghassanpl::string_ops::text_decode_result::point

The decoded codepoint (or -1 if failed)

Definition at line 384 of file unicode.h.

◆ status

status ghassanpl::string_ops::text_decode_result::status

The result of the decode.

Definition at line 382 of file unicode.h.