[fpc-pascal] Widestrings length and character iteration

Daniël Mantione daniel.mantione at freepascal.org
Mon May 7 16:03:53 CEST 2007

Op Mon, 7 May 2007, schreef Christos Chryssochoidis:

> Hi,
> Are there any rtl functions to compute the length (in characters) of a
> widestring and to iterate over its characters?

If you treat it as UCS-2: length(widestring_variable)

>  In my system (Mac OS X/fpc 2.1.3), a widestring is implemented as a UTF-8
> encoded string, as I found out.

Not possible, a widestring is UCS-2/UTF-16.


More information about the fpc-pascal mailing list