-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add ASCII whitespace trimming functions to &str
#118523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Marking as waiting on team, since there's no T-libs-api ACP or other sign off for this new unstable surface area. |
Filed an ACP I didn't initially file one because the dev guide made it seem more optional than required. |
Discussed in today's @rust-lang/libs-api meeting, and we decided to accept these. We can evaluate further during stabilization. |
It's probably best to use the same tracking issue as for the |
Add `trim_ascii_start`, `trim_ascii_end`, and `trim_ascii` functions to `&str` for trimming ASCII whitespace under the `byte_slice_trim_ascii` feature gate. Add `inline` to `[u8]` `trim_ascii` functions
Put these functions under the |
@rustbot label -S-waiting-on-team +S-waiting-on-review |
@bors r+ |
…kingjubilee Rollup of 6 pull requests Successful merges: - rust-lang#118523 (Add ASCII whitespace trimming functions to `&str`) - rust-lang#118851 ([std] Add xcoff in object's feature list) - rust-lang#118989 (Simplify lint decorator derive too) - rust-lang#118993 (use `if cfg!` instead of `#[cfg]`) - rust-lang#119003 (NFC: do not clone types that are copy) - rust-lang#119004 (NFC don't convert types to identical types) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#118523 - okaneco:trim_ascii, r=Mark-Simulacrum Add ASCII whitespace trimming functions to `&str` - Add `trim_ascii_start`, `trim_ascii_end`, and `trim_ascii` functions to `&str` for trimming ASCII whitespace - Add `#[inline]` to `[u8]` `trim_ascii` functions These functions are feature-gated by `#![feature(byte_slice_trim_ascii)]` rust-lang#94035
trim_ascii_start
,trim_ascii_end
, andtrim_ascii
functions to&str
for trimming ASCII whitespace#[inline]
to[u8]
trim_ascii
functionsThese functions are feature-gated by
#![feature(byte_slice_trim_ascii)]
#94035