Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: PCRE support for embedded NUL characters
On 2012-09-19 at 19:24 +0100, Peter Stephenson wrote:
> On Mon, 17 Sep 2012 01:59:25 -0400
> Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> > Anyone have any opinions of what ZPCRE_OP should count?
> >
> > It's currently documented as counting bytes, which is certainly
> > accurate, but seems not very useful given that you can't index strings
> > by byte offsets in zsh (or can you, with some option I've not noticed
> > before?)
>
> Ideally, it's bytes with MULTIBYTE unset, and code points with it set,
> i.e. what the mb/wc functions consider a "character".
Okay, good; when I get back to this, I'll harmonise all the outputs to
be by character, including that one, and update the docs. Probably this
weekend, unless I need a mental code-switch break before then.
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author