Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

regex.h File Reference

#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  re_pattern_buffer
struct  re_registers
union  register_info_type
struct  regmatch_t

Defines

#define RE_NREGS   10
#define BYTEWIDTH   8
#define RE_REG_MAX   ((1<<BYTEWIDTH)-1)
#define RE_DUP_MAX   ((1 << 15) - 1)
#define RE_CHAR_CLASSES   (1L << 9)
#define RE_OPTION_IGNORECASE   (1L)
#define RE_OPTION_EXTENDED   (RE_OPTION_IGNORECASE<<1)
#define RE_OPTION_MULTILINE   (RE_OPTION_EXTENDED<<1)
#define RE_OPTION_SINGLELINE   (RE_OPTION_MULTILINE<<1)
#define RE_OPTION_LONGEST   (RE_OPTION_SINGLELINE<<1)
#define RE_MAY_IGNORECASE   (RE_OPTION_LONGEST<<1)
#define RE_OPTIMIZE_ANCHOR   (RE_MAY_IGNORECASE<<1)
#define RE_OPTIMIZE_EXACTN   (RE_OPTIMIZE_ANCHOR<<1)
#define RE_OPTIMIZE_NO_BM   (RE_OPTIMIZE_EXACTN<<1)
#define RE_OPTIMIZE_BMATCH   (RE_OPTIMIZE_NO_BM<<1)
#define MBCTYPE_ASCII   0
#define MBCTYPE_EUC   1
#define MBCTYPE_SJIS   2
#define MBCTYPE_UTF8   3
#define ismbchar(c)   re_mbctab[(unsigned char)(c)]
#define mbclen(c)   (re_mbctab[(unsigned char)(c)]+1)

Typedefs

typedef re_pattern_buffer regex_t
typedef size_t regoff_t

Functions

void re_mbcinit ()
char * re_compile_pattern ()
void re_free_regexp ()
int re_adjust_startpos ()
void re_compile_fastmap ()
int re_search ()
int re_match ()
void re_set_casetable ()
void re_copy_registers ()
void re_free_registers ()

Variables

const unsigned char * re_mbctab


Define Documentation

#define BYTEWIDTH   8
 

Definition at line 52 of file regex.h.

#define ismbchar  )     re_mbctab[(unsigned char)(c)]
 

Definition at line 103 of file regex.h.

Referenced by memcmp_translate(), rb_reg_expr_str(), rb_reg_quote(), rb_reg_regsub(), rb_str_capitalize_bang(), rb_str_downcase_bang(), rb_str_inspect(), rb_str_swapcase_bang(), rb_str_upcase_bang(), rb_symname_p(), re_compile_fastmap(), re_compile_pattern(), re_match_exec(), re_search(), slow_search(), and tokadd_string().

#define mbclen  )     (re_mbctab[(unsigned char)(c)]+1)
 

Definition at line 104 of file regex.h.

Referenced by heredoc_identifier(), is_special_global_name(), memcmp_translate(), rb_intern(), rb_reg_expr_str(), rb_reg_mbclen2(), rb_reg_quote(), rb_reg_regsub(), rb_str_capitalize_bang(), rb_str_downcase_bang(), rb_str_inspect(), rb_str_swapcase_bang(), rb_str_upcase_bang(), rb_symname_p(), re_adjust_startpos(), re_compile_pattern(), re_match_exec(), re_search(), slow_search(), and tokadd_string().

#define MBCTYPE_ASCII   0
 

Definition at line 86 of file regex.h.

Referenced by Init_Regexp(), kcode_reset_option(), kcode_set_option(), rb_kcode(), rb_set_kcode(), re_compile_fastmap(), and re_mbcinit().

#define MBCTYPE_EUC   1
 

Definition at line 87 of file regex.h.

Referenced by Init_Regexp(), kcode_reset_option(), kcode_set_option(), rb_kcode(), rb_set_kcode(), re_compile_fastmap(), and re_mbcinit().

#define MBCTYPE_SJIS   2
 

Definition at line 88 of file regex.h.

Referenced by Init_Regexp(), kcode_reset_option(), kcode_set_option(), rb_kcode(), rb_set_kcode(), re_compile_fastmap(), re_compile_pattern(), and re_mbcinit().

#define MBCTYPE_UTF8   3
 

Definition at line 89 of file regex.h.

Referenced by Init_Regexp(), kcode_reset_option(), kcode_set_option(), print_mbc(), rb_kcode(), rb_set_kcode(), re_compile_fastmap(), and re_mbcinit().

