#include <sys/cdefs.h>#include <sys/types.h>

Go to the source code of this file.
Data Structures | |
| struct | regex_t |
| struct | regmatch_t |
Defines | |
| #define | REG_BASIC 0000 |
| #define | REG_EXTENDED 0001 |
| #define | REG_ICASE 0002 |
| #define | REG_NOSUB 0004 |
| #define | REG_NEWLINE 0010 |
| #define | REG_NOSPEC 0020 |
| #define | REG_PEND 0040 |
| #define | REG_DUMP 0200 |
| #define | REG_NOMATCH 1 |
| #define | REG_BADPAT 2 |
| #define | REG_ECOLLATE 3 |
| #define | REG_ECTYPE 4 |
| #define | REG_EESCAPE 5 |
| #define | REG_ESUBREG 6 |
| #define | REG_EBRACK 7 |
| #define | REG_EPAREN 8 |
| #define | REG_EBRACE 9 |
| #define | REG_BADBR 10 |
| #define | REG_ERANGE 11 |
| #define | REG_ESPACE 12 |
| #define | REG_BADRPT 13 |
| #define | REG_EMPTY 14 |
| #define | REG_ASSERT 15 |
| #define | REG_INVARG 16 |
| #define | REG_ATOI 255 |
| #define | REG_ITOA 0400 |
| #define | REG_NOTBOL 00001 |
| #define | REG_NOTEOL 00002 |
| #define | REG_STARTEND 00004 |
| #define | REG_TRACE 00400 |
| #define | REG_LARGE 01000 |
| #define | REG_BACKR 02000 |
Typedefs | |
| typedef off_t | regoff_t |
Functions | |
| __BEGIN_DECLS int | regcomp (regex_t *, const char *, int) |
| size_t | regerror (int, const regex_t *, char *, size_t) |
| int | regexec (const regex_t *, const char *, size_t, regmatch_t[], int) |
| void | regfree (regex_t *) |
| #define REG_ATOI 255 |
Definition at line 87 of file regex.h.
Referenced by regerror().
| #define REG_BADBR 10 |
Definition at line 80 of file regex.h.
Referenced by p_count(), p_ere_exp(), and p_simp_re().
| #define REG_BADRPT 13 |
Definition at line 83 of file regex.h.
Referenced by p_ere_exp(), and p_simp_re().
| #define REG_EBRACE 9 |
Definition at line 79 of file regex.h.
Referenced by p_ere_exp(), and p_simp_re().
| #define REG_EBRACK 7 |
Definition at line 77 of file regex.h.
Referenced by p_b_coll_elem(), p_b_symbol(), p_b_term(), and p_bracket().
| #define REG_ECOLLATE 3 |
Definition at line 73 of file regex.h.
Referenced by p_b_coll_elem(), p_b_symbol(), and p_b_term().
| #define REG_ECTYPE 4 |
Definition at line 74 of file regex.h.
Referenced by p_b_cclass(), and p_b_term().
| #define REG_EESCAPE 5 |
Definition at line 75 of file regex.h.
Referenced by p_ere_exp(), and p_simp_re().
| #define REG_EMPTY 14 |
| #define REG_EPAREN 8 |
Definition at line 78 of file regex.h.
Referenced by p_ere_exp(), and p_simp_re().
| #define REG_ERANGE 11 |
Definition at line 81 of file regex.h.
Referenced by p_b_term().
| #define REG_ESPACE 12 |
Definition at line 82 of file regex.h.
Referenced by allocset(), enlarge(), matcher(), mcadd(), regcomp(), and stripsnug().
| #define REG_ESUBREG 6 |
Definition at line 76 of file regex.h.
Referenced by p_simp_re().
| #define REG_EXTENDED 0001 |
Definition at line 62 of file regex.h.
Referenced by name_init(), and regcomp().
| #define REG_ICASE 0002 |
Definition at line 63 of file regex.h.
Referenced by ordinary(), and p_bracket().
| #define REG_INVARG 16 |
| #define REG_ITOA 0400 |
Definition at line 88 of file regex.h.
Referenced by regerror().
| #define REG_NEWLINE 0010 |
Definition at line 65 of file regex.h.
Referenced by backref(), fast(), p_bracket(), p_ere_exp(), p_simp_re(), and slow().
| #define REG_NOTBOL 00001 |
| #define REG_NOTEOL 00002 |
| __BEGIN_DECLS int regcomp | ( | regex_t * | , | |
| const char * | , | |||
| int | ||||
| ) |
Definition at line 149 of file regcomp.c.
References re_guts::backrefs, BAD, re_guts::categories, categorize(), re_guts::catspace, re_guts::cflags, re_guts::csetsize, EMIT, parse::end, parse::error, findmust(), re_guts::firststate, parse::g, GOODFLAGS, re_guts::iflags, re_guts::laststate, re_guts::magic, MAGIC1, MAGIC2, re_guts::mlen, re_guts::must, re_guts::nbol, NC, re_guts::ncategories, parse::ncsalloc, re_guts::ncsets, re_guts::neol, parse::next, NPAREN, re_guts::nplus, re_guts::nsub, OEND, OUT, p_bre(), p_ere(), p_str(), parse::pbegin, parse::pend, pluscount(), regex_t::re_endp, regex_t::re_g, regex_t::re_magic, regex_t::re_nsub, REG_ASSERT, REG_ESPACE, REG_EXTENDED, REG_INVARG, REG_NOSPEC, REG_PEND, regfree(), re_guts::setbits, SETERROR, re_guts::sets, parse::slen, parse::ssize, parse::strip, stripsnug(), and THERE.
Referenced by name_init().

| size_t regerror | ( | int | , | |
| const regex_t * | , | |||
| char * | , | |||
| size_t | ||||
| ) |
Definition at line 79 of file regerror.c.
References rerr::code, rerr::explain, rerr::name, REG_ATOI, REG_ITOA, regatoi(), and rerrs.
Referenced by name_init().

| int regexec | ( | const regex_t * | , | |
| const char * | , | |||
| size_t | , | |||
| regmatch_t | [], | |||
| int | ||||
| ) |
Definition at line 139 of file regexec.c.
References BAD, GOODFLAGS, re_guts::iflags, re_guts::magic, MAGIC1, MAGIC2, re_guts::nstates, regex_t::re_g, regex_t::re_magic, REG_BADPAT, REG_LARGE, and states1.
Referenced by is_name_wellformed(), and is_service_wellformed().
| void regfree | ( | regex_t * | ) |
Definition at line 50 of file regfree.c.
References re_guts::magic, MAGIC1, MAGIC2, re_guts::must, regex_t::re_g, regex_t::re_magic, re_guts::setbits, re_guts::sets, and re_guts::strip.
Referenced by name_destructor(), name_init(), and regcomp().
1.6.3