StringUtils
StringUtils ⇐ Class
Class
Deprecated
Kind: global class
Extends: Class
StringUtils ⇐Class
- new StringUtils()
- .capitalizeFirstLetter(string) ⇒
string
- .lowercaseFirstLetter(string) ⇒
string
- .base64Encode(data) ⇒
string
- .base64Decode(b64String) ⇒
string
StringUtils()
This static class represents StringUtils. It provides several tools to work with Strings
capitalizeFirstLetter(string) ⇒ string
Capitalize the first letter of a string
Kind: static method of StringUtils
Param | Type | Description |
---|---|---|
string | string | The string to compute |
lowercaseFirstLetter(string) ⇒ string
Lowercase the first letter of a string
Kind: static method of StringUtils
Param | Type | Description |
---|---|---|
string | string | The string to compute |
base64Encode(data) ⇒ string
Encode data to a base-64 string
Kind: static method of StringUtils
Returns: string
- A Base-64 encoded representation of the data
See: https://en.wikipedia.org/wiki/Base64
Param | Type | Description |
---|---|---|
data | string | The data to encode |
base64Decode(b64String) ⇒ string
Decode a base-64 string
Kind: static method of StringUtils
Returns: string
- Data decoded from the base-64 encoded input string
See: https://en.wikipedia.org/wiki/Base64
Param | Type | Description |
---|---|---|
b64String | * | The base-64 encoded data |