Class Index | File Index

Classes


Built-In Namespace String

Method Summary
Method Attributes Method Name and Description
 
Capitalizes the string's first letter.
 
Checks if this string has non-whitespace characters.
 
endsWith(str)
Checks if this string ends with the passed string.
 
format(list)
Creates a formatted string.
 
mult(n)
Concatenates this string n times.
 
sprintf(An)
sprintf implementation: works for basic replacement but precision, width, and flags are not implemented fully.
 
Checks if this string starts with the passed string.
 
Strips all whitespace characters from each side of the string.
<static>  
String.test(o)
Checks if the provided object is a string.
 
Splits the string into words.
 
x()
Alias of mult.
Method Detail
{String} capitalize()
Capitalizes the string's first letter.
Defined in: nativelib-dev.js.
Returns:
{String} The capitalized string.

{Boolean} empty()
Checks if this string has non-whitespace characters.
Defined in: nativelib-dev.js.
Returns:
{Boolean} true if empty, false, if not.

{Boolean} endsWith(str)
Checks if this string ends with the passed string.
Defined in: nativelib-dev.js.
Parameters:
{String} str
The string to check.
Returns:
{Boolean} true if it matches, false if not.

{String} format(list)
Creates a formatted string.
Defined in: nativelib-dev.js.
'{0}-{1}-{2}'.format('a', 'b', 'c'); // 'a-b-c'
'{1}-{1}-{3}'.format('a', 'b', 'c', 'd'); // 'b-b-d'
Parameters:
{Arguments} list
An argument list of ordered replacements.
Returns:
{String} The formatted string.

{String} mult(n)
Concatenates this string n times.
Defined in: nativelib-dev.js.
Parameters:
{Number} n
The number of times to concatenate the string.
Returns:
{String} The multipled string.

{String} sprintf(An)
sprintf implementation: works for basic replacement but precision, width, and flags are not implemented fully.
Defined in: nativelib-dev.js.
Parameters:
{Arguments} An
argument list of ordered replacements.
Returns:
{String} The formatted string.

{Boolean} startsWith(str)
Checks if this string starts with the passed string.
Defined in: nativelib-dev.js.
Parameters:
{String} str
The string to check.
Returns:
{Boolean} true if it matches, false if not.

{String} strip()
Strips all whitespace characters from each side of the string.
Defined in: nativelib-dev.js.
Returns:
{String} The stripped string.

<static> {Boolean} String.test(o)
Checks if the provided object is a string.
Defined in: nativelib-dev.js.
Parameters:
{Object} o
The object to check.
Returns:
{Boolean} true if it is a string, false if not.

{Array} words()
Splits the string into words.
Defined in: nativelib-dev.js.
Returns:
{Array} An array of words.

x()
Alias of mult.
Defined in: nativelib-dev.js.

Documentation generated by JsDoc Toolkit 2.3.3 on Sat Oct 16 2010 01:15:39 GMT-0400 (EDT)