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

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

Méthodes publiques

Méthode 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

Méthode Description
String ( string str ) : System
strSliceOp ( Number startIndex, Number endIndex, bool swap ) : String

Method Details

String() public méthode

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.
Résultat System

charAt() public méthode

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

charAt() public méthode

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.
Résultat String

charCodeAt() public méthode

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

charCodeAt() public méthode

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.
Résultat Number

concat() public méthode

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
Résultat String

fromCharCode() public static méthode

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

indexOf() public méthode

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.
Résultat int

indexOf() public méthode

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.
Résultat int

lastIndexOf() public méthode

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.
Résultat int

lastIndexOf() public méthode

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.
Résultat int

localeCompare() public méthode

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

localeCompare() public méthode

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.
Résultat int

slice() public méthode

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

slice() public méthode

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.
Résultat String

slice() public méthode

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. ///
Résultat String

substring() public méthode

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

substring() public méthode

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. ///
Résultat String

substring() public méthode

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. ///
Résultat String

toLocaleLowerCase() public méthode

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

toLocaleUpperCase() public méthode

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

toLowerCase() public méthode

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

toString() public méthode

Returns the string representation of the specified object.
public toString ( ) : String
Résultat String

toUpperCase() public méthode

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