class

CArcLineBreak

Line-break opportunities per the Unicode Line Breaking Algorithm (UAX #14), rules LB4 through LB31 over a compact class table. The wrap used to break only after a space or around a hard-coded CJK range, so it split "(word" from its bracket, pushed a lone "%" or "。" onto the next line, and broke between a number and its unit.

Module
Arc
Header
#include "Arc/Text/CArcLineBreak.h"
Namespace
Arcf

Not tailored: Thai, Lao, Khmer and Myanmar (class SA) resolve to AL as LB1 prescribes for an implementation without a dictionary, so those scripts still break only at spaces and other explicit opportunities.

Constructors

SignatureNameDescription
CArcLineBreak() = deleteCArcLineBreak

Public functions

ReturnsNameDescription
EArcLineBreakClassClassOf
voidFindBreaksoutBreaks[i] is the opportunity BEFORE codepoint i; index 0 is always None (the start of the text is not a break).
boolValidateTables

Function details

CArcLineBreak

C++
CArcLineBreak() = delete

ClassOf

C++
static EArcLineBreakClass ClassOf(uint32_t codepoint)

FindBreaks

C++
static void FindBreaks(const uint32_t* codepoints, size_t count, std::vector<EArcLineBreak>& outBreaks)

outBreaks[i] is the opportunity BEFORE codepoint i; index 0 is always None (the start of the text is not a break).

ValidateTables

C++
static bool ValidateTables()
Generated from Arc/Text/CArcLineBreak.h via arc.json · Nov 5, 2026Version 1.0.0