about summary refs log tree commit diff
path: root/src/libextra/fileinput.rs
AgeCommit message (Collapse)AuthorLines
2013-10-24Remove even more of std::ioAlex Crichton-629/+0
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-23Removed unnecessary comments and white spaces as suggestedreedlepee-3/+3
2013-10-23Removed Unnecessary comments and white spaces #4386reedlepee-2/+0
2013-10-23Making fields in std and extra : private #4386reedlepee-4/+6
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-2/+2
Who doesn't like a massive renaming?
2013-10-15path2: Adjust the API to remove all the _str mutation methodsKevin Ballard-8/+8
Add a new trait BytesContainer that is implemented for both byte vectors and strings. Convert Path::from_vec and ::from_str to one function, Path::new(). Remove all the _str-suffixed mutation methods (push, join, with_*, set_*) and modify the non-suffixed versions to use BytesContainer.
2013-10-15path2: Replace the path module outrightKevin Ballard-6/+6
Remove the old path. Rename path2 to path. Update all clients for the new path. Also make some miscellaneous changes to the Path APIs to help the adoption process.
2013-10-09option: rewrite the API to use compositionDaniel Micay-2/+1
2013-10-01Migrate users of 'loop' to 'continue'Alex Crichton-1/+1
Closes #9467
2013-09-30extra: Remove usage of fmt!Alex Crichton-16/+16
2013-09-19Clean up unused importsSteven Fackler-1/+0
2013-09-16auto merge of #9211 : klutzy/rust/win32-fix, r=alexcrichtonbors-9/+0
2013-09-16extra::fileinput: Enable tests on Win32klutzy-9/+0
They were blocked by #8810, but it works now.
2013-09-15Remove {uint,int,u64,i64,...}::from_str,from_str_radixblake2-ppc-2/+2
Remove these in favor of the two traits themselves and the wrapper function std::from_str::from_str. Add the function std::num::from_str_radix in the corresponding role for the FromStrRadix trait.
2013-09-12Rewrite fileinput tests to use std::rt::ioAlex Crichton-10/+23
These tests are being very flaky on the bots, and the reason is that files are being created and then when attempted to get read they actually don't exist. I'm not entirely sure why this is happening, but I also don't fully trust the std::io implemention using @-boxes to close/flush/write files at the right time. This moves the tests to using std::rt::io which is hopefully more robust and something that we can actually reason about. Sadly, due to #8810, these tests fail on windows, so they're all ignored on windows right now.
2013-08-21extra: change XXX to FIXME and elaborate on commentsTim Chevalier-20/+25
2013-08-18More spelling corrections.Huon Wilson-1/+1
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-1/+1
cc #5898
2013-08-07Forbid `priv` where it has no effectAlex Crichton-7/+7
This is everywhere except struct fields and enum variants.
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-2/+2
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-03remove obsolete `foreach` keywordDaniel Micay-8/+8
this has been replaced by `for`
2013-08-03replace all remaining `for` with `foreach` or `do`Daniel Micay-10/+15
2013-08-02replace `range` with an external iteratorDaniel Micay-1/+1
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-7/+7
2013-08-01make `in` and `foreach` get treated as keywordsDaniel Micay-11/+11
2013-07-17test: Fix tests.Patrick Walton-3/+5
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-10/+11
2013-07-08Correct merge failuresNiko Matsakis-1/+1
2013-07-08extra: Patch up code that was using irrefutable patterns incorrectly.Niko Matsakis-7/+8
2013-06-30Remove vec::{map, mapi, zip_map} and the methods, except for .map, since thisHuon Wilson-5/+4
is very common, and the replacement (.iter().transform().collect()) is very ugly.
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-11/+9
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+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-21vec: rm old_iter implementations, except BaseIterDaniel Micay-5/+5
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-14add IteratorUtil to the preludeDaniel Micay-1/+0
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-1/+1
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-4/+1
2013-06-09std: remove each_char* fns and methods from str, replaced by iterators.Huon Wilson-1/+2
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-11/+13
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-05-30libextra: Require documentation by defaultAlex Crichton-0/+2
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+10
2013-05-23cleanup warnings from libextraErick Tryzelaar-9/+6
2013-05-22test: Update tests and import the prelude in some more places.Patrick Walton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+604
This only changes the directory names; it does not change the "real" metadata names.