# assert not "foo".is_empty
fun is_empty: Bool do return self.length == 0
+ # Returns an empty Text of the right type
+ fun empty: SELFTYPE is abstract
+
# Gets the first char of the Text
#
# DEPRECATED : Use self.chars.first instead
return new String.with_infos(items, to - realFrom + 1, realFrom, to)
end
+ redef fun empty do return "".as(String)
+
redef fun to_upper: String
do
var outstr = calloc_string(self.length + 1)
redef fun clear do length = 0
+ redef fun empty do return new FlatBuffer
+
redef fun enlarge(cap)
do
var c = capacity