On Thu, Aug 27, 2026 at 11:30 PM Thomas Kurz via fpc-pascal
<[email protected]> wrote:

>   S := 'äfoo';
>   writeln (String(S).IndexOf('f')); // prints "2", as expected

As expected?
In the Utf8String 'f' will be at index 3, since the 'ä' will take up 2
bytes in UTF8-encoding.


-- 
Bart
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to