about summary refs log tree commit diff
path: root/src/libstd/path.rs
AgeCommit message (Collapse)AuthorLines
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+5
2013-08-15Add ToCStr method .with_c_str()Kevin Ballard-3/+3
.with_c_str() is a replacement for the old .as_c_str(), to avoid unnecessary boilerplate. Replace all usages of .to_c_str().with_ref() with .with_c_str().
2013-08-15Check for interior nulls in .to_c_str()Kevin Ballard-0/+8
Previous dicussions about CString suggested that interior nulls should throw an error. This was never implemented. Add this now, using a condition (named null_byte) to allow for recovery. Add method .to_c_str_unchecked() that skips this check.
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-1/+1
2013-08-10Mass rename of .consume{,_iter}() to .move_iter()Erick Tryzelaar-2/+2
cc #7887
2013-08-09Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-2/+163
remove-str-trailing-nulls
2013-08-09std/rustc/rustpkg/syntax: Support the `extern mod = ...` formTim Chevalier-2/+163
This commit allows you to write: extern mod x = "a/b/c"; which means rustc will search in the RUST_PATH for a package with ID a/b/c, and bind it to the name `x` if it's found. Incidentally, move get_relative_to from back::rpath into std::path
2013-08-04Merge remote-tracking branch 'remotes/origin/master' into str-remove-nullErick Tryzelaar-7/+7
2013-08-04std: replace str::as_c_str with std::c_strErick Tryzelaar-4/+17
2013-08-03remove obsolete `foreach` keywordDaniel Micay-7/+7
this has been replaced by `for`
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-8/+8
2013-07-30No longer treat \ as a path separator on posix systems.Gareth Smith-4/+22
2013-07-23std: move StrUtil::as_c_str into StrSliceErick Tryzelaar-22/+15
2013-07-18rustpkg: Make rustpkg commands work without a package IDTim Chevalier-1/+41
`rustpkg build`, if executed in a package source directory inside a workspace, will now build that package. By "inside a workspace" I mean that the parent directory has to be called `src`, and rustpkg will create a `build` directory in .. if there isn't already one. Same goes for `rustpkg install` and `rustpkg clean`. For the time being, `rustpkg build` (etc.) will still error out if you run it inside a directory whose parent isn't called `src`. I'm not sure whether or not it's desirable to have it do something in a non-workspace directory.
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-37/+41
2013-06-28Add each_parent to WindowsPathCorey Richardson-0/+8
2013-06-28librustc: Fix merge fallout.Patrick Walton-1/+1
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-9/+47
implementations. This should allow fewer symbols to be exported.
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-5/+11
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-27rustpkg: Implement RUST_PATHTim Chevalier-0/+9
Unfortunately, the main test for this is ignored due to #7071. Closes #5682
2013-06-23vec: remove BaseIter implementationDaniel Micay-5/+4
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-20auto merge of #7128 : yichoi/rust/fix_sometc, r=brsonbors-1/+29
- Fix stat struct for Android (found by SEGV at run-pass/stat.rs) - Adjust some test cases to rpass for Android - Modify some script to rpass for Android
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-1/+1
2013-06-17std: fix stat struct of android (SEGV error from run-pass/stat.rs on android)Young-il Choi-1/+29
2013-06-16remove unused importsHuon Wilson-1/+0
2013-06-16std: test-fixes, remove warnings, syntax highlighting for code examples.Huon Wilson-6/+6
2013-06-14std: get std::path tests to work againErick Tryzelaar-0/+1
2013-06-13Revert "std: convert {vec,str}::to_owned to methods."Brian Anderson-6/+6
This fixes the strange random crashes in compile-fail tests. This reverts commit 96cd61ad034cc9e88ab6a7845c3480dbc1ea62f3. Conflicts: src/librustc/driver/driver.rs src/libstd/str.rs src/libsyntax/ext/quote.rs
2013-06-13std: make all strings Equiv-alent to each other, generalise Path.push_many ↵Huon Wilson-6/+6
to take any type of string.
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-1/+0
.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-12std: convert {vec,str}::to_owned to methods.Huon Wilson-6/+6
2013-06-10std: remove str::{connect,concat}*.Huon Wilson-3/+3
2013-06-10std: convert character-based str::find_* to methods. Add .slice_{to,from} ↵Huon Wilson-8/+8
methods.
2013-06-10std: replace str::all/any fns and methods with iteratorsHuon Wilson-2/+2
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-30/+30
2013-06-01Remove all uses of `pub impl`. rs=stylePatrick Walton-16/+16
2013-05-30Remove copy bindings from patterns.Niko Matsakis-4/+4
2013-05-30Require documentation by default for libstdAlex Crichton-0/+2
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1200
This only changes the directory names; it does not change the "real" metadata names.