re.h
DEFINITIONS
This source file includes following functions.
1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef RE_H
14 #define RE_H
15
16 #include <sys/types.h>
17 #include <stdio.h>
18
19 #include "regex.h"
20
21 typedef struct re_pattern_buffer Regexp;
22
23 struct RMatch {
24 struct RBasic basic;
25 VALUE str;
26 struct re_registers *regs;
27 };
28
29 #define RMATCH(obj) (R_CAST(RMatch)(obj))
30
31 VALUE rb_reg_regcomp _((VALUE));
32 long rb_reg_search _((VALUE, VALUE, long, long));
33 VALUE rb_reg_regsub _((VALUE, VALUE, struct re_registers *));
34 long rb_reg_adjust_startpos _((VALUE, VALUE, long, long));
35 void rb_match_busy _((VALUE));
36 VALUE rb_reg_quote _((VALUE));
37
38 EXTERN int ruby_ignorecase;
39
40 int rb_reg_mbclen2 _((unsigned int, VALUE));
41 #define mbclen2(c,re) rb_reg_mbclen2((c),(re))
42 #endif