TRE: Add local modifications to extend functionality
authorJohn Marino <draco@marino.st>
Thu, 6 Aug 2015 20:58:06 +0000 (22:58 +0200)
committerJohn Marino <draco@marino.st>
Thu, 6 Aug 2015 22:07:04 +0000 (00:07 +0200)
commitd5f8dde1e2bae450329b3ee8c25ef109b5713f07
tree946490609848e12531d68ccf006646a9f8804d6c
parent071cbfc5b674dbc05e198747dddf53a507e3290a
TRE: Add local modifications to extend functionality

The stock TRE regex library is very good, but it is missing three
key functionalities:
  1) collation support
  2) equivalence classes
  3) legacy support for character-name table

Luckily, TRE was imported in Apple's Libc and they solved these issues.
This commit represents the modifications Apple made (under the same
2-clause license the author Ville Laurikari issued) minus differences
in xlocale support and the exclusion of "if 0" equivalent blocks.
13 files changed:
contrib/tre/lib/regcomp.c
contrib/tre/lib/regerror.c
contrib/tre/lib/regexec.c
contrib/tre/lib/tre-ast.c
contrib/tre/lib/tre-ast.h
contrib/tre/lib/tre-compile.c
contrib/tre/lib/tre-compile.h
contrib/tre/lib/tre-internal.h
contrib/tre/lib/tre-match-backtrack.c
contrib/tre/lib/tre-match-parallel.c
contrib/tre/lib/tre-match-utils.h
contrib/tre/lib/tre-parse.c
contrib/tre/lib/tre-parse.h