Methods
Own
(static) asciiCharCodeAt(str, i) → {Number}
Extends the standard charCodeAt() method of the String class to find the ASCII char code of a character at a given position in a UTF8 encoded string.
Parameters
| Name | Type | Description |
|---|---|---|
str |
String | |
i |
Number | position of the character |
Returns
- Type
- Number
Details
- Source
- utils/encoding.js, line 143
(static) decode(utftext) → {String}
Decode a string from utf-8.
Parameters
| Name | Type | Description |
|---|---|---|
utftext |
String | to decode |
Returns
utf8 decoded string
- Type
- String
Details
- Source
- utils/encoding.js, line 81
(static) encode(string) → {String}
Encode a string to utf-8.
Parameters
| Name | Type | Description |
|---|---|---|
string |
String |
Returns
utf8 encoded string
- Type
- String
Details
- Source
- utils/encoding.js, line 44
Inherited
none