#define RE_CHAR_CLASSES   (1L << 9)
 

Definition at line 66 of file regex.h.

#define RE_DUP_MAX   ((1 << 15) - 1)
 

Definition at line 58 of file regex.h.

Referenced by re_compile_pattern(), and re_match_exec().

#define RE_MAY_IGNORECASE   (RE_OPTION_LONGEST<<1)
 

Definition at line 79 of file regex.h.

Referenced by re_compile_fastmap().

#define RE_NREGS   10
 

Definition at line 49 of file regex.h.

Referenced by init_regs().

#define RE_OPTIMIZE_ANCHOR   (RE_MAY_IGNORECASE<<1)
 

Definition at line 80 of file regex.h.

Referenced by re_compile_pattern(), and re_search().

#define RE_OPTIMIZE_BMATCH   (RE_OPTIMIZE_NO_BM<<1)
 

Definition at line 83 of file regex.h.

Referenced by re_adjust_startpos(), and re_compile_fastmap().

#define RE_OPTIMIZE_EXACTN   (RE_OPTIMIZE_ANCHOR<<1)
 

Definition at line 81 of file regex.h.

Referenced by re_compile_pattern(), and re_search().

#define RE_OPTIMIZE_NO_BM   (RE_OPTIMIZE_EXACTN<<1)
 

Definition at line 82 of file regex.h.

Referenced by re_compile_pattern(), and re_search().

#define RE_OPTION_EXTENDED   (RE_OPTION_IGNORECASE<<1)
 

Definition at line 71 of file regex.h.

Referenced by Init_Regexp(), rb_reg_desc(), rb_reg_options(), rb_reg_to_s(), re_compile_pattern(), and regx_options().

#define RE_OPTION_IGNORECASE   (1L)
 

Definition at line 69 of file regex.h.

Referenced by Init_Regexp(), rb_reg_casefold_p(), rb_reg_desc(), rb_reg_initialize(), rb_reg_initialize_m(), rb_reg_options(), rb_reg_prepare_re(), rb_reg_to_s(), re_compile_fastmap(), re_compile_pattern(), re_match_exec(), and regx_options().

#define RE_OPTION_LONGEST   (RE_OPTION_SINGLELINE<<1)
 

Definition at line 77 of file regex.h.

Referenced by re_match_exec().

#define RE_OPTION_MULTILINE   (RE_OPTION_EXTENDED<<1)
 

Definition at line 73 of file regex.h.

Referenced by Init_Regexp(), rb_reg_desc(), rb_reg_options(), rb_reg_to_s(), re_compile_fastmap(), re_compile_pattern(), re_match_exec(), re_search(), and regx_options().

#define RE_OPTION_SINGLELINE   (RE_OPTION_MULTILINE<<1)
 

Definition at line 75 of file regex.h.

Referenced by re_compile_fastmap(), and re_compile_pattern().

#define RE_REG_MAX   ((1<<BYTEWIDTH)-1)
 

Definition at line 54 of file regex.h.

Referenced by re_compile_pattern().


Typedef Documentation

typedef struct re_pattern_buffer regex_t
 

Definition at line 153 of file regex.h.

typedef size_t regoff_t
 

Definition at line 174 of file regex.h.


Function Documentation

int re_adjust_startpos  ) 
 

Referenced by rb_reg_adjust_startpos().

void re_compile_fastmap  ) 
 

Referenced by re_adjust_startpos(), and re_search().

char* re_compile_pattern  ) 
 

Referenced by make_regexp(), rb_reg_prepare_re(), and rb_reg_to_s().

void re_copy_registers  ) 
 

Referenced by match_init_copy(), and rb_reg_search().

void re_free_regexp  ) 
 

void re_free_registers  ) 
 

Referenced by match_init_copy(), and obj_free().

int re_match  ) 
 

Referenced by re_search().

void re_mbcinit  ) 
 

Referenced by Init_Regexp(), kcode_reset_option(), kcode_set_option(), and rb_set_kcode().

int re_search  ) 
 

Referenced by rb_reg_search().

void re_set_casetable  ) 
 

Referenced by Init_Regexp().


Variable Documentation

const unsigned char* re_mbctab
 

Definition at line 95 of file regex.h.

Referenced by re_compile_fastmap(), re_compile_pattern(), and re_mbcinit().


Generated on Wed Jan 18 23:32:11 2006 for Ruby by doxygen 1.3.5