# new Charset(optionsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object
|
<optional> |
options which govern the construction of this instance |
- See:
-
- ilib#setLoaderCallback for information about registering a loader callback instance
Methods
# getDescription() → {string}
Return a short description of the character set.
a description of the character set
string
# getMaxCharWidth() → {number}
Return the largest number of bytes that a single character in this charset could use.
the largest number of bytes that a single character in this charset uses
number
# getMinCharWidth() → {number}
Return the smallest number of bytes that a single character in this charset could use. For most charsets, this is 1, but for some charsets such as Unicode encoded in UTF-16, this may be 2 or more.
the smallest number of bytes that a single character in this charset uses
number
# getName() → {string}
Return the standard normalized name of this charset. The list of standard names comes from the IANA registry of character set names at http://www.iana.org/assignments/character-sets/character-sets.xhtml.
the name of the charset
string
# getOriginalName() → {string}
Return the original name that this instance was constructed with before it was normalized to the standard name returned by #getName.
the original name that this instance was constructed with
string
# getScripts() → {Array.<string>}
Return an array of ISO script codes whose characters can be encoded with this character set.
an array of ISO script codes supported by this charset
Array.<string>
# isBigEndian() → {boolean}
Return whether or not characters larger than 1 byte use the big endian order or little endian.
true if this character set uses big endian order, or false otherwise
boolean
# isMultibyte() → {boolean}
Return true if this is a multibyte character set, or false for a fixed width character set. A multibyte character set is one in which the characters have a variable width. That is, one character may use 1 byte and a different character might use 2 or 3 bytes.
true if this is a multibyte charset, or false otherwise
boolean