git: TRE: Add local modifications to extend functionality

John Marino marino at crater.dragonflybsd.org
Thu Aug 6 15:15:29 PDT 2015


commit d5f8dde1e2bae450329b3ee8c25ef109b5713f07
Author: John Marino <draco at marino.st>
Date:   Thu Aug 6 22:58:06 2015 +0200

    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.

Summary of changes:
 contrib/tre/lib/regcomp.c             |   70 +-
 contrib/tre/lib/regerror.c            |    5 +-
 contrib/tre/lib/regexec.c             |  293 +++-
 contrib/tre/lib/tre-ast.c             |    4 +-
 contrib/tre/lib/tre-ast.h             |   30 +-
 contrib/tre/lib/tre-compile.c         | 1751 ++++++++++++++++++-----
 contrib/tre/lib/tre-compile.h         |    4 +-
 contrib/tre/lib/tre-internal.h        |  144 +-
 contrib/tre/lib/tre-match-backtrack.c |  299 ++--
 contrib/tre/lib/tre-match-parallel.c  |  386 ++++--
 contrib/tre/lib/tre-match-utils.h     |  446 +++++-
 contrib/tre/lib/tre-parse.c           | 2468 ++++++++++++++++++++-------------
 contrib/tre/lib/tre-parse.h           |    8 +
 13 files changed, 4195 insertions(+), 1713 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d5f8dde1e2bae450329b3ee8c25ef109b5713f07


-- 
DragonFly BSD source repository



More information about the Commits mailing list