Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (28 sloc) 0.813 kB
4dbc956 more regexp work
Laurent Sansonetti authored
1 /*
2 * MacRuby Regular Expressions.
3 *
4 * This file is covered by the Ruby license. See COPYING for more details.
5 *
6 * Copyright (C) 2010, Apple Inc. All rights reserved.
7 */
8
9 #ifndef __RE_H_
10 #define __RE_H_
11
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
15
16 bool rb_char_to_icu_option(int c, int *option);
80cdbfa added String#match and String#=~
Laurent Sansonetti authored
17
4dbc956 more regexp work
Laurent Sansonetti authored
18 VALUE regexp_eqq(VALUE rcv, SEL sel, VALUE str);
80cdbfa added String#match and String#=~
Laurent Sansonetti authored
19 VALUE regexp_match(VALUE rcv, SEL sel, VALUE str);
20 VALUE regexp_match2(VALUE rcv, SEL sel, int argc, VALUE *argv);
21
22 VALUE rb_reg_quote(VALUE pat);
23 VALUE rb_reg_regcomp(VALUE str);
1775a38 more string/regexp work
Laurent Sansonetti authored
24 int rb_reg_search(VALUE re, VALUE str, int pos, bool reverse);
25
26 static inline int
27 rb_reg_adjust_startpos(VALUE re, VALUE str, int pos, bool reverse)
28 {
29 return reverse ? -pos : rb_str_chars_len(str) - pos;
30 }
4dbc956 more regexp work
Laurent Sansonetti authored
31
32 #if defined(__cplusplus)
33 } // extern "C"
34 #endif
35
36 #endif // __RE_H_
Something went wrong with that request. Please try again.