String operations

Conversions

1
native func NameToString(n: CName) -> String
2
native func StringToName(const str: script_ref<String>) -> CName
3
4
native func FloatToStringPrec(value: Float, precision: Int32) -> String
5
native func StringToFloat(const value: script_ref<String>, opt defValue: Float) -> Float
6
7
native func StringToInt(const value: script_ref<String>, opt defValue: Int32) -> Int32
8
native func StringToUint64(const value: script_ref<String>, opt defValue: Uint64) -> Uint64
9
native func StringToHex(const str: script_ref<String>, lineLength: Uint32) -> String
Copied!

String operations

1
native func StrCmp(const str: script_ref<String>, const with: script_ref<String>, opt length: Int32, opt noCase: Bool) -> Int32
2
func StrContains(const str: script_ref<String>, const subStr: script_ref<String>) -> Bool
3
native func StrBeginsWith(const str: script_ref<String>, const match: script_ref<String>) -> Bool
4
native func StrEndsWith(const str: script_ref<String>, const match: script_ref<String>) -> Bool
5
6
native func StrLen(const str: script_ref<String>) -> Int32
7
native func StrChar(i: Int32) -> String
8
native func StrUpper(const str: script_ref<String>) -> String
9
native func StrLower(const str: script_ref<String>) -> String
10
native func StrFindFirst(const str: script_ref<String>, const match: script_ref<String>) -> Int32
11
native func StrFindLast(const str: script_ref<String>, const match: script_ref<String>) -> Int32
12
native func StrReplace(const str: script_ref<String>, const match: script_ref<String>, const with: script_ref<String>) -> String
13
native func StrReplaceAll(const str: script_ref<String>, const match: script_ref<String>, const with: script_ref<String>) -> String
14
native func StrSplit(const str: script_ref<String>, const divider: script_ref<String>, opt includeEmpty: Bool) -> array<String>
15
native func StrSplitFirst(const str: script_ref<String>, const divider: script_ref<String>, out left: String, out right: String) -> Bool
16
native func StrSplitLast(const str: script_ref<String>, const divider: script_ref<String>, out left: String, out right: String) -> Bool
17
native func StrBeforeFirst(const str: script_ref<String>, const match: script_ref<String>) -> String
18
native func StrAfterFirst(const str: script_ref<String>, const match: script_ref<String>) -> String
19
native func StrBeforeLast(const str: script_ref<String>, const match: script_ref<String>) -> String
20
native func StrAfterLast(const str: script_ref<String>, const match: script_ref<String>) -> String
21
native func StrMid(const str: script_ref<String>, first: Int32, opt length: Int32) -> String
22
native func StrLeft(const str: script_ref<String>, length: Int32) -> String
23
native func StrRight(const str: script_ref<String>, length: Int32) -> String
24
func StrUpperFirst(const str: script_ref<String>, opt lenght: Int32) -> String
25
26
native func IsStringValid(const n: script_ref<String>) -> Bool
27
native func IsNameValid(n: CName) -> Bool
28
native func IsStringNumber(const value: script_ref<String>) -> Bool
29
30
native func UnicodeStringEqual(const str: script_ref<String>, const str2: script_ref<String>) -> Bool
31
native func UnicodeStringCompare(const str: script_ref<String>, const str2: script_ref<String>) -> Int32
32
native func UnicodeStringLessThan(const str: script_ref<String>, const str2: script_ref<String>) -> Bool
33
native func UnicodeStringLessThanEqual(const str: script_ref<String>, const str2: script_ref<String>) -> Bool
Copied!
Last modified 18d ago