Ruby
2.1.3p242(2014-09-19revision47630)
Main Page
Modules
Data Structures
Files
File List
Globals
include
ruby
re.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
re.h -
4
5
$Author: nobu $
6
created at: Thu Sep 30 14:18:32 JST 1993
7
8
Copyright (C) 1993-2007 Yukihiro Matsumoto
9
10
**********************************************************************/
11
12
#ifndef RUBY_RE_H
13
#define RUBY_RE_H 1
14
15
#if defined(__cplusplus)
16
extern
"C"
{
17
#if 0
18
}
/* satisfy cc-mode */
19
#endif
20
#endif
21
22
#include <sys/types.h>
23
#include <stdio.h>
24
25
#include "
ruby/regex.h
"
26
27
RUBY_SYMBOL_EXPORT_BEGIN
28
29
typedef
struct
re_pattern_buffer
Regexp
;
30
31
struct
rmatch_offset
{
32
long
beg
;
33
long
end
;
34
};
35
36
struct
rmatch
{
37
struct
re_registers
regs
;
38
39
int
char_offset_updated
;
40
int
char_offset_num_allocated
;
41
struct
rmatch_offset
*
char_offset
;
42
};
43
44
struct
RMatch
{
45
struct
RBasic
basic
;
46
VALUE
str
;
47
struct
rmatch
*
rmatch
;
48
VALUE
regexp
;
/* RRegexp */
49
};
50
51
#define RMATCH(obj) (R_CAST(RMatch)(obj))
52
#define RMATCH_REGS(obj) (&(R_CAST(RMatch)(obj))->rmatch->regs)
53
54
VALUE
rb_reg_regcomp
(
VALUE
);
55
long
rb_reg_search
(
VALUE
,
VALUE
,
long
,
int
);
56
VALUE
rb_reg_regsub
(
VALUE
,
VALUE
,
struct
re_registers
*,
VALUE
);
57
long
rb_reg_adjust_startpos
(
VALUE
,
VALUE
,
long
,
int
);
58
void
rb_match_busy
(
VALUE
);
59
VALUE
rb_reg_quote
(
VALUE
);
60
regex_t
*
rb_reg_prepare_re
(
VALUE
re,
VALUE
str);
61
62
RUBY_SYMBOL_EXPORT_END
63
64
#if defined(__cplusplus)
65
#if 0
66
{
/* satisfy cc-mode */
67
#endif
68
}
/* extern "C" { */
69
#endif
70
71
#endif
/* RUBY_RE_H */
72
Generated on Mon Sep 22 2014 11:05:32 for Ruby by
1.8.2