On Tue, Jan 30, 2007 at 06:02:59PM +0100, TSa wrote:
: BTW, are character positions integers or can we have fractional
: characters on a higher unicode level that is a sequence of lower
: level chars?
Unfortunately this is a units problem where the units are not of
fixed length. StrPos is already defined in S02 to be an opaque type
that you should not think of as being in any particular units except
perhaps "chars at the current Unicode level". Subtracting two StrPos
objects gives you a StrLen at the current Unicode level. These might
all be represented underneath as byte or codepoint offsets, but the
user should not rely on it.