core :: FlatStringByteIterator :: target
core $ FlatStringByteIterator :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: IndexedIterator :: defaultinit
core :: Object :: defaultinit
core :: Iterator :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.Iterator
whose elements are sorted by the function
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: FlatStringByteIterator :: target
private class FlatStringByteIterator
super IndexedIterator[Int]
var target: FlatString
var target_items: CString is noautoinit
var curr_pos: Int
init
do
var tgt = target
target_items = tgt._items
curr_pos += tgt._first_byte
end
redef fun is_ok do return curr_pos <= target.last_byte
redef fun item do return target_items[curr_pos]
redef fun next do curr_pos += 1
redef fun index do return curr_pos - target._first_byte
end
lib/core/text/flat.nit:812,1--836,3