Low-level creation of a new string with minimal data.

_items will be used as is, without copy, to retrieve the characters of the string. Aliasing issues is the responsibility of the caller.

Property definitions

core $ FlatString :: with_infos
	# Low-level creation of a new string with minimal 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 with_infos(items: CString, byte_length, from: Int)
	do
		var len = items.utf8_length(from, byte_length)
		if byte_length == len then return new ASCIIFlatString.full_data(items, byte_length, from, len)
		return new UnicodeFlatString.full_data(items, byte_length, from, len)
	end
lib/core/text/flat.nit:522,2--531,4