class
CArcUtf8
- Module
- Arc
- Header
#include "Arc/Text/CArcTextLayout.h"- Namespace
Arcf
Constructors
| Signature | Name | Description |
|---|---|---|
CArcUtf8() = delete | CArcUtf8 |
Public functions
| Returns | Name | Description |
|---|---|---|
uint32_t | Decode | Decodes one codepoint and advances ptr. |
void | Append | |
int32_t | PrevChar | Byte-offset navigation over CODEPOINT boundaries — the primitive for walking bytes, not for moving a caret: a caret stepped this way lands between a letter and its accent and splits flags and ZWJ emoji. |
int32_t | NextChar | |
int32_t | PrevGrapheme | Caret steps: extended grapheme clusters (UAX #29) for arrows, Backspace and Delete; word starts (UAX #29) for Ctrl+Arrow. |
int32_t | NextGrapheme | |
int32_t | PrevWord | |
int32_t | NextWord |
Function details
CArcUtf8
C++
CArcUtf8() = deleteDecode
C++
static uint32_t Decode(const char*& ptr, const char* end)Decodes one codepoint and advances ptr. Returns 0xFFFD on malformed input: a bad lead byte, a truncated sequence, an overlong form, a surrogate or a value past U+10FFFF.
Append
C++
static void Append(std::string& str, uint32_t codepoint)PrevChar
C++
static int32_t PrevChar(const std::string& s, int32_t pos)Byte-offset navigation over CODEPOINT boundaries — the primitive for walking bytes, not for moving a caret: a caret stepped this way lands between a letter and its accent and splits flags and ZWJ emoji.
NextChar
C++
static int32_t NextChar(const std::string& s, int32_t pos)PrevGrapheme
C++
static int32_t PrevGrapheme(const std::string& s, int32_t pos)Caret steps: extended grapheme clusters (UAX #29) for arrows, Backspace and Delete; word starts (UAX #29) for Ctrl+Arrow.
NextGrapheme
C++
static int32_t NextGrapheme(const std::string& s, int32_t pos)PrevWord
C++
static int32_t PrevWord(const std::string& s, int32_t pos)NextWord
C++
static int32_t NextWord(const std::string& s, int32_t pos)Generated from Arc/Text/CArcTextLayout.h via arc.json · Nov 5, 2026Version 1.0.0