LunarisString Static
Constants
The value of a constant cannot be changed
Type | Name | Value | Description |
---|---|---|---|
string | NewLine | {::nomarkdown} ’ | |
’</span> {:/} | Represents the NewLine character (\n) | ||
string | Empty | '' | Represents the empty string (""). |
Functions
IsNilOrEmpty(string)
Indicates whether the specified string is nil or an empty string (“”).
IsNilOrEmpty(str: string) -> boolean
Type | Name | Description |
---|---|---|
string | str |
Concat(string,string)
Concatenates two specified instances of string.
Concat(str1: string,str2: string) -> string
Type | Name | Description |
---|---|---|
string | str1 | |
string | str2 |
Contains(string,string)
Returns a value indicating whether a specified substring occurs within this string.
Contains(str: string,value: string) -> boolean
Type | Name | Description |
---|---|---|
string | str | |
string | value |
IndexOf(string,string)
Reports the zero-based index of the first occurrence of the specified string in this instance.
IndexOf(str: string,value: string) -> number
Type | Name | Description |
---|---|---|
string | str | |
string | value |
Replace(string,string,string)
Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.
Replace(str: string,oldValue: string,newValue: string) -> string
Type | Name | Description |
---|---|---|
string | str | |
string | oldValue | |
string | newValue |
Trim(string)
Returns a new string that trims all leading and trailing white-space characters from the current string.
Trim(str: string) -> string
Type | Name | Description |
---|---|---|
string | str |
ToUpper(string)
Converts the specified string to uppercase.
ToUpper(str: string) -> string
Type | Name | Description |
---|---|---|
string | str |
ToLower(string)
Converts the specified string to lowercase.
ToLower(str: string) -> string
Type | Name | Description |
---|---|---|
string | str |
Split(string,Char)
Splits a string into substrings based on the specified delimiter.
Split(str: string,delimiter: Char) -> String[]
Type | Name | Description |
---|---|---|
string | str | |
Char | delimiter |
StartsWith(string,string)
Determines whether the beginning of this string instance matches the specified string.
StartsWith(str: string,value: string) -> boolean
Type | Name | Description |
---|---|---|
string | str | |
string | value |
EndsWith(string,string)
Determines whether the end of this string instance matches the specified string.
EndsWith(str: string,value: string) -> boolean
Type | Name | Description |
---|---|---|
string | str | |
string | value |
Trim(string,Char[])
Removes all leading and trailing occurrences of a set of characters specified in an array from the current string.
Trim(str: string,trimChars: Char[]) -> string
Type | Name | Description |
---|---|---|
string | str | |
Char[] | trimChars |