> Am 16.04.2017 um 22:52 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, … ?
This is the configuration on Mac actually: Host type: x86_64-apple-darwin15.6.0 Special build flags: build=release std-regex warnings use-aspell use-hunspell Bundled libraries: boost mythes C++ Compiler: c++ -stdlib=libc++ (8.0.0) C++ Compiler flags: -Wall -Wextra -Os -std=c++14 -Wno-deprecated-register C++ Compiler user flags: -I/Users/Shared/LyX/utilities/include -arch x86_64 -mmacosx-version-min=10.7 -std=c++14 -std=c++11 If I’m not mistaken this means LyX on Mac is using std::regex. Stephan > 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. >