ref: 8e46913c52cec95c1266ce8ee5ee2794eafc9364
parent: def0aab5b2b3a1c2326a6c593761e1f27a089601
author: Ori Bernstein <[email protected]>
date: Wed Aug 14 19:34:22 EDT 2013
Add a constant for the maximum UTF size.
--- a/libstd/utf.myr
+++ b/libstd/utf.myr
@@ -4,6 +4,7 @@
pkg std =
const Badchar : char = -1 castto(char)
+ const Maxcharlen : size= 4
const charlen : (chr : char -> size)
const encode : (buf : byte[:], chr : char -> size)