Packages now properly work when imported
This commit is contained in:
@@ -71,13 +71,13 @@ fun -string !inBrackets -string &str -char &left -char &right -int &instance
|
||||
pusharg $str
|
||||
pusharg $left
|
||||
pusharg $instance
|
||||
call !findCharInstance &left
|
||||
call !strings:findCharInstance &left
|
||||
|
||||
# Get right idx
|
||||
pusharg $str
|
||||
pusharg $right
|
||||
pusharg $instance
|
||||
call !findCharInstance &right
|
||||
call !strings:findCharInstance &right
|
||||
|
||||
# Get inner string
|
||||
add $left 1 &left
|
||||
@@ -85,7 +85,7 @@ fun -string !inBrackets -string &str -char &left -char &right -int &instance
|
||||
pusharg $str
|
||||
pusharg $left
|
||||
pusharg $store
|
||||
call !mid &store
|
||||
call !strings:mid &store
|
||||
return $store
|
||||
endfun
|
||||
|
||||
@@ -94,7 +94,7 @@ fun -bool !matchStart -string &str -string &instr
|
||||
pusharg $str
|
||||
pusharg 0
|
||||
pusharg $store
|
||||
call !mid &store
|
||||
call !strings:mid &store
|
||||
equal $store $instr &store
|
||||
return $store
|
||||
endfun
|
||||
@@ -183,7 +183,7 @@ fun -bool !contains -string &str -string &instr
|
||||
pusharg $str
|
||||
pusharg $idx
|
||||
pusharg $inlen
|
||||
call !mid &store
|
||||
call !strings:mid &store
|
||||
|
||||
equal $store $instr &store
|
||||
if $store %true
|
||||
@@ -204,7 +204,7 @@ fun -list !split -string &str -string &splitstr
|
||||
@loop
|
||||
pusharg $str
|
||||
pusharg $splitstr
|
||||
call !contains &store
|
||||
call !strings:contains &store
|
||||
if $store %continue
|
||||
jump %end
|
||||
|
||||
@@ -213,7 +213,7 @@ fun -list !split -string &str -string &splitstr
|
||||
pusharg $str
|
||||
pusharg $splitstr
|
||||
pusharg 0
|
||||
call !findStringInstance &store
|
||||
call !strings:findStringInstance &store
|
||||
|
||||
# Store amount of characters to remove
|
||||
add $store $splitlen &store2
|
||||
@@ -222,14 +222,14 @@ fun -list !split -string &str -string &splitstr
|
||||
pusharg $str
|
||||
pusharg 0
|
||||
pusharg $store
|
||||
call !mid &store
|
||||
call !strings:mid &store
|
||||
|
||||
listappend *list $store
|
||||
|
||||
# Remove first split
|
||||
pusharg $str
|
||||
pusharg $store2
|
||||
call !removeLeft &str
|
||||
call !strings:removeLeft &str
|
||||
|
||||
jump %loop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user