Method | Description | |
---|---|---|
String ( String val ) : System |
Creates a new String object initialized to the specified string.
|
|
charAt ( ) : String |
Returns the character in the position specified by the index parameter.
|
|
charAt ( Number index ) : String |
Returns the character in the position specified by the index parameter.
|
|
charCodeAt ( ) : Number |
Returns the numeric Unicode character code of the character at the specified index.
|
|
charCodeAt ( Number index ) : Number |
Returns the numeric Unicode character code of the character at the specified index.
|
|
concat ( ) : String |
Appends the supplied arguments to the end of the String object, converting them to strings if necessary, and returns the resulting string.
|
|
fromCharCode ( ) : String |
Returns a string comprising the characters represented by the Unicode character codes in the parameters.
|
|
indexOf ( String val ) : int |
Searches the string and returns the position of the first occurrence of val found at or after startIndex within the calling string.
|
|
indexOf ( String val, Number startIndex ) : int |
Searches the string and returns the position of the first occurrence of val found at or after startIndex within the calling string.
|
|
lastIndexOf ( String val ) : int |
Searches the string from right to left and returns the index of the last occurrence of val found before startIndex.
|
|
lastIndexOf ( String val, Number startIndex ) : int |
Searches the string from right to left and returns the index of the last occurrence of val found before startIndex.
|
|
localeCompare ( ) : int |
Compares the sort order of two or more strings and returns the result of the comparison as an integer.
|
|
localeCompare ( String other = null ) : int |
Compares the sort order of two or more strings and returns the result of the comparison as an integer.
|
|
slice ( ) : String |
Returns a string that includes the startIndex character and all characters up to, but not including, the endIndex character.
|
|
slice ( Number startIndex ) : String |
Returns a string that includes the startIndex character and all characters up to, but not including, the endIndex character.
|
|
slice ( Number startIndex, Number endIndex ) : String |
Returns a string that includes the startIndex character and all characters up to, but not including, the endIndex character.
|
|
substring ( ) : String |
Returns a string consisting of the character specified by startIndex and all characters up to endIndex - 1.
|
|
substring ( Number startIndex ) : String |
Returns a string consisting of the character specified by startIndex and all characters up to endIndex - 1.
|
|
substring ( Number startIndex, Number endIndex ) : String |
Returns a string consisting of the character specified by startIndex and all characters up to endIndex - 1.
|
|
toLocaleLowerCase ( ) : String |
Returns a copy of this string, with all uppercase characters converted to lowercase.
|
|
toLocaleUpperCase ( ) : String |
Returns a copy of this string, with all lowercase characters converted to uppercase.
|
|
toLowerCase ( ) : String |
Returns a copy of this string, with all uppercase characters converted to lowercase.
|
|
toString ( ) : String |
Returns the string representation of the specified object.
|
|
toUpperCase ( ) : String |
Returns a copy of this string, with all lowercase characters converted to uppercase.
|
Method | Description | |
---|---|---|
String ( string str ) : System | ||
strSliceOp ( Number startIndex, Number endIndex, bool swap ) : String |
public String ( String val ) : System | ||
val | String | The initial value of the new String object. |
return | System |
public charAt ( Number index ) : String | ||
index | Number | An integer specifying the position of a character in the string. |
return | String |
public charCodeAt ( Number index ) : Number | ||
index | Number | An integer that specifies the position of a character in the string. |
return | Number |
public indexOf ( String val ) : int | ||
val | String | The substring for which to search. |
return | int |
public indexOf ( String val, Number startIndex ) : int | ||
val | String | The substring for which to search. |
startIndex | Number | An optional integer specifying the starting index of the search. |
return | int |
public lastIndexOf ( String val ) : int | ||
val | String | The string for which to search. |
return | int |
public lastIndexOf ( String val, Number startIndex ) : int | ||
val | String | The string for which to search. |
startIndex | Number | An optional integer specifying the starting index from which to search for val. |
return | int |
public localeCompare ( String other = null ) : int | ||
other | String | A string value to compare. |
return | int |
public slice ( Number startIndex ) : String | ||
startIndex | Number | The zero-based index of the starting point for the slice. If startIndex is a negative number, the slice is created from right-to-left, where -1 is the last character. |
return | String |
public slice ( Number startIndex, Number endIndex ) : String | ||
startIndex | Number | The zero-based index of the starting point for the slice. If startIndex is a negative number, the slice is created from right-to-left, where -1 is the last character. |
endIndex | Number | /// An integer that is one greater than the index of the ending point for the slice. The character indexed by the endIndex parameter is not included in the extracted string. If endIndex is a negative number, the /// ending point is determined by counting back from the end of the string, where -1 is the last character. The default is the maximum value allowed for an index. If this parameter is omitted, String.length is used. /// |
return | String |
public substring ( Number startIndex ) : String | ||
startIndex | Number | /// An integer specifying the index of the first character used to create the substring. Valid values for startIndex are 0 through String.length. If startIndex is a negative value, 0 is used. /// |
return | String |
public substring ( Number startIndex, Number endIndex ) : String | ||
startIndex | Number | /// An integer specifying the index of the first character used to create the substring. Valid values for startIndex are 0 through String.length. If startIndex is a negative value, 0 is used. /// |
endIndex | Number | /// An integer that is one greater than the index of the last character in the extracted substring. Valid values for endIndex are 0 through String.length. The character at endIndex is not included in the substring. /// The default is the maximum value allowed for an index. If this parameter is omitted, String.length is used. If this parameter is a negative value, 0 is used. /// |
return | String |