zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <Peter.Stephenson@csr.com>
To: <zsh-workers@zsh.org>
Subject: Re: UTF-8 and PCRE and metafy
Date: Tue, 8 Mar 2011 09:58:50 +0000	[thread overview]
Message-ID: <20110308095850.12843492@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20110308065216.GB79682@redoubt.spodhuis.org>

On Tue, 8 Mar 2011 01:52:16 -0500
Phil Pennock <zsh-workers+phil.pennock@spodhuis.org> 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@csr.com>            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


  parent reply	other threads:[~2011-03-08 10:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08  6:52 Phil Pennock
2011-03-08  8:19 ` Bart Schaefer
2011-03-08  9:58 ` Peter Stephenson [this message]
2011-10-21  9:56   ` [patch] " Phil Pennock
2011-10-21 10:35     ` Phil Pennock
2011-10-23 16:32     ` [patch] " Peter Stephenson
2011-10-24 11:35       ` Phil Pennock
2011-10-24 11:43         ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110308095850.12843492@pwslap01u.europe.root.pri \
    --to=peter.stephenson@csr.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).