/ fm / liveswitch / StringExtensions
Class: StringExtensions
fm.liveswitch.StringExtensions
Table of contents
Constructors
Properties
Methods
- getTypeString
- compareTo
- concat
- contains
- endsWith
- format
- getChars
- getHashCode
- getLength
- indexOf
- isEqual
- isNullOrEmpty
- join
- lastIndexOf
- nullCoalesce
- replace
- split
- startsWith
- substring
- toLower
- toString
- toUpper
- trim
- trimEnd
- trimStart
Constructors
constructor
+ new StringExtensions(): StringExtensions
Returns: StringExtensions
Properties
empty
▪ Static
empty: string= ''
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:7
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:4
compareTo
▸ Static
compareTo(s1
: string, s2
: string): number
Parameters:
Name | Type |
---|---|
s1 |
string |
s2 |
string |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:158
concat
▸ Static
concat(...strings
: any[]): string
Parameters:
Name | Type |
---|---|
...strings |
any[] |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:51
contains
▸ Static
contains(str
: string, s
: string): boolean
Parameters:
Name | Type |
---|---|
str |
string |
s |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:61
endsWith
▸ Static
endsWith(str
: string, s
: string, stringComparison?
: StringComparison): boolean
Parameters:
Name | Type |
---|---|
str |
string |
s |
string |
stringComparison? |
StringComparison |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:147
format
▸ Static
format(format
: string, ...args
: any[]): string
Parameters:
Name | Type |
---|---|
format |
string |
...args |
any[] |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:170
getChars
▸ Static
getChars(str
: string): string[]
Parameters:
Name | Type |
---|---|
str |
string |
Returns: string[]
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:203
getHashCode
▸ Static
getHashCode(str
: string): number
Parameters:
Name | Type |
---|---|
str |
string |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:220
getLength
▸ Static
getLength(str
: string): number
Parameters:
Name | Type |
---|---|
str |
string |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:197
indexOf
▸ Static
indexOf(str
: string, s
: string, stringComparison?
: StringComparison): number
Parameters:
Name | Type |
---|---|
str |
string |
s |
string |
stringComparison? |
StringComparison |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:114
isEqual
▸ Static
isEqual(str
: string, s
: string, stringComparison?
: StringComparison): boolean
Parameters:
Name | Type |
---|---|
str |
string |
s |
string |
stringComparison? |
StringComparison |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:106
isNullOrEmpty
▸ Static
isNullOrEmpty(s
: string): boolean
Parameters:
Name | Type |
---|---|
s |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:97
join
▸ Static
join(separator
: string, ...array
: any[]): string
Parameters:
Name | Type |
---|---|
separator |
string |
...array |
any[] |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:67
lastIndexOf
▸ Static
lastIndexOf(str
: string, s
: string, stringComparison?
: StringComparison): number
Parameters:
Name | Type |
---|---|
str |
string |
s |
string |
stringComparison? |
StringComparison |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:125
nullCoalesce
▸ Static
nullCoalesce(value1
: string, value2
: string): string
Parameters:
Name | Type |
---|---|
value1 |
string |
value2 |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:8
replace
▸ Static
replace(s
: string, search
: string, replace
: string): string
Parameters:
Name | Type |
---|---|
s |
string |
search |
string |
replace |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:45
split
▸ Static
split(s
: string, chars
: number[]): string[]
Parameters:
Name | Type |
---|---|
s |
string |
chars |
number[] |
Returns: string[]
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:80
startsWith
▸ Static
startsWith(str
: string, s
: string, stringComparison?
: StringComparison): boolean
Parameters:
Name | Type |
---|---|
str |
string |
s |
string |
stringComparison? |
StringComparison |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:136
substring
▸ Static
substring(str
: string, startIndex
: number, length
: number): string
Parameters:
Name | Type |
---|---|
str |
string |
startIndex |
number |
length |
number |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:213
toLower
▸ Static
toLower(str
: string): string
Parameters:
Name | Type |
---|---|
str |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:185
toString
▸ Static
toString(s
: string): string
Parameters:
Name | Type |
---|---|
s |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:14
toUpper
▸ Static
toUpper(str
: string): string
Parameters:
Name | Type |
---|---|
str |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:191
trim
▸ Static
trim(s
: string): string
Parameters:
Name | Type |
---|---|
s |
string |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:17
trimEnd
▸ Static
trimEnd(s
: string, chars
: number[]): string
Parameters:
Name | Type |
---|---|
s |
string |
chars |
number[] |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:23
trimStart
▸ Static
trimStart(s
: string, chars
: number[]): string
Parameters:
Name | Type |
---|---|
s |
string |
chars |
number[] |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StringExtensions.ts:34