]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #23952 - Kimundi:more_string_pattern, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 7 Apr 2015 00:57:08 +0000 (00:57 +0000)
committerbors <bors@rust-lang.org>
Tue, 7 Apr 2015 00:57:08 +0000 (00:57 +0000)
This adds the missing methods and turns `str::pattern` in a user facing module, as per RFC.

This also contains some big internal refactorings:
- string iterator pairs are implemented with a central macro to reduce redundancy
- Moved all tests from `coretest::str` into `collectionstest::str` and left a note to prevent the two sets of tests drifting apart further.

See https://github.com/rust-lang/rust/issues/22477

1  2 
src/libcollections/string.rs
src/libcore/str/mod.rs

Simple merge
Simple merge