LLVM: lib/Support/regex_impl.h File Reference (original) (raw)

#include <sys/types.h>

Go to the source code of this file.

Macros
#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 */
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)

REG_ASSERT

REG_ATOI

REG_BACKR

#define REG_BACKR 02000 /* force use of backref code */

REG_BADBR

REG_BADPAT

REG_BADRPT

REG_BASIC

REG_DUMP

REG_EBRACE

REG_EBRACK

REG_ECOLLATE

REG_ECTYPE

REG_EESCAPE

REG_EMPTY

REG_EPAREN

REG_ERANGE

REG_ESPACE

REG_ESUBREG

REG_EXTENDED

#define REG_EXTENDED 0001

REG_ICASE

REG_INVARG

REG_ITOA

REG_LARGE

#define REG_LARGE 01000 /* force large representation */

REG_NEWLINE

REG_NOMATCH

REG_NOSPEC

REG_NOSUB

REG_NOTBOL

REG_NOTEOL

REG_PEND

REG_STARTEND

#define REG_STARTEND 00004

REG_TRACE

#define REG_TRACE 00400 /* tracing of execution */

llvm_regex_t

llvm_regoff_t

llvm_regcomp()

Definition at line 293 of file regcomp.c.

References categorize(), re_guts::cflags, EMIT, findmust(), g(), GOODFLAGS, llvm_regfree(), MAGIC1, MAGIC2, NC, NPAREN, OEND, OUT, p_bre(), p_ere(), p_str(), 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, SETERROR, stripsnug(), and THERE.

Referenced by llvm::Regex::Regex().

llvm_regerror()

llvm_regexec()

Definition at line 141 of file regexec.c.

References assert(), g(), GOODFLAGS, MAGIC1, MAGIC2, llvm_regex::re_g, llvm_regex::re_magic, REG_BADPAT, REG_LARGE, REGEX_BAD, and states1.

Referenced by llvm::Regex::match().

llvm_regfree()

llvm_strlcpy()