remove_range
Description:
[ Version ( deprecated_since = "vala-0.26" , replacement = "SequenceIter.remove_range" ) ]
public static void remove_range (SequenceIter<G> begin, SequenceIter<G> end)
public static void remove_range (SequenceIter<G> begin, SequenceIter<G> end)
Warning: remove_range is deprecated since vala-0.26. Use SequenceIter.remove_range.
Example: Remove a range:
public static int main (string[] args) {
Sequence<string> seq = new Sequence<string> ();
seq.append ("Lorem");
seq.append ("ipsum");
seq.append ("XXXXX");
seq.append ("XXXXX");
seq.append ("dolor");
seq.append ("sit");
seq.append ("amet");
SequenceIter<string> iter_start = seq.get_iter_at_pos (2);
SequenceIter<string> iter_end = seq.get_iter_at_pos (4);
Sequence<string>.remove_range (iter_start, iter_end);
// Output:
// ``Lorem``
// ``ipsum``
// ``dolor``
// ``sit``
// ``amet``
seq.foreach ((item) => {
print ("%s\n", item);
});
return 0;
}
valac --pkg glib-2.0 GLib.Sequence.remove_range.vala