|
From: Haejoong L. <hae...@un...> - 2003-05-09 00:38:12
|
Steven,
>>Sorry for the confusion. I forgot the semantics of GetAnchorSetByOffset
>>function in the previous post. Yes you are right -- there is no reason
>>to prevent GetAnchorSet to return a time-ordered anchor list.
>>GetAnchorSet now returns a list. Fixes are in the CVS. (I swear this
>>time :-)
>>
>>
>
>Where do any untimed anchors end up in this list?
>
>
Here's how anchors are ordered:
-------------------
bool operator < (const Anchor& a, const Anchor& b) {
if (a.anchored && b.anchored && a.offset != b.offset)
return a.offset < b.offset;
else if (a.anchored && b.anchored && a.offset == b.offset)
return a.id < b.id;
else if (a.anchored && !b.anchored)
return true;
else if (!a.anchored && b.anchored)
return false;
else
return a.id < b.id;
}
----------------------
Haejoong
|