i18n.CharListDecompressor Extends
Class to decompress base88 compressed character list.

Inheritance

Constructor

goog.i18n.CharListDecompressor()

Instance Methods

Public Protected Private
addChars_(listlastcodevaluetype) number
Add character(s) specified by the value and type to given list and return the next character in the sequence.
Arguments:
list : Array.<string>
The list of characters to which the specified characters are appended.
lastcode : number
The last codepoint that was added to the list.
value : number
The value component that representing the delta or range.
type : number
The type component that representing whether the value is a positive or negative delta or range.
Returns: number  Last codepoint that is added to the list.
code »
buildCharMap_(str)
Builds the map from ascii characters used for the base88 scheme to number each character represents.
Arguments:
str : string
The string of characters used in base88 scheme.
code »
getCodeAt_(strstartleng) number
Gets the number encoded in base88 scheme by a substring of given length and placed at the a given position of the string.
Arguments:
str : string
String containing sequence of characters encoding a number in base 88 scheme.
start : number
Starting position of substring encoding the number.
leng : number
Length of the substring encoding the number.
Returns: number  The encoded number.
code »
toCharList(str) !Array.<string>
Gets the list of characters specified in the given string by base 88 scheme.
Arguments:
str : string
The string encoding character list.
Returns: !Array.<string>  The list of characters specified by the given string in base 88 scheme.
code »

Instance Properties

charMap_ :
1-1 mapping from ascii characters used in encoding to an integer in the range 0 to 87.
Code »

Package i18n

Package Reference