[fpc-devel] Unicode support (yet again)
cobines
cobines at gmail.com
Sun Sep 18 20:04:20 CEST 2011
2011/9/18 Marco van de Voort <marcov at stack.nl>:
> The trouble is that it is not that easy, consider the first thing a
> long time pascal user will do is fix his existing code which has many
> constructs that loop over a string:
>
> setlength(s2,s1);
> for i:=1 to length(s1) do
> s2[i]:=s1[i];
>
> Now, to return codepoint[i], you need to parse all codepoints before [i].
Correct me if I'm wrong, but length(s1) wouldn't return the number of
code points anyway?
--
cobines
More information about the fpc-devel
mailing list