The goog.i18n.GraphemeBreak Namespace

.hasGraphemeBreak(a, b, opt_extended)

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.

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.

The goog.i18n.GraphemeBreak.property Enum

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. 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. … more