Ruby: include/ruby/re.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

re.h
Go to the documentation of this file.
1#ifndef RUBY_RE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RUBY_RE_H 1
13#include "ruby/internal/config.h"
14#include <sys/types.h>
15#include <stdio.h>
16
17#include "ruby/regex.h"
18#include "ruby/internal/core/rmatch.h"
19#include "ruby/internal/dllexport.h"
20
21 RBIMPL_SYMBOL_EXPORT_BEGIN()
22
23 VALUE rb_reg_regcomp(VALUE);
24long rb_reg_search(VALUE, VALUE, long, int);
25 VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE);
26long rb_reg_adjust_startpos(VALUE, VALUE, long, int);
27void rb_match_busy(VALUE);
28 VALUE rb_reg_quote(VALUE);
29 regex_t *rb_reg_prepare_re(VALUE re, VALUE str);
30int rb_reg_region_copy(struct re_registers *, const struct re_registers *);
31
32 RBIMPL_SYMBOL_EXPORT_END()
33
34#endif /* RUBY_RE_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
str
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18
config.h
Thin wrapper to ruby/config.h.
rb_match_busy
void rb_match_busy(VALUE)
Definition: re.c:1305
rb_reg_region_copy
int rb_reg_region_copy(struct re_registers *, const struct re_registers *)
Definition: re.c:956
rb_reg_prepare_re
regex_t * rb_reg_prepare_re(VALUE re, VALUE str)
Definition: re.c:1511
rb_reg_regcomp
VALUE rb_reg_regcomp(VALUE)
Definition: re.c:2984
rb_reg_regsub
VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE)
Definition: re.c:3790
rb_reg_adjust_startpos
long rb_reg_adjust_startpos(VALUE, VALUE, long, int)
Definition: re.c:1518
rb_reg_quote
VALUE rb_reg_quote(VALUE)
Definition: re.c:3475
rb_reg_search
long rb_reg_search(VALUE, VALUE, long, int)
Definition: re.c:1628
regex.h
rmatch.h
Defines struct RMatch.
const
#define const
Definition: strftime.c:108
re_pattern_buffer
Definition: onigmo.h:755
re_registers
Definition: onigmo.h:716
VALUE
unsigned long VALUE
Definition: value.h:38