nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/core: remove uses of Byte for Text
[nit.git]
/
lib
/
core
/
text
/
ropes.nit
diff --git
a/lib/core/text/ropes.nit
b/lib/core/text/ropes.nit
index
ca846fd
..
ef0016c
100644
(file)
--- a/
lib/core/text/ropes.nit
+++ b/
lib/core/text/ropes.nit
@@
-91,7
+91,7
@@
private class Concat
redef fun to_cstring do
var len = _byte_length
var ns = new CString(len + 1)
redef fun to_cstring do
var len = _byte_length
var ns = new CString(len + 1)
- ns[len] = 0u8
+ ns[len] = 0
var off = 0
for i in substrings do
var ilen = i._byte_length
var off = 0
for i in substrings do
var ilen = i._byte_length
@@
-331,7
+331,7
@@
end
# A reverse iterator capable of working with `Rope` objects
private class RopeByteReverseIterator
# A reverse iterator capable of working with `Rope` objects
private class RopeByteReverseIterator
- super IndexedIterator[Byte]
+ super IndexedIterator[Int]
# Current CString
var ns: CString is noautoinit
# Current CString
var ns: CString is noautoinit
@@
-372,7
+372,7
@@
end
# Forward iterator on the bytes of a `Rope`
private class RopeByteIterator
# Forward iterator on the bytes of a `Rope`
private class RopeByteIterator
- super IndexedIterator[Byte]
+ super IndexedIterator[Int]
# Position in current `String`
var pns: Int is noautoinit
# Position in current `String`
var pns: Int is noautoinit