File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -299,8 +299,8 @@ impl Pcre {
299
299
/// # Argument
300
300
/// * `subject` - The subject string.
301
301
#[ inline]
302
- pub fn match_iter < ' a > ( & self , subject : & ' a str ) -> MatchIterator < ' a > {
303
- self . match_iter_with_options ( subject, 0 )
302
+ pub fn matches < ' a > ( & self , subject : & ' a str ) -> MatchIterator < ' a > {
303
+ self . matches_with_options ( subject, 0 )
304
304
}
305
305
306
306
/// Creates a `MatchIterator` for iterating through matches within the given subject
@@ -311,7 +311,7 @@ impl Pcre {
311
311
/// * `options` - Bitwise-OR'd matching options. See the libpcre manpages, `man 3 pcre_exec`,
312
312
/// for more information.
313
313
#[ inline]
314
- pub fn match_iter_with_options < ' a > ( & self , subject : & ' a str , options : options ) -> MatchIterator < ' a > {
314
+ pub fn matches_with_options < ' a > ( & self , subject : & ' a str , options : options ) -> MatchIterator < ' a > {
315
315
unsafe {
316
316
let ovecsize = ( self . capture_count_ + 1 ) * 3 ;
317
317
MatchIterator {
Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ fn test_study_basic() {
75
75
}
76
76
77
77
#[ test]
78
- fn test_match_iter_basic ( ) {
78
+ fn test_matches_basic ( ) {
79
79
let subject = "\0 abc1111abcabc___ababc+a" ;
80
80
let mut it = {
81
81
let re = Pcre :: compile ( "abc" ) . unwrap ( ) ;
82
- re. match_iter ( subject)
82
+ re. matches ( subject)
83
83
84
84
// The MatchIterator should retain a reference to the `pcre`.
85
85
} ;
You can’t perform that action at this time.
0 commit comments