--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
> >
> > Don't forget to update the date in the string returned by
> > regex.version.
>
> okay
>
> > Working on the doc update. Is the new version number going to be
> > 2.0.6?
>
> whatever regex.version returns now.
>
> > --- In [email protected], "Sheri" <sherip99@> wrote:
> > With bsr_unicode option ?"\R" should match "\x85" at position 1.
> > It does. It should match "abcde\x85" at postion 6. It gets "No
> > match". Correct result is obtained when the pattern uses the
> > internal option equivalent to bsr_unicode.
Both of above tests work properly in pcretest.
>
> Dunno what that's about. I'll double check code, but I think I just
> map e.g. bsr_unicode into whatever the PCRE_*** const was.
The bsr_unicode and bsr_anycrlf options are kind of like the various
newline_options, they override a library default. The newline options
also have a interior pattern alternatives. I think you had to do
something special for the plugin/external newline options.
What about the javascript option? That still isn't working right
either. Maybe you had better download the PCRE 7.8 source.
>
> Meanwhile: regexTest_090116.zip: try
>
> local sScript = "." ++ scriptname ++ "@callback"
>
> local sScript = cbx("@callback", "yes")
> then
> local sScript = cbx("@callback")
>
> btw in he l;ater case, sure script not being cached by PP?
>
Powerpro script caching doesn't resurrect a local variable.
I think the today's version it is not wrongly preserving what is
intended to be a local variable, but something is still wrong.
In test4 below the pointer is ending up where the "yes" userArg should be.
static i=0
local test1=eval(cbx("@testcallback", "999", "yes"))
local test2=eval(cbx("@testcallback"))
local test3=regex.pcrereplacecallback(?".", "a", cbx("@testcallback"))
local test4= ;;+
regex.pcrereplacecallback(?".", "a", cbx("@testcallback", "yes"))
local test5=regex.pcrereplacecallback(?".", "a", cbx("@testcallback"))
win.debug("test1 expect yes:", test1)
win.debug("test2 expect empty string:", test2)
win.debug("test3 expect empty string:", test3)
win.debug("test4 expect yes:", test4)
win.debug("test5 expect empty string:", test5)
Function testcallback(P, UserArg)
static i
i += 1
win.debug("test"++i, "*",UserArg,"*", "Pvar_content:", P)
quit(UserArg)