rangesets

A.V.Kuznetsov kuzn at umps.mephi.ru
Mon Nov 6 11:24:25 CET 2006


Hi all,

some rangeset internals are unclear for me.
Rangesets are a dynamic objects and indexes of ranges are also dynamic.
What method is used to maintain rangeset?

a) Ranges are indexed in accordance to its positions.
I.e range opening buffer is first, and range containing $text_length is last.

b) Ranges are indexed in an order of its creation.
I.e. index of first created range is 1 and so on.

c) The following is possible in the case (b) only.
Two rangesets contain some identical ranges and one rangeset
is added to other. Are indexes of these ranges changed?

Thanks for any clarification.

Alexey Kuznetsov


More information about the Discuss mailing list