i18n.GraphemeBreak

Classes


Public Protected Private

Enumerations

goog.i18n.GraphemeBreak.property :
Enum for all Grapheme Cluster Break properties. These enums directly corresponds to Grapheme_Cluster_Break property values mentioned in http://unicode.org/reports/tr29 table 2. VIRAMA and INDIC_CONSONANT are for the Virama × Base tailoring mentioned in the notes. CR and LF are moved to the bottom of the list because they occur only once and so good candidates to take 2 decimal digit values.
Constants:
ANY
No description.
CONTROL
No description.
CR
No description.
EXTEND
No description.
INDIC_CONSONANT
No description.
L
No description.
LF
No description.
LV
No description.
LVT
No description.
PREPEND
No description.
REGIONAL_INDICATOR
No description.
SPACING_MARK
No description.
T
No description.
V
No description.
VIRAMA
No description.
Code »

Global Functions

goog.i18n.GraphemeBreak.applyLegacyBreakRules_(prop_aprop_b) boolean
There are two kinds of grapheme clusters: 1) Legacy 2)Extended. This method is to check for legacy rules.
Arguments:
prop_a : number
The property enum value of the first character.
prop_b : number
The property enum value of the second character.
Returns: boolean  True if a & b do not form a cluster; False otherwise.
code »
goog.i18n.GraphemeBreak.getBreakProp_(acode) number
Method to return property enum value of the codepoint. If it is Hangul LV or LVT, then it is computed; for the rest it is picked from the inversion map.
Arguments:
acode : number
The code point value of the character.
Returns: number  Property enum value of codepoint.
code »
goog.i18n.GraphemeBreak.hasGraphemeBreak(abopt_extended) boolean
There are two kinds of grapheme clusters: 1) Legacy 2)Extended. This method is to check for both using a boolean flag to switch between them.
Arguments:
a : number
The code point value of the first character.
b : number
The code point value of the second character.
opt_extended : boolean=
If true, indicates extended grapheme cluster; If false, indicates legacy cluster.
Returns: boolean  True if a & b do not form a cluster; False otherwise.
code »

Global Properties

goog.i18n.GraphemeBreak.inversions_ : goog.structs.InversionMap
Grapheme Cluster Break property values for all codepoints as inversion map. Constructed lazily.
Code »

Package i18n

Package Reference