summaryrefslogtreecommitdiff
path: root/lib/std/cmp.myr
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2017-11-05 04:11:27 -0500
committerOri Bernstein <ori@eigenstate.org>2017-11-05 20:52:12 -0800
commitf8f5b71ca85fed63d295f50e3f45ba3230edaead (patch)
tree2dc6c605daf0bb9735a3b197596a8ccae519029d /lib/std/cmp.myr
parenta2a63e13a470401d10625a0d5be163767adb7e46 (diff)
downloadmc-f8f5b71ca85fed63d295f50e3f45ba3230edaead.tar.gz
Implement graphemestep
And change 'strstep' to 'charstep' for consistency, now that it has a sibling function.
Diffstat (limited to 'lib/std/cmp.myr')
-rw-r--r--lib/std/cmp.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/cmp.myr b/lib/std/cmp.myr
index 15c4994..c022b2e 100644
--- a/lib/std/cmp.myr
+++ b/lib/std/cmp.myr
@@ -60,8 +60,8 @@ const strcasecmp = {a, b
var ca, cb
while a.len > 0 && b.len > 0
- (ca, a) = std.strstep(a)
- (cb, b) = std.strstep(b)
+ (ca, a) = std.charstep(a)
+ (cb, b) = std.charstep(b)
ca = toupper(ca)
cb = toupper(cb)
if ca < cb