Re: [Rd] Question about regexp edge case

2024-07-29 Thread Ivan Krylov via R-devel
В Sun, 28 Jul 2024 20:02:21 -0400 Duncan Murdoch пишет: > gsub("^([0-9]{,5}).*","\\1","123456789") > [1] "123456" This is in TRE itself: for "^([0-9]{,1})" tre_regexecb returns {.rm_so = 0, .rm_eo = 1}, matching "1", but for "^([0-9]{,2})" and above it returns an off-by-one result, {.rm_so = 0

Re: [Rd] Minor inconsistencies in tools:::funAPI()

2024-07-29 Thread Toby Hocking
Hi Ivan Can you please clarify what input files should be used with your proposed function? I tried a few files in r-svn/src/include and one of them gave me an error. > getdecl("~/R/r-svn/src/include/R.h") [1] "R_FlushConsole" "R_ProcessEvents" "R_WaitEvent" > getdecl("~/R/r-svn/src/include/Rdefi