about summary refs log tree commit diff
path: root/src/libstd/str
AgeCommit message (Collapse)AuthorLines
2013-11-03Rename files to match current recommendations.Chris Morgan-582/+0
New standards have arisen in recent months, mostly for the use of rustpkg, but the main Rust codebase has not been altered to match these new specifications. This changeset rectifies most of these issues. - Renamed the crate source files `src/libX/X.rs` to `lib.rs`, for consistency with current styles; this affects extra, rustc, rustdoc, rustpkg, rustuv, std, syntax. - Renamed `X/X.rs` to `X/mod.rs,` as is now recommended style, for `std::num` and `std::terminfo`. - Shifted `src/libstd/str/ascii.rs` out of the otherwise unused `str` directory, to be consistent with its import path of `std::ascii`; libstd is flat at present so it's more appropriate thus. While this removes some `#[path = "..."]` directives, it does not remove all of them, and leaves certain other inconsistencies, such as `std::u8` et al. which are actually stored in `src/libstd/num/` (one subdirectory down). No quorum has been reached on this issue, so I felt it best to leave them all alone at present. #9208 deals with the possibility of making libstd more hierarchical (such as changing the crate to match the current filesystem structure, which would make the module path `std::num::u8`). There is one thing remaining in which this repository is not rustpkg-compliant: rustpkg would have `src/std/` et al. rather than `src/libstd/` et al. I have not endeavoured to change that at this point as it would guarantee prompt bitrot and confusion. A change of that magnitude needs to be discussed first.
2013-09-09Some work on std::ascii: Marked unsafe function unsafe, added moving ↵Marvin Löbel-20/+77
implementations
2013-09-09rename `std::iterator` to `std::iter`Daniel Micay-1/+1
The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general.
2013-09-04stop treating char as an integer typeDaniel Micay-10/+15
Closes #7609
2013-09-04Added ToStr impl for charMarvin Löbel-1/+12
Changed ToStr impl for Ascii
2013-08-18std::to_bytes: Delimit sequences &[A] and ~str when hashingblake2-ppc-2/+0
Address issue #5257, for example these values all had the same hash value: ("aaa", "bbb", "ccc") ("aaab", "bb", "ccc") ("aaabbb", "", "ccc") IterBytes for &[A] now includes the length, before calling iter_bytes on each element. IterBytes for &str is now terminated by a byte that does not appear in UTF-8. This way only one more byte is processed when hashing strings.
2013-08-14Methodyfied the string ascii extionsion functionsMarvin Löbel-37/+46
Added into_owned() method for vectors Added DoubleEnded Iterator impl to Option Renamed nil.rs to unit.rs
2013-08-12fix build with the new snapshot compilerDaniel Micay-37/+0
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-1/+1
2013-08-08Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-3/+3
remove-str-trailing-nulls
2013-08-07Forbid `priv` where it has no effectAlex Crichton-3/+3
This is everywhere except struct fields and enum variants.
2013-08-07Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-11/+169
remove-str-trailing-nulls
2013-08-06Add to_ascii_upper, to_ascii_lower and eq_ignore_ascii_case in std::asciiSimon Sapin-11/+169
2013-08-04Merge remote-tracking branch 'remotes/origin/master' into str-remove-nullErick Tryzelaar-1/+1
2013-08-04Remove trailing null from stringsErick Tryzelaar-8/+39
2013-08-03remove obsolete `foreach` keywordDaniel Micay-1/+1
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-2/+3
2013-07-30Added str::char_offset_iter() and str::rev_char_offset_iter()Marvin Löbel-1/+1
Renamed bytes_iter to byte_iter to match other iterators Refactored str Iterators to use DoubleEnded Iterators and typedefs instead of wrapper structs Reordered the Iterator section Whitespace fixup Moved clunky `each_split_within` function to the one place in the tree where it's actually needed Replaced all block doccomments in str with line doccomments
2013-06-23vec: remove BaseIter implementationDaniel Micay-2/+1
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-28/+28
2013-06-17Improved std::asciiMarvin Löbel-23/+89
- Fixed tests - Added methods - Renamed casting methods to be shorter closes #7150
2013-06-11fix tests, remove some warningsHuon Wilson-1/+0
2013-06-10std: replace str::all/any fns and methods with iteratorsHuon Wilson-2/+2
2013-06-09std: replace the str::each* fns/methods with byte iteratorsHuon Wilson-4/+2
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-7/+7
2013-05-23cleanup warnings from libstdErick Tryzelaar-2/+2
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+287
This only changes the directory names; it does not change the "real" metadata names.