[fpc-devel] for-in-index loop

Michael Van Canneyt michael at freepascal.org
Fri Jan 25 11:12:44 CET 2013



On Fri, 25 Jan 2013, Michael Schnell wrote:

> 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.

Pchar ?

Michael.



More information about the fpc-devel mailing list