From: Lucas Bajolet Date: Fri, 29 Apr 2016 17:10:22 +0000 (-0400) Subject: lib/core: `u8char_len` is now public X-Git-Url: http://nitlanguage.org lib/core: `u8char_len` is now public Signed-off-by: Lucas Bajolet --- diff --git a/lib/core/text/abstract_text.nit b/lib/core/text/abstract_text.nit index 7fb65ee..c15901e 100644 --- a/lib/core/text/abstract_text.nit +++ b/lib/core/text/abstract_text.nit @@ -1756,7 +1756,7 @@ redef class Char end # Length of `self` in a UTF-8 String - private fun u8char_len: Int do + fun u8char_len: Int do var c = self.code_point if c < 0x80 then return 1 if c <= 0x7FF then return 2