New functions for strings package
This commit is contained in:
@@ -22,10 +22,22 @@ Finds $len characters of $str, starting at $idx (no prerequisites).
|
||||
|
||||
Finds the content of the `$instance`th instance of brackets, with the left bracket being the $left char and the right bracket of $right char (requires !findCharInstance).
|
||||
|
||||
### fun -string !matchStart -string &str -string &instr
|
||||
### fun -bool !matchStart -string &str -string &instr
|
||||
|
||||
Checks if the start of $str matches $instr (requires !mid).
|
||||
|
||||
### fun -int !findStringInstance -string &str -string &instr -int &instance
|
||||
|
||||
The same as !findCharInstance, but allows a string to be parsed to be searched for (no prerequisites).
|
||||
The same as !findCharInstance, but allows a string to be parsed to be searched for (no prerequisites).
|
||||
|
||||
### fun -string !removeLeft -string &string -int &num
|
||||
|
||||
Removes the first $num characters from a string (no prerequisites).
|
||||
|
||||
### fun -string !removeRight -string &string -int &num
|
||||
|
||||
You'll never guess what this does (it removes the last $num characters from a string) (no prerequisites).
|
||||
|
||||
### fun -bool !contains -string &str -string &instr
|
||||
|
||||
Checks if $str contains $instr (requires !mid).
|
Reference in New Issue
Block a user