class
CMiriLineBreak
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
- Miri
- Header
#include "Miri/Text/CMiriLineBreak.h"- Namespace
Miri
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
| Signature | Name | Description |
|---|---|---|
CMiriLineBreak() = delete | CMiriLineBreak |
Public functions
| Returns | Name | Description |
|---|---|---|
EMiriLineBreakClass | ClassOf | |
void | FindBreaks | outBreaks[i] is the opportunity BEFORE codepoint i; index 0 is always None (the start of the text is not a break). |
bool | ValidateTables |
Function details
CMiriLineBreak
C++
CMiriLineBreak() = deleteClassOf
C++
static EMiriLineBreakClass ClassOf(uint32_t codepoint)FindBreaks
C++
static void FindBreaks(const uint32_t* codepoints, size_t count, std::vector<EMiriLineBreak>& 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 Miri/Text/CMiriLineBreak.h via miri.json · Dec 5, 2026Version 1.1.0