From Bohemia Interactive Community
|
|
(3 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| =="string" find/findi "what"
| | #REDIRECT [[String]] |
| | |
| | |
| returns offset to start of string
| |
| | |
| Example:
| |
| "one two three" findi "TWO" , result is 4
| |
| | |
| | |
| ==string @ idx==
| |
| | |
| Example:
| |
| "Hello" @ 2 , result is "l"
| |
| | |
| ==string @ [from,to]==
| |
| | |
| returns a substr
| |
| | |
| Example:
| |
| | |
| "Hello world" @ [2,7] , result is llo w
| |
| | |
| | |
| | |
| ==str AnyThing==
| |
| | |
| returns "whatever anything is"
| |
| | |
| example:
| |
| | |
| str _thing;
| |
| | |
| ==String strCmp String==
| |
| | |
| returns stanard c strcmp()
| |
| | |
| | |
| note, case sensitive unfortunately
| |
| | |
| ==tolower==
| |
| ==toupper==
| |
| | |
| tolower string;
| |
| | |
| std c functions
| |
| | |
| example
| |
| | |
| _val= "this" strcmp tolower"tHiS";
| |
Latest revision as of 18:22, 27 May 2018