mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 23:37:48 +00:00
Implement new string functions (#1655)
`STRFIND`, `STRRFIND`, `STRCHAR`, `STRSLICE`, `CHARCMP`, `CHARSIZE`, and `REVCHAR`
This commit is contained in:
15
test/asm/charcmp.out
Normal file
15
test/asm/charcmp.out
Normal file
@@ -0,0 +1,15 @@
|
||||
"" <=> "" == 0
|
||||
"a" <=> "a" == 0
|
||||
"aa" <=> "aaa" == -1
|
||||
"aaa" <=> "aa" == 1
|
||||
"a" <=> "b" == -1
|
||||
"b" <=> "a" == 1
|
||||
"" <=> "b" == -1
|
||||
"c" <=> "" == 1
|
||||
"abc" <=> "cba" == 1
|
||||
"cabc" <=> "cxc" == 0
|
||||
"zy" <=> "abw" == 0
|
||||
"abab" <=> "xx" == 0
|
||||
"abab" <=> "ww" == -1
|
||||
"w" <=> "z" == 1
|
||||
"xcy" <=> "zw" == -1
|
||||
Reference in New Issue
Block a user