re2 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/re2/re2.cc +2 -2
- metadata +40 -40
data/ext/re2/re2.cc
CHANGED
@@ -839,7 +839,7 @@ extern "C" {
|
|
839
839
|
re2::StringPiece text_as_string_piece(StringValuePtr(text));
|
840
840
|
|
841
841
|
if (n == 0) {
|
842
|
-
matched = p->pattern->Match(text_as_string_piece, 0, RE2::UNANCHORED, 0, 0);
|
842
|
+
matched = p->pattern->Match(text_as_string_piece, 0, (int)RSTRING_LEN(text), RE2::UNANCHORED, 0, 0);
|
843
843
|
return BOOL2RUBY(matched);
|
844
844
|
} else {
|
845
845
|
|
@@ -859,7 +859,7 @@ extern "C" {
|
|
859
859
|
|
860
860
|
m->number_of_matches = n;
|
861
861
|
|
862
|
-
matched = p->pattern->Match(text_as_string_piece, 0, RE2::UNANCHORED, m->matches, n);
|
862
|
+
matched = p->pattern->Match(text_as_string_piece, 0, (int)RSTRING_LEN(text), RE2::UNANCHORED, m->matches, n);
|
863
863
|
|
864
864
|
if (matched) {
|
865
865
|
return matchdata;
|
metadata
CHANGED
@@ -3,49 +3,49 @@ name: re2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
version: 0.
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
|
-
|
12
|
+
- Paul Mucur
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-04-11 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rake-compiler
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :development
|
32
|
+
version_requirements: *id001
|
33
33
|
description: Ruby bindings to re2, "an efficient, principled regular expression library".
|
34
34
|
email: ruby.re2@librelist.com
|
35
35
|
executables: []
|
36
36
|
|
37
37
|
extensions:
|
38
|
-
|
38
|
+
- ext/re2/extconf.rb
|
39
39
|
extra_rdoc_files: []
|
40
40
|
|
41
41
|
files:
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
42
|
+
- ext/re2/extconf.rb
|
43
|
+
- ext/re2/re2.cc
|
44
|
+
- LICENSE.txt
|
45
|
+
- README.md
|
46
|
+
- Rakefile
|
47
|
+
- test/re2_test.rb
|
48
|
+
- test/leak.rb
|
49
49
|
has_rdoc: true
|
50
50
|
homepage: http://github.com/mudge/re2
|
51
51
|
licenses: []
|
@@ -54,23 +54,23 @@ post_install_message:
|
|
54
54
|
rdoc_options: []
|
55
55
|
|
56
56
|
require_paths:
|
57
|
-
|
57
|
+
- lib
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
59
|
none: false
|
60
60
|
requirements:
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
74
74
|
requirements: []
|
75
75
|
|
76
76
|
rubyforge_project:
|
@@ -79,5 +79,5 @@ signing_key:
|
|
79
79
|
specification_version: 3
|
80
80
|
summary: Ruby bindings to re2.
|
81
81
|
test_files:
|
82
|
-
|
83
|
-
|
82
|
+
- test/re2_test.rb
|
83
|
+
- test/leak.rb
|