Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: PCRE support for embedded NUL characters
On Tue, 18 Sep 2012 09:51:45 +0100
Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> Doing it just for UTF-8 is incompatible with the rest of the shell. It
> should be possible to do it similarly to mb_metastrlen() in utils.c.
> Basically the only difference is using an explicit length rather than null
> termination, plus not having an internal test for Meta characters.
Indeed, it would be straightforward to add extra arguments to
mb_metastrlen() and mb_metacharlenconv(_r)() to indicate they were being
passed an unmetafied string of an explicit length.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
Messages sorted by:
Reverse Date,
Date,
Thread,
Author