From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 714 invoked by alias); 8 Mar 2011 10:35:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28872 Received: (qmail 7489 invoked from network); 8 Mar 2011 10:35:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Tue, 8 Mar 2011 09:58:50 +0000 From: Peter Stephenson To: Subject: Re: UTF-8 and PCRE and metafy Message-ID: <20110308095850.12843492@pwslap01u.europe.root.pri> In-Reply-To: <20110308065216.GB79682@redoubt.spodhuis.org> References: <20110308065216.GB79682@redoubt.spodhuis.org> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.71.0.132 On Tue, 8 Mar 2011 01:52:16 -0500 Phil Pennock 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 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