Interface String
Hierarchy
- String
Index
Methods
match
-
Parameters
-
matcher: object
An object that supports being matched against.
-
__@match: function
-
Parameters
-
string: string
Returns RegExpMatchArray | null
-
-
-
Returns RegExpMatchArray | null
-
replace
-
Replaces text in a string, using an object that supports replacement within a string.
Parameters
-
searchValue: object
A object can search for and replace matches within a string.
-
__@replace: function
-
Parameters
-
string: string
-
replaceValue: string
Returns string
-
-
-
-
replaceValue: string
A string containing the text to replace for every successful match of searchValue in this string.
Returns string
-
-
Replaces text in a string, using an object that supports replacement within a string.
Parameters
-
searchValue: object
A object can search for and replace matches within a string.
-
__@replace: function
-
Parameters
-
string: string
-
replacer: function
-
-
Parameters
-
substring: string
-
Rest ...args: any[]
Returns string
-
-
-
Returns string
-
-
-
-
replacer: function
A function that returns the replacement text.
-
-
Parameters
-
substring: string
-
Rest ...args: any[]
Returns string
-
-
-
Returns string
-
search
-
Finds the first substring match in a regular expression search.
Parameters
-
searcher: object
An object which supports searching within a string.
-
__@search: function
-
Parameters
-
string: string
Returns number
-
-
-
Returns number
-
split
-
Split a string into substrings using the specified separator and return them as an array.
Parameters
-
splitter: object
An object that can split a string.
-
__@split: function
-
Parameters
-
string: string
-
Optional limit: number
Returns string[]
-
-
-
-
Optional limit: number
A value used to limit the number of elements returned in the array.
Returns string[]
-
Generated using TypeDoc
Matches a string an object that supports being matched against, and returns an array containing the results of that search.