Skip to content

Adding various string and vector functions #1617

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

Closed
wants to merge 8 commits into from

Conversation

killerswan
Copy link
Contributor

These commits add the following:

  • str::map
  • str::all (aka loop_chars)
  • str::any
  • str::bytes_iter
  • str::chars_iter (aka iter_chars)
  • str::words_iter
  • str::lines_iter
  • str::windowed
  • vec::windowed
  • (NEW) str::from_bytes (UTF-8 safe)

@kud1ing
Copy link

kud1ing commented Jan 23, 2012

Cool, that was on my wishlist for a while.

@kud1ing
Copy link

kud1ing commented Jan 23, 2012

And once @nikomatsakis commits his to_list() we should switch the string functions to iteration-only and get rid of the duplication.

See https://mail.mozilla.org/pipermail/rust-dev/2012-January/001216.html

@nikomatsakis
Copy link
Contributor

Can you change the block types in the parameter lists from fn&() to fn()?

@killerswan
Copy link
Contributor Author

How's this?

@nikomatsakis
Copy link
Contributor

Merged as 477c3a8 ... 69ffb4e

Kobzol pushed a commit to Kobzol/rust that referenced this pull request Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants