For best backward compatibility, I would say Copy, Length, Pos etc
should work by "character based" by default.
The thing is we can't reasonablly provide functions based on what a user
would see as a character because doing so would require huge lookup
tables (one user visible character != one code point) so the best we can
do is code point based which isn't really much better for most tasks
than code unit based and would make certain operations MUCH slower. In
other words it would be a major speed penalty for a minor gain.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel