nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbcab5
)
lib/core: `u8char_len` is now public
author
Lucas Bajolet
<r4pass@hotmail.com>
Fri, 29 Apr 2016 17:10:22 +0000
(13:10 -0400)
committer
Lucas Bajolet
<r4pass@hotmail.com>
Tue, 3 May 2016 01:59:34 +0000
(21:59 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
lib/core/text/abstract_text.nit
patch
|
blob
|
history
diff --git
a/lib/core/text/abstract_text.nit
b/lib/core/text/abstract_text.nit
index
7fb65ee
..
c15901e
100644
(file)
--- 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