core :: FlatString :: full
_items
will be used as is, without copy, to retrieve the characters of the string.
Aliasing issues is the responsibility of the caller.
# Low-level creation of a new string with all the data.
#
# `_items` will be used as is, without copy, to retrieve the characters of the string.
# Aliasing issues is the responsibility of the caller.
private new full(items: CString, byte_length, from, length: Int)
do
if byte_length == length then return new ASCIIFlatString.full_data(items, byte_length, from, length)
return new UnicodeFlatString.full_data(items, byte_length, from, length)
end
lib/core/text/flat.nit:533,2--541,4