Jürgen Hestermann schrieb:
Hans-Peter Diettrich schrieb:
> Indexed access to characters is a low level operation, that should
not be used in Unicode-aware applications without specific knowledge.
I often search for substrings, delete them from the string, insert other
strings at certain places, etc.
How can you do all this without knowledge of the internal structure of
the string?
How *not*?
Just in your mentioned cases the strings are treated only as strings,
not as arrays of chars - that's the difference between high and low
level string handling. Dealing with chars inside strings, and
incrementing/decrementing indices, is kind of pointer arithmetic, which
also deserves knowledge about pointers.
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus