-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for ASCII trim functions on byte slices #94035
Copy link
Copy link
Closed
Labels
A-UnicodeArea: UnicodeArea: UnicodeC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.
Metadata
Metadata
Assignees
Labels
A-UnicodeArea: UnicodeArea: UnicodeC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.relnotesMarks issues that should be documented in the release notes of the next release.Marks issues that should be documented in the release notes of the next release.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(byte_slice_trim_ascii)]This is a tracking issue for ASCII trim functions on byte slices.
Public API
The feature adds three new methods to byte slices (
[u8]):const fn trim_ascii_start(&self) -> &[u8]: Remove leading ASCII whitespaceconst fn trim_ascii_end(&self) -> &[u8]: Remove trailing ASCII whitespaceconst fn trim_ascii(&self) -> &[u8]: Remove leading and trailing ASCII whitespaceFor deciding what bytes to treat as whitespace,
u8::is_ascii_whitespaceis used. See the linked docs for more details.Examples:
Steps / History
Unresolved Questions
stras well?