summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-10-24 20:48:58 -0400
committerOri Bernstein <ori@eigenstate.org>2013-10-24 20:48:58 -0400
commitb9aedad0639309171cfff4cf6dddcdf0272372fb (patch)
tree561cd4127af26c6f110a416303828358016e251d
parent28920020c79d99633a69d19f05a56e73bb3356c4 (diff)
downloadmc-b9aedad0639309171cfff4cf6dddcdf0272372fb.tar.gz
Add a constant for the maximum codepoint
As specified by unicode.
-rw-r--r--libstd/utf.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstd/utf.myr b/libstd/utf.myr
index 83a86f2..0580cfa 100644
--- a/libstd/utf.myr
+++ b/libstd/utf.myr
@@ -4,7 +4,8 @@ use "types.use"
pkg std =
const Badchar : char = -1 castto(char)
- const Maxcharlen : size= 4
+ const Maxcharlen : size = 4
+ const Maxcharval : char = 0x10FFFF
const charlen : (chr : char -> size)
const encode : (buf : byte[:], chr : char -> size)