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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to