Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Typedefs | Functions
re.h File Reference
#include <sys/types.h>
#include <stdio.h>
#include "ruby/regex.h"

Go to the source code of this file.

Data Structures

struct  rmatch_offset
 
struct  rmatch
 
struct  RMatch
 

Macros

#define RMATCH(obj)   (R_CAST(RMatch)(obj))
 
#define RMATCH_REGS(obj)   (&(R_CAST(RMatch)(obj))->rmatch->regs)
 

Typedefs

typedef typedefRUBY_SYMBOL_EXPORT_BEGIN struct re_pattern_buffer Regexp
 

Functions

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_trb_reg_prepare_re (VALUE re, VALUE str)
 
int rb_reg_region_copy (struct re_registers *, const struct re_registers *)
 

Macro Definition Documentation

◆ RMATCH

#define RMATCH (   obj)    (R_CAST(RMatch)(obj))

Definition at line 51 of file re.h.

◆ RMATCH_REGS

#define RMATCH_REGS (   obj)    (&(R_CAST(RMatch)(obj))->rmatch->regs)

Definition at line 52 of file re.h.

Typedef Documentation

◆ Regexp

typedef typedefRUBY_SYMBOL_EXPORT_BEGIN struct re_pattern_buffer Regexp

Definition at line 29 of file re.h.

Function Documentation

◆ rb_match_busy()

void rb_match_busy ( VALUE  )

Definition at line 1252 of file re.c.

◆ rb_reg_adjust_startpos()

long rb_reg_adjust_startpos ( VALUE  ,
VALUE  ,
long  ,
int   
)

Definition at line 1457 of file re.c.

References range, and UChar.

◆ rb_reg_prepare_re()

regex_t* rb_reg_prepare_re ( VALUE  re,
VALUE  str 
)

Definition at line 1450 of file re.c.

References err, and rb_reg_prepare_re0().

◆ rb_reg_quote()

VALUE rb_reg_quote ( VALUE  )

◆ rb_reg_regcomp()

VALUE rb_reg_regcomp ( VALUE  )

Definition at line 2936 of file re.c.

◆ rb_reg_region_copy()

int rb_reg_region_copy ( struct re_registers ,
const struct re_registers  
)

Definition at line 904 of file re.c.

References re_registers::allocated, onig_region_copy(), ONIGERR_MEMORY, and rb_gc().

◆ rb_reg_regsub()

VALUE rb_reg_regsub ( VALUE  ,
VALUE  ,
struct re_registers ,
VALUE   
)

◆ rb_reg_search()

long rb_reg_search ( VALUE  ,
VALUE  ,
long  ,
int   
)

Definition at line 1578 of file re.c.

References rb_reg_search0().

Referenced by rb_reg_match2().