/**********************************************************************
created at: Thu Sep 30 14:18:32 JST 1993
Copyright (C) 1993-2007 Yukihiro Matsumoto
**********************************************************************/
typedef struct re_pattern_buffer Regexp;
struct re_registers regs;
struct rmatch_offset *char_offset;
int char_offset_num_allocated;
VALUE regexp; /* RRegexp */
#define RMATCH(obj) (R_CAST(RMatch)(obj))
#define RMATCH_REGS(obj) (&(R_CAST(RMatch)(obj))->rmatch->regs)
VALUE rb_reg_regcomp(VALUE);
long rb_reg_search(VALUE, VALUE, long, int);
VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE);
long rb_reg_adjust_startpos(VALUE, VALUE, long, int);
void rb_match_busy(VALUE);
VALUE rb_reg_quote(VALUE);
regex_t *rb_reg_prepare_re(VALUE re, VALUE str);
int rb_reg_region_copy(struct re_registers *, const struct re_registers *);