summaryrefslogtreecommitdiff
path: root/lib/http
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/http
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/http')
-rw-r--r--lib/http/parse.myr2
-rw-r--r--lib/http/url.myr2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/http/parse.myr b/lib/http/parse.myr
index fabf7a2..a91da3a 100644
--- a/lib/http/parse.myr
+++ b/lib/http/parse.myr
@@ -258,7 +258,7 @@ const parsenumber = {ln, base
s = ln#
ok = false
while true
- (c, s) = std.strstep(s)
+ (c, s) = std.charstep(s)
dig = std.charval(c, base)
if dig >= 0 && dig < base
ok = true
diff --git a/lib/http/url.myr b/lib/http/url.myr
index be17d20..038305f 100644
--- a/lib/http/url.myr
+++ b/lib/http/url.myr
@@ -150,7 +150,7 @@ const parseparams = {url
;;
match std.decode(url#)
- | '?': (_, url#) = std.strstep(url#)
+ | '?': (_, url#) = std.charstep(url#)
| _: -> `std.Err `Egarbled
;;