String Module

Functions and values

Function or value Description

contains substring s

Full Usage: contains substring s

Parameters:
    substring : string
    s : string

Returns: bool
substring : string
s : string
Returns: bool

equals a b

Full Usage: equals a b

Parameters:
    a : string
    b : string

Returns: bool

Also, invariant culture

a : string
b : string
Returns: bool

equalsCaseInsensitive a b

Full Usage: equalsCaseInsensitive a b

Parameters:
    a : string
    b : string

Returns: bool

Also, invariant culture

a : string
b : string
Returns: bool

equalsConstantTime str1 str2

Full Usage: equalsConstantTime str1 str2

Parameters:
    str1 : string
    str2 : string

Returns: bool

Ordinally compare two strings in constant time, bounded by the length of the longest string.

str1 : string
str2 : string
Returns: bool

equalsOrdinalCI str1 str2

Full Usage: equalsOrdinalCI str1 str2

Parameters:
    str1 : string
    str2 : string

Returns: bool

Compare ordinally with ignore case.

str1 : string
str2 : string
Returns: bool

isEmpty s

Full Usage: isEmpty s

Parameters:
    s : string

Returns: bool
s : string
Returns: bool

replace find replacement str

Full Usage: replace find replacement str

Parameters:
    find : string
    replacement : string
    str : string

Returns: string
find : string
replacement : string
str : string
Returns: string

split c s

Full Usage: split c s

Parameters:
    c : char
    s : string

Returns: string list
c : char
s : string
Returns: string list

splita c s

Full Usage: splita c s

Parameters:
    c : char
    s : string

Returns: string[]
c : char
s : string
Returns: string[]

startsWith substring s

Full Usage: startsWith substring s

Parameters:
    substring : string
    s : string

Returns: bool
substring : string
s : string
Returns: bool

substring index s

Full Usage: substring index s

Parameters:
    index : int
    s : string

Returns: string
index : int
s : string
Returns: string

toLowerInvariant str

Full Usage: toLowerInvariant str

Parameters:
    str : string

Returns: string
str : string
Returns: string

trim s

Full Usage: trim s

Parameters:
    s : string

Returns: string
s : string
Returns: string

trimStart s

Full Usage: trimStart s

Parameters:
    s : string

Returns: string
s : string
Returns: string

trimc toTrim s

Full Usage: trimc toTrim s

Parameters:
    toTrim : char
    s : string

Returns: string
toTrim : char
s : string
Returns: string