Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Tracking issue for str::split_ascii_whitespace #48656

Closed

Description

@clarfonthey

Implemented in #49987:

impl str {
    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace {…}
}

#[derive(Clone, Debug)]
pub struct SplitAsciiWhitespace<'a> {…}

impl<'a> Iterator for SplitAsciiWhitespace<'a> {
    type Item = &'a str;
    …
}
impl<'a> DoubleEndedIterator for SplitAsciiWhitespace<'a> {…}
impl<'a> FusedIterator for SplitAsciiWhitespace<'a> {}

Original feature request:


Considering how is_ascii_whitespace is now available on libcore, it makes sense to provide this too.

I'll provide a PR at some point if this seems reasonable; a lot of code that needs to split on whitespace only needs to split on ASCII whitespace, which is considerably faster.

Activity

  1. added
    T-libs-api
    on Mar 2, 2018
  2. added
    C-feature-request
    on May 21, 2018
  3. added
    C-tracking-issue
    A-iterators
    and removed
    C-feature-request
    on Jun 27, 2018
  4. changed the title [-]str::split_ascii_whitespace[/-] [+]Tracking isuse for str::split_ascii_whitespace[/+] on Jun 27, 2018
  5. changed the title [-]Tracking isuse for str::split_ascii_whitespace[/-] [+]Tracking issue for str::split_ascii_whitespace[/+] on Jun 27, 2018
  6. SimonSapin commented on Jun 27, 2018

    @SimonSapin
    Contributor

    The implementation PR is in the bors queue, I’ve turned this into a tracking issue.

  7. added a commit that references this issue on Jun 27, 2018
  8. clarfonthey commented on Nov 27, 2018

    @clarfonthey
    ContributorAuthor

    How do people feel about stabilising this?

  9. SimonSapin commented on Nov 28, 2018

    @SimonSapin
    Contributor

    Let’s.

    @rfcbot fcp merge

  10. rfcbot commented on Nov 28, 2018

    @rfcbot

    Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged teams:

    No concerns currently listed.

    Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

    See this document for info about what commands tagged team members can give me.

  11. added
    proposed-final-comment-period
    disposition-merge
    final-comment-period
    on Nov 28, 2018
  12. rfcbot commented on Nov 29, 2018

    @rfcbot

    🔔 This is now entering its final comment period, as per the review above. 🔔

  13. removed
    proposed-final-comment-period
    on Nov 29, 2018
  14. rfcbot commented on Dec 9, 2018

    @rfcbot

    The final comment period, with a disposition to merge, as per the review above, is now complete.

  15. added
    finished-final-comment-period
    and removed
    final-comment-period
    on Dec 9, 2018
  16. Centril commented on Dec 29, 2018

    @Centril
    Contributor

    @clarcharr Up for writing a stabilization PR?

  17. added a commit that references this issue on Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-iteratorsC-tracking-issueT-libs-apidisposition-mergefinished-final-comment-period

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions