libunibreak 8.0
Loading...
Searching...
No Matches
LineBreakContext Struct Reference

Context representing internal state of the line breaking algorithm. More...

#include <linebreakdef.h>

Collaboration diagram for LineBreakContext:
[legend]

Data Fields

const struct LineBreakPropertieslbpLang
 Pointer to LineBreakProperties.
size_t posLast
 Last position in input string.
enum LineBreakClass lbcCur
 Breaking class of current codepoint.
enum LineBreakClass lbcNew
 Breaking class of next codepoint.
enum LineBreakClass lbcLast
 Breaking class of last codepoint.
enum PendingRule ePending
 Pending lookahead rule.
enum Lb25State eLb25
 LB25 state for numeric expression.
int cLb30aRI
 Count of RI characters (LB30a).
bool fLb8aZwj
 Flag for ZWJ (LB8a).
bool fLb21aHebrew
 Flag for Hebrew letters (LB21a).
bool fLb20aWordInit
 Previous char is word-initial hyphen.
bool fLb28aPrevAksara
 Previous char is aksara (LB28a).
bool fLb28aAkVi
 (AK|◌|AS) VI seen (LB28a)
bool fLangCjk
 zh/ja/ko language
bool fLangStrict
 -strict suffix
bool fPrevPotentialEmoji
 Previous char is potential emoji.
bool fQuPiInitial
 Previous Pi QU is in initial context.
bool fPrevQuPi
 Previous char is QU of class Pi.
bool fPrevQuPf
 Previous char is QU of class Pf.
bool fPrevEA
 Previous char is East Asian.
bool fQuPrevEA
 Char before previous QU is East Asian.
size_t posPending
 Position of tentative break.
size_t posLb25Fixup
 Position to fix for LB25.
bool fLb25Mark
 Flag for pending fixup.
char cPendingOrigBrk
 Break value to restore on revert.
bool fPendingRevert
 Flag for pending revert.

Detailed Description

Context representing internal state of the line breaking algorithm.

This is useful to callers if incremental analysis is wanted.

The fields are ordered so that the members accessed on every character sit first, while the rarely used lookahead-fixup state sits last.

Field Documentation

◆ cLb30aRI

int LineBreakContext::cLb30aRI

Count of RI characters (LB30a).

◆ cPendingOrigBrk

char LineBreakContext::cPendingOrigBrk

Break value to restore on revert.

◆ eLb25

enum Lb25State LineBreakContext::eLb25

LB25 state for numeric expression.

◆ ePending

enum PendingRule LineBreakContext::ePending

Pending lookahead rule.

◆ fLangCjk

bool LineBreakContext::fLangCjk

zh/ja/ko language

◆ fLangStrict

bool LineBreakContext::fLangStrict

-strict suffix

◆ fLb20aWordInit

bool LineBreakContext::fLb20aWordInit

Previous char is word-initial hyphen.

◆ fLb21aHebrew

bool LineBreakContext::fLb21aHebrew

Flag for Hebrew letters (LB21a).

◆ fLb25Mark

bool LineBreakContext::fLb25Mark

Flag for pending fixup.

◆ fLb28aAkVi

bool LineBreakContext::fLb28aAkVi

(AK|◌|AS) VI seen (LB28a)

◆ fLb28aPrevAksara

bool LineBreakContext::fLb28aPrevAksara

Previous char is aksara (LB28a).

◆ fLb8aZwj

bool LineBreakContext::fLb8aZwj

Flag for ZWJ (LB8a).

◆ fPendingRevert

bool LineBreakContext::fPendingRevert

Flag for pending revert.

◆ fPrevEA

bool LineBreakContext::fPrevEA

Previous char is East Asian.

◆ fPrevPotentialEmoji

bool LineBreakContext::fPrevPotentialEmoji

Previous char is potential emoji.

◆ fPrevQuPf

bool LineBreakContext::fPrevQuPf

Previous char is QU of class Pf.

◆ fPrevQuPi

bool LineBreakContext::fPrevQuPi

Previous char is QU of class Pi.

◆ fQuPiInitial

bool LineBreakContext::fQuPiInitial

Previous Pi QU is in initial context.

◆ fQuPrevEA

bool LineBreakContext::fQuPrevEA

Char before previous QU is East Asian.

◆ lbcCur

enum LineBreakClass LineBreakContext::lbcCur

Breaking class of current codepoint.

◆ lbcLast

enum LineBreakClass LineBreakContext::lbcLast

Breaking class of last codepoint.

◆ lbcNew

enum LineBreakClass LineBreakContext::lbcNew

Breaking class of next codepoint.

◆ lbpLang

const struct LineBreakProperties* LineBreakContext::lbpLang

Pointer to LineBreakProperties.

◆ posLast

size_t LineBreakContext::posLast

Last position in input string.

◆ posLb25Fixup

size_t LineBreakContext::posLb25Fixup

Position to fix for LB25.

◆ posPending

size_t LineBreakContext::posPending

Position of tentative break.


The documentation for this struct was generated from the following file: