Back to index

php5  5.3.10
Classes | Defines | Typedefs | Functions | Variables
onigposix.h File Reference
#include <stdlib.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  regmatch_t
struct  regex_t
struct  OnigSyntaxType

Defines

#define REG_ICASE   (1<<0)
#define REG_NEWLINE   (1<<1)
#define REG_NOTBOL   (1<<2)
#define REG_NOTEOL   (1<<3)
#define REG_EXTENDED   (1<<4) /* if not setted, Basic Onigular Expression */
#define REG_NOSUB   (1<<5)
#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_EONIG_INTERNAL   14
#define REG_EONIG_BADWC   15
#define REG_EONIG_BADARG   16
#define REG_EONIG_THREAD   17
#define REG_POSIX_ENCODING_ASCII   0
#define REG_POSIX_ENCODING_EUC_JP   1
#define REG_POSIX_ENCODING_SJIS   2
#define REG_POSIX_ENCODING_UTF8   3
#define REG_POSIX_ENCODING_UTF16_BE   4
#define REG_POSIX_ENCODING_UTF16_LE   5
#define P_(args)   ()
#define ONIG_EXTERN   extern
#define ONIG_SYNTAX_POSIX_BASIC   (&OnigSyntaxPosixBasic)
#define ONIG_SYNTAX_POSIX_EXTENDED   (&OnigSyntaxPosixExtended)
#define ONIG_SYNTAX_EMACS   (&OnigSyntaxEmacs)
#define ONIG_SYNTAX_GREP   (&OnigSyntaxGrep)
#define ONIG_SYNTAX_GNU_REGEX   (&OnigSyntaxGnuRegex)
#define ONIG_SYNTAX_JAVA   (&OnigSyntaxJava)
#define ONIG_SYNTAX_PERL   (&OnigSyntaxPerl)
#define ONIG_SYNTAX_RUBY   (&OnigSyntaxRuby)
#define ONIG_SYNTAX_DEFAULT   OnigDefaultSyntax

Typedefs

typedef int regoff_t
typedef unsigned int OnigOptionType

Functions

ONIG_EXTERN int
onig_set_default_syntax 
P_ ((OnigSyntaxType *syntax))
ONIG_EXTERN void onig_copy_syntax P_ ((OnigSyntaxType *to, OnigSyntaxType *from))
ONIG_EXTERN const char
*onig_version 
P_ ((void))
ONIG_EXTERN int regcomp P_ ((regex_t *reg, const char *pat, int options))
ONIG_EXTERN int regexec P_ ((regex_t *reg, const char *str, size_t nmatch, regmatch_t *matches, int options))
ONIG_EXTERN void regfree P_ ((regex_t *reg))
ONIG_EXTERN size_t regerror P_ ((int code, const regex_t *reg, char *buf, size_t size))
ONIG_EXTERN void reg_set_encoding P_ ((int enc))
ONIG_EXTERN int
reg_name_to_group_numbers 
P_ ((regex_t *reg, const unsigned char *name, const unsigned char *name_end, int **nums))
ONIG_EXTERN int reg_foreach_name P_ ((regex_t *reg, int(*func)(const unsigned char *, const unsigned char *, int, int *, regex_t *, void *), void *arg))

Variables

ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixBasic
ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixExtended
ONIG_EXTERN OnigSyntaxType OnigSyntaxEmacs
ONIG_EXTERN OnigSyntaxType OnigSyntaxGrep
ONIG_EXTERN OnigSyntaxType OnigSyntaxGnuRegex
ONIG_EXTERN OnigSyntaxType OnigSyntaxJava
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl
ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby
ONIG_EXTERN OnigSyntaxTypeOnigDefaultSyntax

Class Documentation

struct regmatch_t

Definition at line 26 of file regex.h.

Class Members
regoff_t rm_eo
regoff_t rm_so
struct regex_t

Definition at line 20 of file regex.h.

Collaboration diagram for regex_t:
Class Members
int comp_options
void * onig
const char * re_endp
size_t re_erroffset
struct re_guts * re_g
int re_magic
size_t re_nsub
void * re_pcre
struct OnigSyntaxType

Definition at line 116 of file onigposix.h.

Class Members
unsigned int behavior
unsigned int op
unsigned int op2
OnigOptionType options

Define Documentation

#define ONIG_EXTERN   extern

Definition at line 109 of file onigposix.h.

Definition at line 142 of file onigposix.h.

Definition at line 135 of file onigposix.h.

Definition at line 137 of file onigposix.h.

Definition at line 136 of file onigposix.h.

Definition at line 138 of file onigposix.h.

Definition at line 139 of file onigposix.h.

Definition at line 133 of file onigposix.h.

Definition at line 134 of file onigposix.h.

Definition at line 140 of file onigposix.h.

#define P_ (   args)    ()

Definition at line 94 of file onigposix.h.

#define REG_BADBR   10

Definition at line 55 of file onigposix.h.

#define REG_BADPAT   2

Definition at line 47 of file onigposix.h.

#define REG_BADRPT   13

Definition at line 58 of file onigposix.h.

#define REG_EBRACE   9

Definition at line 54 of file onigposix.h.

#define REG_EBRACK   7

Definition at line 52 of file onigposix.h.

#define REG_ECOLLATE   3

Definition at line 48 of file onigposix.h.

#define REG_ECTYPE   4

Definition at line 49 of file onigposix.h.

#define REG_EESCAPE   5

Definition at line 50 of file onigposix.h.

#define REG_EONIG_BADARG   16

Definition at line 63 of file onigposix.h.

#define REG_EONIG_BADWC   15

Definition at line 62 of file onigposix.h.

#define REG_EONIG_INTERNAL   14

Definition at line 61 of file onigposix.h.

#define REG_EONIG_THREAD   17

Definition at line 64 of file onigposix.h.

#define REG_EPAREN   8

Definition at line 53 of file onigposix.h.

#define REG_ERANGE   11

Definition at line 56 of file onigposix.h.

#define REG_ESPACE   12

Definition at line 57 of file onigposix.h.

#define REG_ESUBREG   6

Definition at line 51 of file onigposix.h.

#define REG_EXTENDED   (1<<4) /* if not setted, Basic Onigular Expression */

Definition at line 42 of file onigposix.h.

#define REG_ICASE   (1<<0)

Definition at line 38 of file onigposix.h.

#define REG_NEWLINE   (1<<1)

Definition at line 39 of file onigposix.h.

#define REG_NOMATCH   1

Definition at line 46 of file onigposix.h.

#define REG_NOSUB   (1<<5)

Definition at line 43 of file onigposix.h.

#define REG_NOTBOL   (1<<2)

Definition at line 40 of file onigposix.h.

#define REG_NOTEOL   (1<<3)

Definition at line 41 of file onigposix.h.

#define REG_POSIX_ENCODING_ASCII   0

Definition at line 67 of file onigposix.h.

#define REG_POSIX_ENCODING_EUC_JP   1

Definition at line 68 of file onigposix.h.

#define REG_POSIX_ENCODING_SJIS   2

Definition at line 69 of file onigposix.h.

Definition at line 71 of file onigposix.h.

Definition at line 72 of file onigposix.h.

#define REG_POSIX_ENCODING_UTF8   3

Definition at line 70 of file onigposix.h.


Typedef Documentation

typedef unsigned int OnigOptionType

Definition at line 113 of file onigposix.h.

typedef int regoff_t

Definition at line 75 of file onigposix.h.


Function Documentation

ONIG_EXTERN const char* onig_version P_ ( (void)  )
ONIG_EXTERN int regcomp P_ ( (regex_t *reg, const char *pat, int options )
ONIG_EXTERN int regexec P_ ( (regex_t *reg, const char *str, size_t nmatch, regmatch_t *matches, int options )
ONIG_EXTERN void regfree P_ ( (regex_t *reg)  )
ONIG_EXTERN size_t regerror P_ ( (int code, const regex_t *reg, char *buf, size_t size)  )
ONIG_EXTERN void reg_set_encoding P_ ( (int enc)  )
ONIG_EXTERN int reg_name_to_group_numbers P_ ( (regex_t *reg, const unsigned char *name, const unsigned char *name_end, int **nums )
ONIG_EXTERN int reg_foreach_name P_ ( (regex_t *reg, int(*func)(const unsigned char *, const unsigned char *, int, int *, regex_t *, void *), void *arg)  )

Variable Documentation

Definition at line 144 of file onigposix.h.

Definition at line 125 of file onigposix.h.

Definition at line 127 of file onigposix.h.

Definition at line 126 of file onigposix.h.

Definition at line 128 of file onigposix.h.

Definition at line 129 of file onigposix.h.

Definition at line 123 of file onigposix.h.

Definition at line 124 of file onigposix.h.

Definition at line 130 of file onigposix.h.