Michael Schnell schrieb:
I'm pretty sure that such strings will be widely used, by people that
prefer to use string indexing with a fixed character size.
Yep. Bus as discussed here earlier, Length() - that needs to be done
with the same paradigm as mystr[i] - is a problem. When using e.g.
stream-I/O people will want it to be the byte count, when doing a loop
along a string, they want it to be the unicode-character count.
That's why such loops should be disallowed with Unicode strings, as kind
of low level string handling. For-Each loops may be acceptable as high
level string handling, but with what type of the loop variable???
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus