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