]> git.lizzy.rs Git - rust.git/commit
auto merge of #7032 : huonw/rust/each-fn-kill, r=thestinger
authorbors <bors@rust-lang.org>
Mon, 10 Jun 2013 19:10:39 +0000 (12:10 -0700)
committerbors <bors@rust-lang.org>
Mon, 10 Jun 2013 19:10:39 +0000 (12:10 -0700)
commit1310212c27c1c294e1f907b05a225440c987a912
tree55be12fd3e32a320f11b3d7cf6125a825aede7c6
parent2ff6b298c5f23f48aa993fced41b6e29e446b7ce
parente8782eeb6327eb79b132cc3f71bfaf55310dde00
auto merge of #7032 : huonw/rust/each-fn-kill, r=thestinger

Continuation of #7015, and #6995.

Rewrites the character-based `each_split` functions in `str` to use an iterator, removes a few redundant methods, and replaces all uses of `len`, `is_empty` and `slice` functions with the methods (and deletes the the functions).

Update: Ok, this has turned into a major makeover for `str`, turning a lot of functions into methods, and removing redundant ones. Each commit is essentially a single such change.

(Unscientific benchmarks suggest that the external `split_iter` is approximately 10% faster than the internal one. I'm not quite sure why this would be true.)

(@thestinger is probably interested in this.)