Built-In Namespace global__
Method Attributes | Method Name and Description |
---|---|
b64tob64u(s)
convert a Base64 encoded string to a Base64URL encoded string.
|
|
b64toutf8(s)
convert a Base64 encoded string to a UTF-8 encoded string including CJK or Latin.
|
|
b64utob64(s)
convert a Base64URL encoded string to a Base64 encoded string.
|
|
b64utohex(s)
convert a Base64URL encoded string to a hexadecimal string.
|
|
b64utos(s)
convert a Base64URL encoded string to a ASCII string.
|
|
b64utoutf8(s)
|
|
BAtohex(a)
convert an array of bytes(Number) to hexadecimal string.
|
|
BAtos(a)
convert an array of character codes to a string
|
|
convert UTFa hexadecimal string to a URLComponent string such like "%67%68".
|
|
hextob64u(s)
convert a hexadecimal string to a Base64URL encoded string.
|
|
hextorstr(s)
convert a hexadecimal encoded string to raw string including non printable characters.
|
|
hextouricmp(s)
convert a hexadecimal string to a URLComponent string such like "%67%68".
|
|
hextoutf8(s)
convert a hexadecimal encoded string to a UTF-8 encoded string including CJK or Latin.
|
|
convert all UNIX new line("\r\n") to DOS new line("\n") in
a String "s".
|
|
convert all DOS new line("\r\n") to UNIX new line("\n") in
a String "s".
|
|
rstrtohex(s)
convert a raw string including non printable characters to hexadecimal encoded string.
|
|
stob64(s)
convert a ASCII string to a Base64 encoded string.
|
|
stob64u(s)
convert a ASCII string to a Base64URL encoded string.
|
|
stoBA(s)
convert a string to an array of character codes
|
|
stohex(s)
convert a ASCII string to a hexadecimal string of ASCII codes.
|
|
uricmptohex(s)
convert a URLComponent string such like "%67%68" to a hexadecimal string.
|
|
utf8tob64(s)
convert a UTF-8 encoded string including CJK or Latin to a Base64 encoded string.
|
|
utf8tob64u(s)
|
|
utf8tohex(s)
convert a UTF-8 encoded string including CJK or Latin to a hexadecimal encoded string.
|
Method Detail
{String}
b64tob64u(s)
convert a Base64 encoded string to a Base64URL encoded string.
Example: "ab+c3f/==" → "ab-c3f_"
Defined in: base64x-1.1.js.
Example: "ab+c3f/==" → "ab-c3f_"
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- Base64 encoded string
- Returns:
- {String} Base64URL encoded string
{String}
b64toutf8(s)
convert a Base64 encoded string to a UTF-8 encoded string including CJK or Latin.
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- Base64 encoded string
- Since:
- 1.1.1
- Returns:
- {String} UTF-8 encoded string
{String}
b64utob64(s)
convert a Base64URL encoded string to a Base64 encoded string.
Example: "ab-c3f_" → "ab+c3f/=="
Defined in: base64x-1.1.js.
Example: "ab-c3f_" → "ab+c3f/=="
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- Base64URL encoded string
- Returns:
- {String} Base64 encoded string
{String}
b64utohex(s)
- Parameters:
- {String} s
- Base64URL encoded string
- Returns:
- {String} hexadecimal string
{String}
b64utos(s)
convert a Base64URL encoded string to a ASCII string.
NOTE: This can't be used for Base64URL encoded non ASCII characters.
Defined in: base64x-1.1.js.
NOTE: This can't be used for Base64URL encoded non ASCII characters.
Defined in: base64x-1.1.js.
- Parameters:
- {s} s
- Base64URL encoded string
- Returns:
- {String} ASCII string
b64utoutf8(s)
Defined in: base64x-1.1.js.
- Parameters:
- s
{String}
BAtohex(a)
- Parameters:
- {Array of Numbers} a
- array of bytes
- Returns:
- {String} hexadecimal string
{String}
BAtos(a)
convert an array of character codes to a string
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {Array of Numbers} a
- array of character codes
- Returns:
- {String} s
{String}
encodeURIComponentAll(s)
convert UTFa hexadecimal string to a URLComponent string such like "%67%68".
Note that these "
Defined in: base64x-1.1.js.
Note that these "
0-9A-Za-z!'()*-._~
" characters will not
converted to "%xx" format by builtin 'encodeURIComponent()' function.
However this 'encodeURIComponentAll()' function will convert
all of characters into "%xx" format.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- hexadecimal string
- Since:
- 1.1
- Returns:
- {String} URIComponent string such like "%67%68"
{String}
hextob64u(s)
- Parameters:
- {String} s
- hexadecimal string
- Returns:
- {String} Base64URL encoded string
{String}
hextorstr(s)
convert a hexadecimal encoded string to raw string including non printable characters.
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
hextorstr("610061") → "a\x00a"
- Parameters:
- {String} s
- hexadecimal encoded string
- Since:
- 1.1.2
- Returns:
- {String} raw string
{String}
hextouricmp(s)
convert a hexadecimal string to a URLComponent string such like "%67%68".
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- hexadecimal string
- Since:
- 1.1
- Returns:
- {String} URIComponent string such like "%67%68"
{String}
hextoutf8(s)
convert a hexadecimal encoded string to a UTF-8 encoded string including CJK or Latin.
Note that when input is improper hexadecimal string as UTF-8 string, this function returns 'null'.
Defined in: base64x-1.1.js.
Note that when input is improper hexadecimal string as UTF-8 string, this function returns 'null'.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- hexadecimal encoded string
- Since:
- 1.1.1
- Returns:
- {String} UTF-8 encoded string or null
{String}
newline_toDos(s)
convert all UNIX new line("\r\n") to DOS new line("\n") in
a String "s".
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- string
- Returns:
- {String} converted string
{String}
newline_toUnix(s)
convert all DOS new line("\r\n") to UNIX new line("\n") in
a String "s".
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- string
- Returns:
- {String} converted string
{String}
rstrtohex(s)
convert a raw string including non printable characters to hexadecimal encoded string.
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
rstrtohex("a\x00a") → "610061"
- Parameters:
- {String} s
- raw string
- Since:
- 1.1.2
- Returns:
- {String} hexadecimal encoded string
{String}
stob64(s)
convert a ASCII string to a Base64 encoded string.
NOTE: This can't be used for non ASCII characters.
Defined in: base64x-1.1.js.
NOTE: This can't be used for non ASCII characters.
Defined in: base64x-1.1.js.
- Parameters:
- {s} s
- ASCII string
- Returns:
- {String} Base64 encoded string
{String}
stob64u(s)
convert a ASCII string to a Base64URL encoded string.
NOTE: This can't be used for non ASCII characters.
Defined in: base64x-1.1.js.
NOTE: This can't be used for non ASCII characters.
Defined in: base64x-1.1.js.
- Parameters:
- {s} s
- ASCII string
- Returns:
- {String} Base64URL encoded string
{Array of Numbers}
stoBA(s)
convert a string to an array of character codes
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- Returns:
- {Array of Numbers}
{String}
stohex(s)
convert a ASCII string to a hexadecimal string of ASCII codes.
NOTE: This can't be used for non ASCII characters.
Defined in: base64x-1.1.js.
NOTE: This can't be used for non ASCII characters.
Defined in: base64x-1.1.js.
- Parameters:
- {s} s
- ASCII string
- Returns:
- {String} hexadecimal string
{String}
uricmptohex(s)
convert a URLComponent string such like "%67%68" to a hexadecimal string.
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- URIComponent string such like "%67%68"
- Since:
- 1.1
- Returns:
- {String} hexadecimal string
{String}
utf8tob64(s)
convert a UTF-8 encoded string including CJK or Latin to a Base64 encoded string.
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- UTF-8 encoded string
- Since:
- 1.1.1
- Returns:
- {String} Base64 encoded string
utf8tob64u(s)
Defined in: base64x-1.1.js.
- Parameters:
- s
{String}
utf8tohex(s)
convert a UTF-8 encoded string including CJK or Latin to a hexadecimal encoded string.
Defined in: base64x-1.1.js.
Defined in: base64x-1.1.js.
- Parameters:
- {String} s
- UTF-8 encoded string
- Since:
- 1.1.1
- Returns:
- {String} hexadecimal encoded string