Built-In Namespace String
Method Attributes | Method Name and Description |
---|---|
endsWith(suffix)
Does the string end with the specified suffix?
From Ruby on Rails. |
|
Escapes the string without affecting existing escaped entities.
|
|
A utility method for escaping HTML tag characters.
|
|
From Ruby on Rails. |
|
startsWith(prefix)
Does the string start with the specified prefix?
From Ruby on Rails. |
|
strtr(replacePairs)
Equivalent to PHP's two-argument version of strtr.
|
|
trim()
Strip whitespace from the beginning and end of a string.
|
Method Detail
{Boolean}
endsWith(suffix)
- Parameters:
- {String} suffix
- The specified suffix.
- Returns:
- {Boolean}
{String}
escapeOnce()
Escapes the string without affecting existing escaped entities.
Defined in: ajaxsolr.support.js.
From Ruby on Rails.
Defined in: ajaxsolr.support.js.
- Returns:
- {String} The escaped string
{String}
htmlEscape()
A utility method for escaping HTML tag characters.
Defined in: ajaxsolr.support.js.
From Ruby on Rails.
Defined in: ajaxsolr.support.js.
- Returns:
- {String} The escaped string.
sanitizeToId()
- See:
- http://www.w3.org/TR/html4/types.html#type-name
{Boolean}
startsWith(prefix)
Does the string start with the specified prefix?
Defined in: ajaxsolr.support.js.
From Ruby on Rails.
Defined in: ajaxsolr.support.js.
- Parameters:
- {String} prefix
- The speficied prefix.
- Returns:
- {Boolean}
{String}
strtr(replacePairs)
Equivalent to PHP's two-argument version of strtr.
Defined in: ajaxsolr.support.js.
Defined in: ajaxsolr.support.js.
- Parameters:
- {Object} replacePairs
- An associative array in the form: {'from': 'to'}
- Returns:
- {String} A translated copy of the string.
- See:
- http://php.net/manual/en/function.strtr.php
{String}
trim()
Strip whitespace from the beginning and end of a string.
Defined in: ajaxsolr.support.js.
Defined in: ajaxsolr.support.js.
- Returns:
- {String} The trimmed string.