[Development] [Question] Implementation of XML character validation

Konstantin Ritt ritt.ks at gmail.com
Sun Sep 8 22:42:57 CEST 2013


2013/9/8 Kurt Pattyn <pattyn.kurt at gmail.com>

> Couldn't it be a solution to expand QChar to contain 32-bit code points
> iso 16-bit, and have the unicode() function return an UCS4 value?
>
>  At least, I think it would be nice that the checks for valid XML
> characters would be concentrated in one place.
>

No. QString operates on UCS-2, not UCS-4.



> > The code calling this API needs to do the surrogate decoding. This class
> may
> > be interesting for them:
> >
> > https://codereview.qt-project.org/669
> >
> > --
> > Thiago Macieira - thiago.macieira (AT) intel.com
> >  Software Architect - Intel Open Source Technology Center
>
> Kurt
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130908/09a13e60/attachment.html>


More information about the Development mailing list