about summary refs log tree commit diff
path: root/src/libcore/str/pattern.rs
AgeCommit message (Expand)AuthorLines
2020-03-30Optimize strip_prefix and strip_suffix with str patternsNikhil Benesch-0/+85
2020-03-07Use ?-operator in more places (clippy::question_mark, had some false negative...Matthias Krüger-8/+5
2020-02-26don't take redundant references to operandsMatthias Krüger-1/+1
2020-01-16Document unsafe blocks in core::{cell, str, sync}Phoebe Bell-2/+11
2020-01-08Use matches macro in libcore and libstdIgor Aleksanov-8/+2
2019-12-22Format the worldMark Rousskov-101/+130
2019-12-16Rollup merge of #67249 - ranma42:improve-starts-with-literal-char, r=BurntSushiMazdak Farrokhzad-15/+4
2019-12-12Minor cleanup in `Pattern::{is_prefix_of,is_suffix_of}` for `char`Andrea Canciani-4/+2
2019-12-12Prefer encoding the char when checking for string prefix/suffixAndrea Canciani-10/+4
2019-12-11Improve `str` prefix/suffix comparisonAndrea Canciani-5/+2
2019-12-11Some small readability improvementsAndre Bogus-6/+1
2019-11-06Have tidy ensure that we document all `unsafe` blocks in libcoreOliver Scherer-0/+2
2019-04-19libcore: deny more...Mazdak Farrokhzad-1/+1
2019-04-18libcore => 2018Taiki Endo-4/+4
2019-02-10libs: doc commentsAlexander Regueiro-4/+4
2019-02-10rustc: doc commentsAlexander Regueiro-2/+2
2019-01-09Misc cleanupsShotaro Yamada-2/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-2/+2
2018-09-29Use impl_header_lifetime_elision in libcoreScott McMurray-2/+2
2018-06-26Deprecation of str::slice_uncheked(_mut)newpavlov-1/+1
2018-04-16Remove unwanted auto-linking and updateGuillaume Gomez-1/+1
2018-02-15spelling fix in commentSteve Klabnik-1/+1
2018-01-06Make double ended string searchers use dependent fingers (fixes #47175)Manish Goregaokar-6/+10
2018-01-01handle overflow/underflow in index offsetsManish Goregaokar-10/+15
2017-12-18Add memchr search support for multibyte charactersManish Goregaokar-48/+102
2017-12-16Fill in reverse searcher impl for charManish Goregaokar-6/+50
2017-12-13Fill in forward searcher impl for charManish Goregaokar-13/+65
2017-12-13Move CharSearcher to its own section in the fileManish Goregaokar-83/+84
2017-12-13Split out char searcher from MultiCharSearcherManish Goregaokar-29/+58
2017-12-13Remove the unused ascii_only field in CharEqSearcherManish Goregaokar-16/+0
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-11/+11
2017-07-23Fix some doc/comment typos.Bruce Mitchener-3/+3
2017-07-20std: Cut down #[inline] annotations where not necessaryAlex Crichton-3/+3
2017-06-17Inline StrSearcher::haystack()Alexander Bulaev-1/+4
2017-05-19Try to optimise char patternsSimonas Kazlauskas-1/+27
2017-02-09name anonymous fn parameters in libcore traitsTrevor Spiteri-3/+3
2016-08-24Use `#[prelude_import]` in `libcore`.Jeffrey Seyfried-2/+0
2016-06-23Use `len` instead of `size_hint` where appropiateTobias Bucher-4/+4
2016-03-20libcore: add Debug implementations to most missing typesSean McArthur-3/+15
2016-03-01Changed `std::pattern::Pattern` impl on `&'a &'a str` to `&'a &'b str`Marvin Löbel-1/+1
2015-08-18Auto merge of #27474 - bluss:twoway-reverse, r=brsonbors-64/+193
2015-08-16StrSearcher: Additional comments and small code movesUlrik Sverdrup-19/+27
2015-08-15core: Fill out issues for unstable featuresAlex Crichton-1/+2
2015-08-07StrSearcher: Improve inner loop in TwoWaySearcher::next, next_backUlrik Sverdrup-10/+22
2015-08-03syntax: Implement #![no_core]Alex Crichton-1/+2
2015-08-02StrSearcher: Implement the full two way algorithm in reverse for rfindUlrik Sverdrup-49/+158
2015-07-29std: Remove the curious inner moduleAlex Crichton-1/+1
2015-07-04core: Use memcmp in is_prefix_of / is_suffix_ofUlrik Sverdrup-5/+4
2015-06-24StrSearcher: Explicitly separate the long and short casesUlrik Sverdrup-5/+11