Namespace that holds functions and other objects that extend JavaScript's string capabilities.
Platform Support
Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
---|
Functions
Method | Action | Jaxer Server Framework | Jaxer Client Framework | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
static endsWith(String inString, String lookFor, Boolean ignoreCase) : Boolean
Check to see if a string ends with a string
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static escapeForJS(String raw) : String
Escapes an input string for use with javascript
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static escapeForSQL(String raw) : String
Escapes an input string for use with SQL
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static grep(String stringOrArray, String pattern) : Array<String>
Searches the given lines for the given pattern, and returns the lines that matched.
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static singleQuote(String text) : String
Surround the provided string in single quotation marks
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static startsWith(String inString, String lookFor, Boolean ignoreCase) : Boolean
Check to see if a string starts with another string
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static trim(String str, [String charsToTrim,] [String leftOrRight]) : String
Left or right trim the provided string. Optionally, you can specify a list of characters (as a single string) to trim from
the source string. By default, whitespace is removed. Also, you can control which side of the string (start or end) is trimmed
with the default being both sides.
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|
||||||||||||||
static upperCaseToCamelCase(String orig) : String
Convert a string to a CamelCase representation by removing interword spaces and capitalizing the first letter of each word
following an underscore
|
Show Details | 1.0 | no | |||||||||||
Parameters
Returns
|