diff options
author | Adam Chlipala <adam@chlipala.net> | 2014-06-11 08:31:14 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2014-06-11 08:31:14 -0400 |
commit | e1c99ba7a42a6305addbdcc1664f6b3ce1d57ea3 (patch) | |
tree | d601938188eed0ce7315a3a5986a6d6c00251fb6 | |
parent | f48923edfb5883f881a5ecbc9a96ad12d31680c0 (diff) |
Change String to avoid Char dependency
-rw-r--r-- | lib/ur/string.ur | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ur/string.ur b/lib/ur/string.ur index d760ec2b..da4e7eb4 100644 --- a/lib/ur/string.ur +++ b/lib/ur/string.ur @@ -92,13 +92,13 @@ fun trim s = val len = length s fun findStart i = - if i < len && Char.isSpace (sub s i) then + if i < len && isspace (sub s i) then findStart (i+1) else i fun findFinish i = - if i >= 0 && Char.isSpace (sub s i) then + if i >= 0 && isspace (sub s i) then findFinish (i-1) else i |