[pcre-dev] [Bug 1049] Add support for UTF-16

Página Principal
Apagar esta mensagem
Autor: Stephen Kelly
Data:  
Para: pcre-dev
Tópicos Antigos: [pcre-dev] [Bug 1049] New: Add support for UTF-16
Assunto: [pcre-dev] [Bug 1049] Add support for UTF-16
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1049

Stephen Kelly <steveire@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |steveire@???





--- Comment #4 from Stephen Kelly <steveire@???> 2011-11-09 14:12:47 ---
This is also an issue for Qt 5. There is a wish to replace the QRegExp with an
external dependency (PCRE and the v8 RE engine are discussed).

PCRE is the obvious best, but incurs the cost of utf-8 to utf-16 conversion and
the fact that pcreapi returns byte offsets rather than characters:

http://thread.gmane.org/gmane.comp.lib.qt.qt5-feedback/1524/focus=1616

Would a way to use pcre with utf-16 more easily be accepted?
What would such a patch need to look like?
Would that be a compile-time option?
Would it be possible to add API which returns something else than byte offsets?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email