The goog.i18n.uChar Namespace

The goog.i18n.uChar.LocalNameFetcher Class

Builds the NameFetcherLocal object. This is a simple object which retrieves character names from a local bundled database. This database only covers invisible characters. See the goog.i18n.uChar class for more details. … more

The goog.i18n.uChar.NameFetcher Interface

NameFetcher interface. Implementations of this interface are used to retrieve Unicode character names. @interface … more

The goog.i18n.uChar.RemoteNameFetcher Class

Builds the RemoteNameFetcher object. This object retrieves codepoint names from a remote data source. … more

.fromCharCode(code)

Gets a character from the given Unicode value.

code {number}
The Unicode value of the character.
returns {?string}
The character from Unicode value.

.toCharCode(ch)

Gets Unicode value of the given character.

ch {string}
The given character.
returns {number}
The Unicode value of the character.

.toHexString(ch)

Gets the U+ notation string of a Unicode character. Ex: 'U+0041' for 'A'.

ch {string}
The given character.
returns {string}
The U+ notation of the given character.

.toName(ch)

Gets the name of a character, if available, returns null otherwise.

ch {string}
The character.
returns {?string}
The name of the character.