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

Re: PATCH: PCRE support for embedded NUL characters



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

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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