|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 30-Jun-2020 | - |
| Makefile | H A D | 30-Jun-2020 | 2 KiB | 72 | 51 |
| Makefile.re | H A D | 30-Jun-2020 | 693 | 28 | 18 |
| Mamfile | H A D | 30-Jun-2020 | 17.7 KiB | 497 | 496 |
| README | H A D | 30-Jun-2020 | 581 | 15 | 13 |
| README.re | H A D | 30-Jun-2020 | 2 KiB | 61 | 44 |
| RELEASE | H A D | 30-Jun-2020 | 8.8 KiB | 180 | 179 |
| austin.dat | H A D | 30-Jun-2020 | 1.4 KiB | 28 | 23 |
| basic.dat | H A D | 30-Jun-2020 | 8.4 KiB | 217 | 215 |
| callout.dat | H A D | 30-Jun-2020 | 659 | 16 | 12 |
| categorize.dat | H A D | 30-Jun-2020 | 2.3 KiB | 63 | 48 |
| cut.dat | H A D | 30-Jun-2020 | 959 | 35 | 29 |
| ed.c | H A D | 30-Jun-2020 | 35.2 KiB | 1,843 | 1,640 |
| ed.tst | H A D | 30-Jun-2020 | 4.1 KiB | 178 | 167 |
| escape.dat | H A D | 30-Jun-2020 | 1.4 KiB | 49 | 38 |
| forcedassoc.dat | H A D | 30-Jun-2020 | 1.3 KiB | 31 | 29 |
| grep.c | H A D | 30-Jun-2020 | 22.8 KiB | 916 | 846 |
| grep.tst | H A D | 30-Jun-2020 | 114.2 KiB | 6,386 | 6,202 |
| group.dat | H A D | 30-Jun-2020 | 1.1 KiB | 51 | 41 |
| haskell.dat | H A D | 30-Jun-2020 | 4 KiB | 92 | 88 |
| iso8859-1.dat | H A D | 30-Jun-2020 | 4.3 KiB | 103 | 76 |
| leftassoc.dat | H A D | 30-Jun-2020 | 615 | 17 | 13 |
| libtre.dat | H A D | 30-Jun-2020 | 8.9 KiB | 348 | 342 |
| locale.dat | H A D | 30-Jun-2020 | 5.1 KiB | 207 | 159 |
| minimal.dat | H A D | 30-Jun-2020 | 4.1 KiB | 158 | 122 |
| nested.dat | H A D | 30-Jun-2020 | 10.6 KiB | 379 | 315 |
| noop.dat | H A D | 30-Jun-2020 | 28.6 KiB | 700 | 698 |
| nullsubexpr-A.dat | H A D | 30-Jun-2020 | 1.8 KiB | 74 | 65 |
| nullsubexpr.dat | H A D | 30-Jun-2020 | 1.8 KiB | 74 | 65 |
| pcre-1.dat | H A D | 30-Jun-2020 | 63.6 KiB | 1,424 | 1,421 |
| pcre-2.dat | H A D | 30-Jun-2020 | 10.4 KiB | 342 | 339 |
| pcre-3.dat | H A D | 30-Jun-2020 | 26.4 KiB | 919 | 918 |
| pcre-4.dat | H A D | 30-Jun-2020 | 858 | 43 | 35 |
| pcre-5.dat | H A D | 30-Jun-2020 | 2.6 KiB | 76 | 74 |
| perl.dat | H A D | 30-Jun-2020 | 7.5 KiB | 285 | 278 |
| re-assoc.mm | H A D | 30-Jun-2020 | 329 | 17 | 16 |
| re-categorize.mm | H A D | 30-Jun-2020 | 3 KiB | 124 | 123 |
| re-definitions.mm | H A D | 30-Jun-2020 | 12.9 KiB | 280 | 237 |
| re-interpretation.mm | H A D | 30-Jun-2020 | 32.1 KiB | 897 | 886 |
| re-nullsubexpr.mm | H A D | 30-Jun-2020 | 297 | 15 | 14 |
| re-repetition.mm | H A D | 30-Jun-2020 | 276 | 13 | 12 |
| reg.dat | H A D | 30-Jun-2020 | 14.2 KiB | 722 | 604 |
| regex++.dat | H A D | 30-Jun-2020 | 23.4 KiB | 929 | 857 |
| repetition.dat | H A D | 30-Jun-2020 | 5.3 KiB | 141 | 110 |
| rightassoc.dat | H A D | 30-Jun-2020 | 615 | 17 | 13 |
| rxposix.dat | H A D | 30-Jun-2020 | 19.1 KiB | 409 | 407 |
| sed.h | H A D | 30-Jun-2020 | 4.1 KiB | 116 | 53 |
| sed.tst | H A D | 30-Jun-2020 | 13.9 KiB | 480 | 444 |
| sed0.c | H A D | 30-Jun-2020 | 8.1 KiB | 340 | 286 |
| sed1.c | H A D | 30-Jun-2020 | 15.4 KiB | 741 | 636 |
| sed2.c | H A D | 30-Jun-2020 | 11.5 KiB | 565 | 481 |
| sed3.c | H A D | 30-Jun-2020 | 3.4 KiB | 99 | 73 |
| subexpr.dat | H A D | 30-Jun-2020 | 787 | 30 | 25 |
| testdecomp.dat | H A D | 30-Jun-2020 | 428 | 18 | 16 |
| testfmt.c | H A D | 30-Jun-2020 | 11.6 KiB | 568 | 512 |
| testfmt.dat | H A D | 30-Jun-2020 | 967 | 73 | 50 |
| testfnmatch.c | H A D | 30-Jun-2020 | 18.4 KiB | 934 | 864 |
| testfnmatch.dat | H A D | 30-Jun-2020 | 13 KiB | 577 | 530 |
| testglob.c | H A D | 30-Jun-2020 | 22.2 KiB | 1,091 | 1,007 |
| testglob.dat | H A D | 30-Jun-2020 | 11.2 KiB | 324 | 287 |
| testmatch.c | H A D | 30-Jun-2020 | 23.5 KiB | 1,165 | 1,085 |
| testmatch.dat | H A D | 30-Jun-2020 | 10.1 KiB | 346 | 303 |
| testoldmatch.c | H A D | 30-Jun-2020 | 1.5 KiB | 27 | 3 |
| testregex.c | H A D | 30-Jun-2020 | 51.4 KiB | 2,289 | 2,155 |
| testregex.dat | H A D | 30-Jun-2020 | 47 KiB | 1,755 | 1,518 |
| testregex.mm | H A D | 30-Jun-2020 | 4.6 KiB | 150 | 149 |
| testsub.dat | H A D | 30-Jun-2020 | 6 KiB | 228 | 188 |
| type.dat | H A D | 30-Jun-2020 | 1.3 KiB | 54 | 41 |
| unknownassoc.dat | H A D | 30-Jun-2020 | 595 | 17 | 13 |
| xopen.dat | H A D | 30-Jun-2020 | 472 | 16 | 14 |
| zero.dat | H A D | 30-Jun-2020 | 6.4 KiB | 215 | 171 |
README
1POSIX regex snarfed from Doug McIlroy's C++. Converted to C by Glenn
2Fowler. *'d features have been added to Doug's original code. testre
3should compile with other regex implementations, but you may need to
4run with -c to catch non-terminating loops and memory faults.
5
6FEATURE BRE ERE ARE
7------- --- --- ---
8negation NO expr \! expr !
9conjunction NO expr \& expr expr & expr
10NULL subgroups YES NO YES
11word boundaries* \< expr \> \< expr \> < expr >
12minimal match* NO REG_MINIMAL REG_MINIMAL
13shell patterns* REG_SHELL NO NO
14ksh patterns* NO NO REG_SHELL
15
README.re
1This directory contains AT&T test harnesses and data for the X/Open pattern
2matching routines:
3
4 HARNESS HEADER FUNCTIONS
5 ------- ------ ---------
6 testfnmatch.c <fnmatch.h> fnmatch()
7 testglob.c <glob.h> glob()
8 testregex.c <regex.h> regcomp(),regexec()
9
10Each test*.c file is a main program driven by the *.dat test data files.
11testglob.dat is only for testglob; all other test data files work with
12the remaining harnesses.
13
14The Makefile has targets for building harnesses and running tests:
15
16 all build all harnesses
17 test run all tests for all harnesses
18 test.foo build harness foo and run the foo tests
19
20To run a single test, e.g. the standards.dat tests for testregex,
21
22 testregex < standards.dat
23
24If the local implementation hangs or dumps on some tests then run with
25the -c option.
26
27The -h option lists the test data format details. The test data files
28exercise all features; the harnesses detect and ignore features not
29supported by the local implementation.
30
31Extensions to the standard terminology are derived from the AT&T RE
32implementation, unified under <regex.h> with these modes:
33
34 MODE FLAGS
35 ---- -----
36 BRE 0 basic RE
37 ERE REG_EXTENDED egrep RE with perl (...) extensions
38 ARE REG_AUGMENTED ERE with ! negation, <> word boundaries
39 SRE REG_SHELL sh patterns
40 KRE REG_SHELL|REG_AUGMENTED ksh93 patterns: ! @ ( | & ) { }
41
42and some additional flags to handle fnmatch():
43
44 REG_SHELL_ESCAPED FNM_NOESCAPE
45 REG_SHELL_PATH FNM_PATHNAME
46 REG_SHELL_DOT FNM_PERIOD
47
48The original testregex.c was done by Doug McIlroy at Bell Labs.
49The current implementation is maintained by
50
51 Glenn Fowler <gsf@research.att.com>
52
53I'd like to make the regression tests as comprehensive as possible.
54Send any new tests to me and I'll roll them into the open source
55distribution at http://www.research.att.com/sw/download/ with proper
56attribution.
57
58Please note that some regression tests nail down unspecified standard behavior.
59These should be noted in the test data with 'u' but currently are not.
60Experience with other implementations will help clean this up.
61