[fpc-devel] for-in-index loop

Michael Schnell mschnell at lumino.de
Fri Jan 25 11:09:57 CET 2013


On 01/25/2013 10:52 AM, Mattias Gaertner wrote:
> The above UTF8 example misses some points....
My question was about the want for a construct that allows for accessing 
the n'th printable character in an UTF-8 string

Finding the 100000 th and then independently the 100005 th printable 
character needs quite a lot of CPU time, so it would be nice to have a 
kind of "enumerator" that (e.g.) in a smart way remembers a set of 
(Byte_Position / printable_Character_position) pairs helping to quickly 
find the n'th printable character.

-Michael



More information about the fpc-devel mailing list