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

Re: PATCH: PCRE support for embedded NUL characters



On 2012-09-16 at 08:50 -0400, Phil Pennock wrote:
> Another open question: are $mbegin/$mend offsets supposed to be in
> octets or in characters?  Given the MB_ prefix, I'm guessing I just
> broke this and will need to fix it tomorrow, before commit, after I get
> some sleep.  Do we have a decent way to count the number of wide
> characters in an unmetafied string which can contain NUL characters?

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

-Phil



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