nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src: Improve speed of interpreter when working with Strings
[nit.git]
/
lib
/
core
/
text
/
native.nit
diff --git
a/lib/core/text/native.nit
b/lib/core/text/native.nit
index
1c9e262
..
051cefb
100644
(file)
--- a/
lib/core/text/native.nit
+++ b/
lib/core/text/native.nit
@@
-253,7
+253,7
@@
extern class NativeString `{ char* `}
end
# Number of UTF-8 characters in `self` starting at `from`, for a length of `bytelen`
- fun utf8_length(from, bytelen: Int): Int do
+ fun utf8_length(from, bytelen: Int): Int is intern do
var st = from
var ln = 0
while bytelen > 0 do