| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-12-23 | Rollup merge of #88858 - spektom:to_lower_upper_rev, r=dtolnay | Matthias Krüger | -0/+31 | |
| Allow reverse iteration of lowercase'd/uppercase'd chars The PR implements `DoubleEndedIterator` trait for `ToLowercase` and `ToUppercase`. This enables reverse iteration of lowercase/uppercase variants of character sequences. One of use cases: determining whether a char sequence is a suffix of another one. Example: ```rust fn endswith_ignore_case(s1: &str, s2: &str) -> bool { for eob in s1 .chars() .flat_map(|c| c.to_lowercase()) .rev() .zip_longest(s2.chars().flat_map(|c| c.to_lowercase()).rev()) { match eob { EitherOrBoth::Both(c1, c2) => { if c1 != c2 { return false; } } EitherOrBoth::Left(_) => return true, EitherOrBoth::Right(_) => return false, } } true } ``` | ||||
| 2021-12-14 | Fix a bunch of typos | Frank Steffahn | -1/+1 | |
| 2021-11-18 | Make slice->str conversion and related functions const | Maybe Waffle | -3/+61 | |
| This commit makes the following functions from `core::str` `const fn`: - `from_utf8[_mut]` (`feature(const_str_from_utf8)`) - `from_utf8_unchecked_mut` (`feature(const_str_from_utf8_unchecked_mut)`) - `Utf8Error::{valid_up_to,error_len}` (`feature(const_str_from_utf8)`) | ||||
| 2021-10-30 | Add #[must_use] to remaining core functions | John Kugelman | -1/+1 | |
| 2021-09-11 | Allow reverse iteration of lowercase'd/uppercase'd chars | Michael Spector | -0/+31 | |
| 2021-07-11 | Add test for the fix | Alexis Bourget | -0/+41 | |
| 2021-06-18 | Lint for unused borrows as part of UNUSED_MUST_USE | hi-rustin | -5/+5 | |
| 2021-02-03 | Fixes #80335 | Yechan Bae | -0/+30 | |
| 2020-12-02 | break formatting so rustfmt is happy | Ralf Jung | -1/+2 | |
| 2020-12-02 | disable a ptr equality test on Miri | Ralf Jung | -1/+5 | |
| 2020-11-30 | Make ui test that are run-pass and do not test the compiler itself library tests | Christiaan Dirkx | -1/+95 | |
| 2020-10-20 | Check for exhaustion in SliceIndex for RangeInclusive | Josh Stone | -0/+29 | |
| 2020-09-05 | Move Various str tests in library | Ayush Kumar Mishra | -0/+21 | |
| 2020-07-28 | Add str::[r]split_once | Aleksey Kladov | -0/+24 | |
| This is useful for quick&dirty parsing of key: value config pairs | ||||
| 2020-07-27 | mv std libs to library/ | mark | -0/+1899 | |
