nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src: Added complete FlatString generation from compiler
[nit.git]
/
lib
/
core
/
text
/
flat.nit
diff --git
a/lib/core/text/flat.nit
b/lib/core/text/flat.nit
index
bebc8e5
..
bf423ad
100644
(file)
--- a/
lib/core/text/flat.nit
+++ b/
lib/core/text/flat.nit
@@
-885,6
+885,10
@@
redef class NativeString
return str
end
+ redef fun to_s_full(bytelen, unilen) do
+ return new FlatString.full(self, bytelen, 0, bytelen - 1, unilen)
+ end
+
# Returns `self` as a new String.
redef fun to_s_with_copy: FlatString
do