C# Class SGDE.Content.Code.Library.String

The String class is a data type that represents a string of characters.
Inheritance: Object
Datei anzeigen Open project: sgdc/sgdc-old

Public Methods

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.

Private Methods

Method Description
String ( string str ) : System
strSliceOp ( Number startIndex, Number endIndex, bool swap ) : String

Method Details

String() public method

Creates a new String object initialized to the specified string.
public String ( String val ) : System
val String The initial value of the new String object.
return System

charAt() public method

Returns the character in the position specified by the index parameter.
public charAt ( ) : String
return String

charAt() public method

Returns the character in the position specified by the index parameter.
public charAt ( Number index ) : String
index Number An integer specifying the position of a character in the string.
return String

charCodeAt() public method

Returns the numeric Unicode character code of the character at the specified index.
public charCodeAt ( ) : Number
return Number

charCodeAt() public method

Returns the numeric Unicode character code of the character at the specified index.
public charCodeAt ( Number index ) : Number
index Number An integer that specifies the position of a character in the string.
return Number

concat() public method

Appends the supplied arguments to the end of the String object, converting them to strings if necessary, and returns the resulting string.
public concat ( ) : String
return String

fromCharCode() public static method

Returns a string comprising the characters represented by the Unicode character codes in the parameters.
public static fromCharCode ( ) : String
return String

indexOf() public method

Searches the string and returns the position of the first occurrence of val found at or after startIndex within the calling string.
public indexOf ( String val ) : int
val String The substring for which to search.
return int

indexOf() public method

Searches the string and returns the position of the first occurrence of val found at or after startIndex within the calling string.
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

lastIndexOf() public method

Searches the string from right to left and returns the index of the last occurrence of val found before startIndex.
public lastIndexOf ( String val ) : int
val String The string for which to search.
return int

lastIndexOf() public method

Searches the string from right to left and returns the index of the last occurrence of val found before startIndex.
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

localeCompare() public method

Compares the sort order of two or more strings and returns the result of the comparison as an integer.
public localeCompare ( ) : int
return int

localeCompare() public method

Compares the sort order of two or more strings and returns the result of the comparison as an integer.
public localeCompare ( String other = null ) : int
other String A string value to compare.
return int

slice() public method

Returns a string that includes the startIndex character and all characters up to, but not including, the endIndex character.
public slice ( ) : String
return String

slice() public method

Returns a string that includes the startIndex character and all characters up to, but not including, the endIndex character.
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

slice() public method

Returns a string that includes the startIndex character and all characters up to, but not including, the endIndex character.
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

substring() public method

Returns a string consisting of the character specified by startIndex and all characters up to endIndex - 1.
public substring ( ) : String
return String

substring() public method

Returns a string consisting of the character specified by startIndex and all characters up to endIndex - 1.
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

substring() public method

Returns a string consisting of the character specified by startIndex and all characters up to endIndex - 1.
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

toLocaleLowerCase() public method

Returns a copy of this string, with all uppercase characters converted to lowercase.
public toLocaleLowerCase ( ) : String
return String

toLocaleUpperCase() public method

Returns a copy of this string, with all lowercase characters converted to uppercase.
public toLocaleUpperCase ( ) : String
return String

toLowerCase() public method

Returns a copy of this string, with all uppercase characters converted to lowercase.
public toLowerCase ( ) : String
return String

toString() public method

Returns the string representation of the specified object.
public toString ( ) : String
return String

toUpperCase() public method

Returns a copy of this string, with all lowercase characters converted to uppercase.
public toUpperCase ( ) : String
return String