Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: UTF-8 and PCRE and metafy



On Tue, 8 Mar 2011 01:52:16 -0500
Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> I'm guessing I need a bunch of calls to metafy() to process the
> results of extraction in zpcre_get_substrings() ?

You'll need to unmetafy any string getting passed into
pcre_get_substring_list() and metafy() the resulting captures coming
out.  You should duplicate any string that needs unmetafying, since
otherwise it's in place and you may need the metafied form later (you do
for the string passed in as the first argument).

-- 
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



Messages sorted by: Reverse Date, Date, Thread, Author