| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-11-22 | add test for issue 104726 | The 8472 | -0/+12 | |
| 2022-11-15 | generalize str.contains() tests to a range of haystack sizes | The 8472 | -5/+21 | |
| The Big-O is cubic, but this is only called with ~70 chars so it's still fast enough | ||||
| 2022-08-21 | Replace most uses of `pointer::offset` with `add` and `sub` | Maybe Waffle | -5/+5 | |
| 2022-05-26 | improve case conversion happy path | Conrad Ludgate | -0/+14 | |
| 2022-03-31 | make utf8_char_counts test faster in Miri | Ralf Jung | -4/+7 | |
| 2022-03-27 | Debug print char 0 as '\0' rather than '\u{0}' | David Tolnay | -1/+1 | |
| 2022-03-10 | Use implicit capture syntax in format_args | T-O-R-U-S | -5/+5 | |
| This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored). | ||||
| 2022-02-07 | Add {floor,ceil}_char_boundary methods to str | ltdk | -0/+92 | |
| 2022-02-05 | Ensure non-power-of-two sizes are tested in the Chars::count test | Thom Chiovoloni | -2/+4 | |
| 2022-02-05 | Optimize `core::str::Chars::count` | Thom Chiovoloni | -0/+40 | |
| 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 | |
