Am Sonntag, 16. April 2017 um 22:52:11, schrieb Tommaso Cucinotta <tomm...@lyx.org> > On 16/04/2017 22:22, Kornel Benko wrote: > > Cmake: > > In master it is set to '1' if using clang on unix like system. In all other > > cases it is set to '0'; > > In branch 2.2 it is set according to the version of the c++-compiler > > if Gccversion < 4.9 ==> LYX_USE_STD_REGEX = 0 > > else if C++11 compatible compiler ==> LYX_USE_STD_REGEX = 1 > > guess that's the default, and do we know whether it is overridden by > distributors when building rpm, deb, .exe, ... ? > as std::regex uses ECMAScript by default, whilst boost::regex uses Perl, > guess we need some more stuff in support/regex.h. > > So far, one of the PITA that is making these tests fail, is the d**n "match > beginning/end of buffer", as most of these > matches are needed on multi-line string. > > Perl: /A == \` /Z == \' > ECMA: ^ $ (just ensure multi-line match is off, i.e., the > default) > > I have some more tests working ok with std-regex now, but checking whether > both std and boost work is just such a burden. > > thx, > > T.
What is your recommendation? Use boost-regex for lyx2.3 and switch to std::regex for lyx2.4 or use std::regex where possible? Kornel
signature.asc
Description: This is a digitally signed message part.