search for: tre_regexecb

Displaying 4 results from an estimated 4 matches for "tre_regexecb".

2015 Dec 17
3
Assistance much appreciated
On 2015-12-17 19:30, peter dalgaard wrote: > Presumably the file in question is one of > > Peter-Dalgaards-MacBook-Air:BUILD pd$ grep -r "^Package: tools" * > library/tools/DESCRIPTION:Package: tools > src/library/tools/DESCRIPTION:Package: tools > > so the first thing I'd do is to have a good look at those files and see if they got somehow corrupted. > >
2015 Dec 17
0
Assistance much appreciated
...must contain the clue. Unfortunately not necessarily the matching one. My guess is that your TRE library is broken. The line should have matched the RE "regline" defined as tre_regcomp(&regline, "^[^:]+:[[:blank:]]*", REG_EXTENDED); ...and used here: if(tre_regexecb(&regline, line, 1, regmatch, 0) == 0) { but apparently does not. > Thanks for the assistance! > > Michael -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd....
2015 Dec 18
1
Assistance much appreciated
...rtunately not necessarily the matching one. > > My guess is that your TRE library is broken. The line should have matched the RE "regline" defined as > > tre_regcomp(&regline, "^[^:]+:[[:blank:]]*", REG_EXTENDED); > ...and used here: > if(tre_regexecb(&regline, line, 1, regmatch, 0) == 0) { > > but apparently does not. > > > >> Thanks for the assistance! >> >> Michael > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederi...
2015 Dec 18
1
Assistance much appreciated
...unately not necessarily the matching one. > > My guess is that your TRE library is broken. The line should have matched the RE "regline" defined as > > tre_regcomp(&regline, "^[^:]+:[[:blank:]]*", REG_EXTENDED); > ...and used here: > if(tre_regexecb(&regline, line, 1, regmatch, 0) == 0) { > > but apparently does not. int tre_regcomp(regex_t *preg, const char *regex, int cflags) { return tre_regncomp(preg, regex, regex ? strlen(regex) : 0, cflags); } The code is a bit too 'string busy' for me to be comfortable - so I took...