Michael Schnell schrieb:
On 11/26/2014 07:13 PM, Hans-Peter Diettrich wrote:
Not all codepages have a fixed number of bytes per character.
The string preamble contains the *element size* (1 for AnsiString),
just like with every dynamic array.
Sorry for sloppy wording. Of course I did mean "element size"
("Character" here obviously is not "printable item").
I'd restrict the use of "character" to physical Char types, just to
avoid any misinterpretation.
Printable items (glyphs) are independent from the storage format.
Ligatures or umlauts can consist of multiple "codepoints", and several
Unicode codepoints are not even printable.
A single printable "character", as selectable by a single cursor step,
can consist of multiple codepoints, even (or just) in Unicode.
That's why I'd expect that the FPC documentation includes a glossary and
definition of the terms, which should be used in the documentation and
discussions.
DoDi
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel