LLVM API Documentation
#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | llvm_regmatch_t |
struct | llvm_regex |
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 /* convert name to number (!) */ |
#define | REG_ITOA 0400 /* convert number to name (!) */ |
#define | REG_NOTBOL 00001 |
#define | REG_NOTEOL 00002 |
#define | REG_STARTEND 00004 |
#define | REG_TRACE 00400 /* tracing of execution */ |
#define | REG_LARGE 01000 /* force large representation */ |
#define | REG_BACKR 02000 /* force use of backref code */ |
Typedefs | |
typedef off_t | llvm_regoff_t |
typedef struct llvm_regex | llvm_regex_t |
Functions | |
int | llvm_regcomp (llvm_regex_t *, const char *, int) |
size_t | llvm_regerror (int, const llvm_regex_t *, char *, size_t) |
int | llvm_regexec (const llvm_regex_t *, const char *, size_t, llvm_regmatch_t[], int) |
void | llvm_regfree (llvm_regex_t *) |
size_t | llvm_strlcpy (char *dst, const char *src, size_t siz) |
#define REG_ASSERT 15 |
Definition at line 80 of file regex_impl.h.
Referenced by llvm_regcomp(), and repeat().
#define REG_ATOI 255 /* convert name to number (!) */ |
Definition at line 82 of file regex_impl.h.
Referenced by llvm_regerror().
#define REG_BACKR 02000 /* force use of backref code */ |
Definition at line 91 of file regex_impl.h.
#define REG_BADBR 10 |
Definition at line 75 of file regex_impl.h.
Referenced by p_count(), p_ere_exp(), and p_simp_re().
#define REG_BADPAT 2 |
Definition at line 67 of file regex_impl.h.
Referenced by llvm_regexec().
#define REG_BADRPT 13 |
Definition at line 78 of file regex_impl.h.
Referenced by p_ere_exp(), and p_simp_re().
#define REG_BASIC 0000 |
Definition at line 56 of file regex_impl.h.
#define REG_DUMP 0200 |
Definition at line 63 of file regex_impl.h.
#define REG_EBRACE 9 |
Definition at line 74 of file regex_impl.h.
Referenced by p_ere_exp(), and p_simp_re().
#define REG_EBRACK 7 |
Definition at line 72 of file regex_impl.h.
Referenced by p_b_coll_elem(), p_b_symbol(), p_b_term(), and p_bracket().
#define REG_ECOLLATE 3 |
Definition at line 68 of file regex_impl.h.
Referenced by p_b_coll_elem(), p_b_symbol(), and p_b_term().
#define REG_ECTYPE 4 |
Definition at line 69 of file regex_impl.h.
Referenced by p_b_cclass(), and p_b_term().
#define REG_EESCAPE 5 |
Definition at line 70 of file regex_impl.h.
Referenced by p_ere_exp(), and p_simp_re().
#define REG_EMPTY 14 |
Definition at line 79 of file regex_impl.h.
Referenced by p_bre(), p_ere(), p_ere_exp(), and p_str().
#define REG_EPAREN 8 |
Definition at line 73 of file regex_impl.h.
Referenced by p_ere_exp(), and p_simp_re().
#define REG_ERANGE 11 |
Definition at line 76 of file regex_impl.h.
Referenced by p_b_term().
#define REG_ESPACE 12 |
Definition at line 77 of file regex_impl.h.
Referenced by allocset(), enlarge(), llvm_regcomp(), mcadd(), and stripsnug().
#define REG_ESUBREG 6 |
Definition at line 71 of file regex_impl.h.
Referenced by p_ere_exp(), and p_simp_re().
#define REG_EXTENDED 0001 |
Definition at line 57 of file regex_impl.h.
Referenced by llvm_regcomp(), and llvm::Regex::Regex().
#define REG_ICASE 0002 |
Definition at line 58 of file regex_impl.h.
Referenced by ordinary(), p_bracket(), and llvm::Regex::Regex().
#define REG_INVARG 16 |
Definition at line 81 of file regex_impl.h.
Referenced by llvm_regcomp().
#define REG_ITOA 0400 /* convert number to name (!) */ |
Definition at line 83 of file regex_impl.h.
Referenced by llvm_regerror().
#define REG_LARGE 01000 /* force large representation */ |
Definition at line 90 of file regex_impl.h.
Referenced by llvm_regexec().
#define REG_NEWLINE 0010 |
Definition at line 60 of file regex_impl.h.
Referenced by p_bracket(), p_ere_exp(), p_simp_re(), and llvm::Regex::Regex().
#define REG_NOMATCH 1 |
Definition at line 66 of file regex_impl.h.
Referenced by llvm::Regex::match().
#define REG_NOSPEC 0020 |
Definition at line 61 of file regex_impl.h.
Referenced by llvm_regcomp().
#define REG_NOSUB 0004 |
Definition at line 59 of file regex_impl.h.
#define REG_NOTBOL 00001 |
Definition at line 86 of file regex_impl.h.
#define REG_NOTEOL 00002 |
Definition at line 87 of file regex_impl.h.
#define REG_PEND 0040 |
Definition at line 62 of file regex_impl.h.
Referenced by llvm_regcomp(), and llvm::Regex::Regex().
#define REG_STARTEND 00004 |
Definition at line 88 of file regex_impl.h.
Referenced by llvm::Regex::match().
#define REG_TRACE 00400 /* tracing of execution */ |
Definition at line 89 of file regex_impl.h.
typedef struct llvm_regex llvm_regex_t |
typedef off_t llvm_regoff_t |
Definition at line 42 of file regex_impl.h.
int llvm_regcomp | ( | llvm_regex_t * | , |
const char * | , | ||
int | |||
) |
Definition at line 157 of file regcomp.c.
References re_guts::backrefs, llvm::LibFunc::calloc, re_guts::categories, categorize(), re_guts::catspace, re_guts::cflags, re_guts::csetsize, EMIT, parse::end, parse::error, findmust(), re_guts::firststate, llvm::LibFunc::free, parse::g, GOODFLAGS, re_guts::iflags, re_guts::laststate, llvm_regfree(), re_guts::magic, MAGIC1, MAGIC2, llvm::LibFunc::malloc, llvm::LibFunc::memset, 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(), llvm_regex::re_endp, llvm_regex::re_g, llvm_regex::re_magic, llvm_regex::re_nsub, REG_ASSERT, REG_ESPACE, REG_EXTENDED, REG_INVARG, REG_NOSPEC, REG_PEND, REGEX_BAD, re_guts::setbits, SETERROR, re_guts::sets, parse::slen, parse::ssize, parse::strip, stripsnug(), llvm::LibFunc::strlen, and THERE.
Referenced by llvm::Regex::Regex().
size_t llvm_regerror | ( | int | , |
const llvm_regex_t * | , | ||
char * | , | ||
size_t | |||
) |
Definition at line 84 of file regerror.c.
References rerr::code, rerr::explain, llvm_strlcpy(), rerr::name, REG_ATOI, REG_ITOA, regatoi(), rerrs, llvm::LibFunc::snprintf, and llvm::LibFunc::strlen.
Referenced by llvm::Regex::isValid().
int llvm_regexec | ( | const llvm_regex_t * | , |
const char * | , | ||
size_t | , | ||
llvm_regmatch_t | [], | ||
int | |||
) |
Definition at line 141 of file regexec.c.
References GOODFLAGS, re_guts::iflags, re_guts::magic, MAGIC1, MAGIC2, re_guts::nstates, llvm_regex::re_g, llvm_regex::re_magic, REG_BADPAT, REG_LARGE, REGEX_BAD, and states1.
Referenced by llvm::Regex::match().
void llvm_regfree | ( | llvm_regex_t * | ) |
Definition at line 50 of file regfree.c.
References llvm::LibFunc::free, re_guts::magic, MAGIC1, MAGIC2, re_guts::must, llvm_regex::re_g, llvm_regex::re_magic, re_guts::setbits, re_guts::sets, and re_guts::strip.
Referenced by llvm_regcomp(), and llvm::Regex::~Regex().
size_t llvm_strlcpy | ( | char * | dst, |
const char * | src, | ||
size_t | siz | ||
) |
Definition at line 29 of file regstrlcpy.c.
Referenced by llvm_regerror(), and mcadd().