Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
Functions
re.h File Reference
#include "ruby/internal/config.h"
#include <sys/types.h>
#include <stdio.h>
#include "ruby/regex.h"
#include "ruby/internal/core/rmatch.h"
#include "ruby/internal/dllexport.h"

Go to the source code of this file.

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 *)
 

Detailed Description

Author
$Author$
Date
Thu Sep 30 14:18:32 JST 1993

Definition in file re.h.

Function Documentation

◆ rb_match_busy()

void rb_match_busy ( VALUE  match)

Definition at line 1305 of file re.c.

◆ rb_reg_adjust_startpos()

long rb_reg_adjust_startpos ( VALUE  re,
VALUE  str,
long  pos,
int  reverse 
)

◆ rb_reg_prepare_re()

regex_t * rb_reg_prepare_re ( VALUE  re,
VALUE  str 
)

Definition at line 1511 of file re.c.

References err, rb_reg_prepare_re0(), and str.

◆ rb_reg_quote()

VALUE rb_reg_quote ( VALUE  str)

◆ rb_reg_regcomp()

VALUE rb_reg_regcomp ( VALUE  str)

Definition at line 2984 of file re.c.

References ENCODING_GET, memcmp(), rb_reg_new_str(), RSTRING_LEN, RSTRING_PTR, and str.

◆ rb_reg_region_copy()

int rb_reg_region_copy ( struct re_registers to,
const struct re_registers from 
)

Definition at line 956 of file re.c.

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

Referenced by rb_reg_start_with_p().

◆ rb_reg_regsub()

VALUE rb_reg_regsub ( VALUE  str,
VALUE  src,
struct re_registers regs,
VALUE  regexp 
)

◆ rb_reg_search()

long rb_reg_search ( VALUE  re,
VALUE  str,
long  pos,
int  reverse 
)

Definition at line 1628 of file re.c.

References rb_reg_search0(), and str.

Referenced by rb_reg_eqq(), and rb_reg_match2().