Module string
Functions
stringClearReferences
- stringClearReferences(text: string): string
-
Parameters
Returns string
stringFindMatch
- stringFindMatch(needle: string, haystack: string[]): object
-
Parameters
-
needle: string
-
haystack: string[]
Returns object
-
bestMatch: string
-
bestMatchIndex: number
-
ratings: object[]
stringFindSimilarity
- stringFindSimilarity(alpha: string, beta: string): number
-
Parameters
-
alpha: string
-
beta: string
Returns number
stringFindSub
- stringFindSub(text?: string, begin?: number, end?: number): string
-
Parameters
-
text: string = ""
-
begin: number = 0
-
Optional end: number
Returns string
stringGetCount
- stringGetCount(text: string): number
-
Parameters
Returns number
stringIsComparable
- stringIsComparable(first: string, second: string, isStrict?: boolean): boolean
-
Parameters
-
first: string
-
second: string
-
isStrict: boolean = false
Returns boolean
stringIsContain
- stringIsContain(haystack: string, needle: string, isStrict?: boolean): boolean
-
Parameters
-
haystack: string
-
needle: string
-
isStrict: boolean = false
Returns boolean
stringIsSimilar
- stringIsSimilar(alpha: string, beta: string, minRating?: number): boolean
-
Parameters
-
alpha: string
-
beta: string
-
minRating: number = 0.85
Returns boolean
stringMakeEscaped
- stringMakeEscaped(text: string): string
-
Parameters
Returns string
stringMakeReversed
- stringMakeReversed(text: string): string
-
Parameters
Returns string
Reversed string
Returns a section of a string.