Methods
camelize(str, firstCharToUpperCase) → {string}
Convert an string into camel case object name format.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | String to convert. |
firstCharToUpperCase |
string | Converts the first character to uppercase. |
Returns:
The string converted to camel case.
- Type
- string
sprintf(fmt, arguments) → {string}
Formats a string based on format specifiers passed to the function.
Parameters:
Name | Type | Description |
---|---|---|
fmt |
string | A string containing format specifiers. |
arguments |
object | Objects to be formatted. |
Returns:
A formatted string based on format specifiers passed to the function.
- Type
- string
sprintFormat(parseTree, argv) → {string}
Formats a string based on an abstract synthetic tree produced by the format specifier compiler.
Parameters:
Name | Type | Description |
---|---|---|
parseTree |
object | Abstract synthetic tree produced by the format specifier compiler. |
argv |
array | Array containing objects to be formatted. |
Returns:
A formatted string based on format specifiers passed to the function.
- Type
- string
sprintfParse(fmt) → {object}
Compiles a string based on the syntactic rules of the C sprintf function.
Parameters:
Name | Type | Description |
---|---|---|
fmt |
string | A string containing format specifiers. |
Returns:
Abstract synthetic tree produced for the format specifier.
- Type
- object
vsprintf(fmt, argv) → {string}
Formats a string based on format specifiers passed to the function.
Parameters:
Name | Type | Description |
---|---|---|
fmt |
string | A string containing format specifiers. |
argv |
array | Array containing objects to be formatted. |
Returns:
A formatted string based on format specifiers passed to the function.
- Type
- string
(inner) init()
Creates the attributes of the class.