[fpc-devel] Unit for handling UTF-8 strings

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 8 23:26:54 CEST 2013


On Mon, 8 Apr 2013 23:13:17 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> 
> 
> On Mon, 8 Apr 2013, Mattias Gaertner wrote:
> 
> > On Sun, 7 Apr 2013 20:18:51 +0200 (CEST)
> > Michael Van Canneyt <michael at freepascal.org> wrote:
> >
> >> [...]
> >> FPC is preparing for a complete unicode solution, with proper language support.
> >
> > Great.
> > I guess, you mean encoded string types.
> >
> > But even then, FPC should contain UTF-8 and UTF-16 functions.
> 
> Why ? The necessary functionality will be implicit in the various calls.

What calls?

 
> >> At best, these units are a temporary solution.
> >
> > You might be right about the UTF-8 classes like TFileStreamUTF8 (I
> > really hope).
> > But I doubt that about basic UTF-8/16 functions.
> 
> Such as ?

Functions like determining the number of bytes of an UTF-8 character
or checking if it is a valid character.

Mattias



More information about the fpc-devel mailing list