|
PostgreSQL Source Code git master
|
#include "regex/regguts.h"#include "regc_lex.c"#include "regc_color.c"#include "regc_nfa.c"#include "regc_cvec.c"#include "regc_pg_locale.c"#include "regc_locale.c"
Go to the source code of this file.
Data Structures | |
| struct | vars |
Variables | |
| static const struct fns | functions |
Definition at line 352 of file regcomp.c.
| #define INF 3 |
| #define SOME 2 |
Definition at line 1673 of file regcomp.c.
References assert, brackpart(), charclasscomplement(), vars::cm, EOS, fb(), i, ISERR, NEXT, vars::nfa, NOERR, NUM_CCLASSES, okcolors(), optimizebracket(), and SEE.
Referenced by cbracket(), and parseqatom().
|
static |
Definition at line 1763 of file regcomp.c.
References CCLASS, CCLASSC, CCLASSS, vars::cflags, charclass(), COLLEL, eclass(), ECLASS, element(), ERR, fb(), INSIST, lookupcclass(), NEXT, vars::nexttype, vars::nextvalue, NOERR, NOTE, vars::now, onechr(), PLAIN, range(), RANGE, REG_ASSERT, REG_ECOLLATE, REG_ECTYPE, REG_ERANGE, REG_ICASE, REG_UUNPORT, scanplain(), SEE, and subcolorcvec().
Referenced by bracket().
Definition at line 1729 of file regcomp.c.
References assert, bracket(), vars::cflags, vars::cm, colorcomplement(), dropstate(), fb(), freestate(), newarc(), newstate(), vars::nfa, state::nins, vars::nlcolor, NOERR, PLAIN, and REG_NLSTOP.
Referenced by parseqatom().
Referenced by charclass(), charclasscomplement(), and wordchrs().
|
static |
Definition at line 1494 of file regcomp.c.
References cclasscvec(), vars::cflags, fb(), NOERR, NOTE, REG_ICASE, REG_ULOCALE, and subcolorcvec().
Referenced by brackpart(), and parseqatom().
|
static |
Definition at line 1518 of file regcomp.c.
References cclasscvec(), vars::cflags, vars::cm, colorcomplement(), dropstate(), fb(), newstate(), vars::nfa, NOERR, NOTE, okcolors(), PLAIN, REG_ICASE, REG_ULOCALE, and subcolorcvec().
Referenced by bracket(), and parseqatom().
|
static |
Definition at line 2312 of file regcomp.c.
References subre::chain, fb(), subre::flags, FREE, INUSE, next, vars::treechain, and vars::treefree.
Referenced by freev(), and pg_regcomp().
|
static |
Referenced by processlacon(), and word().
|
static |
|
static |
Referenced by cbracket(), charclasscomplement(), nonword(), and processlacon().
Referenced by nfanode(), and pg_regcomp().
Referenced by makesearch().
|
static |
Referenced by makesearch().
|
static |
Referenced by parseqatom(), and repeat().
Referenced by cbracket(), and charclasscomplement().
|
static |
Referenced by nfanode(), parseqatom(), and repeat().
Referenced by brackpart().
|
static |
Referenced by makesearch(), and optimizebracket().
Referenced by freelacons(), freesrnode(), and rfree().
Definition at line 2430 of file regcomp.c.
References assert, subre::cnfa, FREE, freecnfa(), i, and NULLCNFA.
Definition at line 2187 of file regcomp.c.
References fb(), FREE, freecnfa(), NULLCNFA, vars::treechain, and vars::treefree.
Referenced by freesubre(), parse(), and parseqatom().
Definition at line 2152 of file regcomp.c.
References fb(), freesrnode(), and freesubreandsiblings().
Referenced by freesubreandsiblings(), freev(), parseqatom(), and rfree().
Definition at line 2171 of file regcomp.c.
References fb(), freesubre(), next, and subre::sibling.
Referenced by freesubre(), parse(), parseqatom(), and removecaptures().
Definition at line 592 of file regcomp.c.
References cleanst(), vars::cv, vars::cv2, vars::err, ERR, err(), fb(), FREE, freecvec(), freelacons(), freenfa(), freesubre(), vars::lacons, vars::nfa, vars::nlacons, vars::re, rfree(), vars::sub10, vars::subs, vars::tree, and vars::treechain.
Referenced by pg_regcomp().
Referenced by pg_regcomp().
|
static |
Referenced by brackpart().
Definition at line 621 of file regcomp.c.
References a, assert, b, nfa::bos, vars::cm, COLORLESS, copyouts(), cparc(), DUPINF, fb(), nfa::flags, freearc(), state::ins, MATCHALL, nfa::maxmatchall, newarc(), newstate(), NOERR, state::outs, PLAIN, nfa::pre, rainbow(), s2, and state::tmp.
Referenced by nfanode(), and pg_regcomp().
|
static |
|
static |
Definition at line 2297 of file regcomp.c.
References assert, subre::child, fb(), subre::flags, INUSE, and markst().
Referenced by markst(), and pg_regcomp().
|
static |
Definition at line 555 of file regcomp.c.
References assert, ERR, fb(), MALLOC, vars::nsubs, REALLOC, REG_ESPACE, vars::sub10, vars::subs, and VS.
Referenced by parseqatom().
Referenced by parsebranch(), parseqatom(), and repeat().
Referenced by parseqatom(), and repeat().
|
static |
Referenced by cbracket(), makesearch(), nonword(), optimizebracket(), and processlacon().
|
static |
Definition at line 2391 of file regcomp.c.
References subre::begin, subre::cnfa, subre::end, ERR, fb(), vars::lacons, subre::latype, MALLOC, vars::nlacons, REALLOC, REG_ESPACE, and ZAPCNFA.
Referenced by processlacon().
Referenced by pg_regcomp().
Referenced by nfanode(), and pg_regcomp().
Referenced by cbracket(), charclasscomplement(), makesearch(), parse(), parsebranch(), parseqatom(), repeat(), and wordchrs().
Definition at line 2351 of file regcomp.c.
References assert, subre::begin, vars::cm, subre::cnfa, compact(), dupnfa(), subre::end, fb(), nfa::final, nfa::flags, fprintf, freenfa(), nfa::init, ISERR, makesearch(), newnfa(), vars::nfa, NOERRZ, optimize(), specialcolors(), and nfa::v.
Referenced by nfatree(), and pg_regcomp().
Definition at line 2331 of file regcomp.c.
References assert, subre::begin, subre::child, DISCARD, fb(), nfanode(), and nfatree().
Referenced by nfatree(), and pg_regcomp().
Definition at line 1458 of file regcomp.c.
References AHEAD, assert, BEHIND, vars::cm, colorcomplement(), fb(), newarc(), vars::nfa, and vars::wordchrs.
Referenced by parseqatom().
Referenced by bracket(), charclasscomplement(), parseqatom(), pg_regcomp(), and wordchrs().
Definition at line 1911 of file regcomp.c.
References allcases(), vars::cflags, COLORLESS, fb(), REG_ICASE, subcolorcvec(), and subcoloronechr().
Referenced by brackpart(), and parseqatom().
Referenced by nfanode(), and pg_regcomp().
Definition at line 1937 of file regcomp.c.
References a, assert, colormap::cd, CDEND, vars::cm, COLMARK, fb(), colordesc::flags, freearc(), newarc(), vars::nfa, PLAIN, PSEUDO, RAINBOW, and UNUSEDCOLOR.
Referenced by bracket().
|
static |
Definition at line 717 of file regcomp.c.
References assert, EAT, EMPTYARC, EOS, ERR, fb(), freesrnode(), freesubreandsiblings(), init, LONGER, MESSY, newstate(), vars::nfa, NOERRN, parse(), parsebranch(), REG_EPAREN, SEE, type, and UP.
Referenced by parse(), parseqatom(), and pg_regcomp().
|
static |
Definition at line 785 of file regcomp.c.
References assert, EMPTYARC, EOS, fb(), moveins(), newstate(), vars::nfa, NOERRN, NOTE, parseqatom(), REG_UUNSPEC, SEE, and type.
Referenced by parse(), and parseqatom().
|
static |
Definition at line 838 of file regcomp.c.
References AHEAD, ARCV, assert, BACKR, BACKREF, subre::begin, BEHIND, bracket(), BRUSE, CAP, subre::capno, cbracket(), CCLASSC, CCLASSS, vars::cflags, charclass(), charclasscomplement(), subre::child, vars::cm, COLORLESS, COMBINE, delsub(), DIGIT, DUPINF, dupnfa(), EAT, EMPTYARC, subre::end, EOS, ERR, fb(), subre::flags, freesrnode(), freesubre(), freesubreandsiblings(), INSIST, ISERR, LACON, subre::latype, LONGER, subre::max, MESSY, subre::min, MIXED, moresubs(), moveins(), moveouts(), newstate(), NEXT, vars::nexttype, vars::nextvalue, vars::nfa, vars::nlcolor, NOERRN, nonword(), NOTE, vars::nsubexp, vars::nsubs, NWBDRY, okcolors(), onechr(), subre::op, parse(), parsebranch(), PLAIN, PREF, processlacon(), rainbow(), REG_ADVANCED, REG_ASSERT, REG_BADBR, REG_BADRPT, REG_EPAREN, REG_ESUBREG, REG_EXTENDED, REG_NLANCH, REG_NLSTOP, REG_UPBOTCH, removeconstraints(), repeat(), s2, SBEGIN, scannum(), SEE, SEND, SHORTER, subre::sibling, vars::subs, type, UP, WBDRY, word(), and wordchrs().
Referenced by parsebranch().
Definition at line 372 of file regcomp.c.
References assert, casecmp(), vars::cflags, guts::cflags, cleanst(), vars::cm, guts::cmap, cmp(), CNOERR, COLORLESS, compact(), vars::cv, vars::cv2, debug, DISCARD, dumpnfa(), EOS, vars::err, fb(), nfa::final, subre::flags, fprintf, freev(), functions, GUTSMAGIC, i, guts::info, nfa::init, initcm(), j, vars::lacons, guts::lacons, LATYPE_IS_AHEAD, len, lexstart(), guts::magic, makesearch(), MALLOC, markst(), newcvec(), newline(), newnfa(), vars::nfa, nfanode(), nfatree(), vars::nlacons, guts::nlacons, vars::nlcolor, NOTE, vars::now, guts::nsub, vars::nsubexp, vars::nsubs, vars::ntree, guts::ntree, numst(), okcolors(), optimize(), parse(), pg_set_regex_collation(), PLAIN, vars::re, REG_ADVANCED, REG_ADVF, REG_DUMP, REG_ESPACE, REG_EXPANDED, REG_EXTENDED, REG_ICASE, REG_INVARG, REG_NEWLINE, REG_NLANCH, REG_NLSTOP, REG_NOSUB, REG_PROGRESS, REG_QUOTE, REG_USHORTEST, REMAGIC, removecaptures(), guts::search, SEE, SHORTER, vars::spaceused, specialcolors(), vars::stop, vars::sub10, subcolor(), vars::subs, vars::tree, guts::tree, vars::treechain, vars::treefree, VS, vars::wordchrs, and ZAPCNFA.
Referenced by NIAddAffix(), RE_compile(), RE_compile_and_cache(), regcomp_auth_token(), and test_re_compile().
|
static |
Definition at line 2029 of file regcomp.c.
References AHEAD, assert, BEHIND, cloneouts(), vars::cm, colorcomplement(), fb(), LACON, LATYPE_AHEAD_NEG, LATYPE_AHEAD_POS, LATYPE_BEHIND_NEG, LATYPE_BEHIND_POS, newarc(), newlacon(), vars::nfa, NOTREACHED, s1, and single_color_transition().
Referenced by parseqatom().
|
static |
Referenced by makesearch(), and parseqatom().
Referenced by brackpart().
Definition at line 2218 of file regcomp.c.
References assert, BACKR, BRUSE, CAP, subre::capno, subre::child, fb(), subre::flags, freesubreandsiblings(), subre::op, and removecaptures().
Referenced by pg_regcomp(), and removecaptures().
|
static |
Referenced by parseqatom().
Definition at line 1586 of file regcomp.c.
References delsub(), dupnfa(), EMPTYARC, ERR, fb(), INF, moveins(), moveouts(), newstate(), vars::nfa, NOERR, PAIR, REDUCE, REG_ASSERT, repeat(), s2, and SOME.
Referenced by in_grouping(), in_grouping_b(), in_grouping_b_U(), in_grouping_U(), out_grouping(), out_grouping_b(), out_grouping_b_U(), out_grouping_U(), parseqatom(), and repeat().
Definition at line 2447 of file regcomp.c.
References guts::cmap, fb(), FREE, freecm(), freecnfa(), freelacons(), freesubre(), guts::lacons, guts::magic, guts::nlacons, NULLCNFA, REMAGIC, guts::search, and guts::tree.
Referenced by freev().
Definition at line 2483 of file regcomp.c.
References stack_is_too_deep().
Referenced by processlacon().
|
static |
Referenced by brackpart(), charclass(), charclasscomplement(), onechr(), and wordchrs().
|
static |
Referenced by onechr().
|
static |
|
static |
|
static |
Definition at line 2095 of file regcomp.c.
References assert, subre::backno, subre::begin, subre::capno, subre::chain, subre::child, subre::cnfa, subre::end, ERR, fb(), subre::flags, subre::id, subre::latype, MALLOC, subre::max, subre::min, subre::op, vars::re, REG_ESPACE, REG_ETOOBIG, subre::sibling, STACK_TOO_DEEP, vars::treechain, vars::treefree, and ZAPCNFA.
Definition at line 1476 of file regcomp.c.
References AHEAD, assert, BEHIND, cloneouts(), fb(), vars::nfa, and vars::wordchrs.
Referenced by _metaphone(), addNorm(), AddStem(), addToResult(), byword(), CheckAffix(), CheckCompoundAffixes(), ciprefix(), cmpspell(), compareWORD(), daitch_mokotoff_coding(), dxsyn_lexize(), FindAffixes(), FindWord(), hlfinditem(), itsabbr(), Lookahead(), NIAddSpell(), NINormalizeWord(), NormalizeSubWord(), parseqatom(), pg_leftmost_one_pos32(), pg_leftmost_one_pos64(), pg_popcount32(), pg_popcount32_portable(), pg_popcount64(), pg_popcount64_portable(), pg_rightmost_one_pos32(), pg_rightmost_one_pos64(), pg_rotate_left32(), pg_rotate_right32(), plpgsql_parse_word(), SplitToVariants(), TidStoreSetBlockOffsets(), and unicode_to_utf8word().
Definition at line 1993 of file regcomp.c.
References CC_WORD, cclasscvec(), vars::cflags, vars::cm, fb(), newstate(), vars::nfa, NOERR, NOTE, okcolors(), REG_ICASE, REG_ULOCALE, subcolorcvec(), and vars::wordchrs.
Referenced by parseqatom().
Definition at line 358 of file regcomp.c.
Referenced by _outRangeTblEntry(), _readRangeTblEntry(), btadjustmembers(), create_functionscan_plan(), ExplainNode(), ginadjustmembers(), gistadjustmembers(), hashadjustmembers(), make_functionscan(), pg_regcomp(), and spgadjustmembers().