| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-06-20 | Add doc example for `CString::from_raw`. | Corey Farwell | -0/+21 | |
| 2017-06-20 | Add doc example for `FromBytesWithNulError`. | Corey Farwell | -0/+8 | |
| 2017-06-20 | Add doc example for `NulError`. | Corey Farwell | -0/+8 | |
| 2017-06-20 | Add doc example for `CStr::to_str`. | Corey Farwell | -0/+9 | |
| 2017-06-20 | Add doc example for `CString::as_c_str`. | Corey Farwell | -0/+12 | |
| 2017-06-20 | Add doc example for `Box<CStr>::into_c_string`. | Corey Farwell | -0/+12 | |
| 2017-06-20 | Add doc example for `CString::into_boxed_c_str`. | Corey Farwell | -0/+12 | |
| 2017-06-20 | Add doc example for `CStr::to_string_lossy`. | Corey Farwell | -0/+25 | |
| 2017-06-20 | Add error scenario doc examples for `CStr::from_bytes_with_nul`. | Corey Farwell | -0/+18 | |
| 2017-06-20 | Add doc example for `CStr::to_bytes_with_nul`. | Corey Farwell | -0/+9 | |
| 2017-06-20 | Add doc example for `CStr::to_bytes`. | Corey Farwell | -0/+9 | |
| 2017-06-20 | Mark smaller CStr and CString functions as #[inline] | Alexander Bulaev | -0/+15 | |
| 2017-06-15 | Avoid allocations in Debug for os_str | Stepan Koltsov | -6/+12 | |
| Fixes #38879 | ||||
| 2017-06-05 | Add doc example for `CString::as_bytes`. | Corey Farwell | -0/+10 | |
| 2017-06-05 | Add doc example for `CString::as_bytes_with_nul`. | Corey Farwell | -0/+10 | |
| 2017-06-05 | Add doc example for `CString::into_bytes_with_nul`. | Corey Farwell | -0/+10 | |
| 2017-06-05 | Add doc example for `CString::into_bytes`. | Corey Farwell | -0/+10 | |
| 2017-06-05 | Add doc example for `CString::into_raw`. | Corey Farwell | -0/+20 | |
| 2017-05-24 | Add missing urls for OsStr docs | Guillaume Gomez | -3/+9 | |
| 2017-05-22 | Add missing links for CStr and CString | Guillaume Gomez | -30/+74 | |
| 2017-05-20 | Remove unused lifetimes. | Clar Charr | -1/+1 | |
| 2017-05-20 | Correct some stability versions | Oliver Middleton | -4/+4 | |
| These were found by running tidy on stable versions of rust and finding features stabilised with the wrong version numbers. | ||||
| 2017-05-09 | Remove wrong or outdated info from CString docs. | Matt Brubeck | -6/+4 | |
| 2017-04-18 | Override ToOwned::clone_into for Path and OsStr | Scott McMurray | -1/+17 | |
| The only non-overridden one remaining is the CStr impl, which cannot be optimized as doing so would break CString's second invariant. | ||||
| 2017-04-09 | Auto merge of #41095 - clarcharr:as_extras, r=alexcrichton | bors | -0/+6 | |
| Add as_c_str Again, tying up some consistencies with `CString`. | ||||
| 2017-04-07 | Add as_c_str. | Clar Charr | -0/+6 | |
| 2017-04-06 | Remove some CStr transmutes. | Clar Charr | -2/+3 | |
| 2017-03-16 | Merge branch 'master' into frewsxcv-osstr | Corey Farwell | -14/+53 | |
| 2017-03-15 | Auto merge of #40009 - clarcharr:box_to_buf, r=alexcrichton | bors | -14/+53 | |
| Leftovers from #39594; From<Box> impls These are a few more impls that follow the same reasoning as those from #39594. What's included: * `From<Box<str>> for String` * `From<Box<[T]>> for Vec<T>` * `From<Box<CStr>> for CString` * `From<Box<OsStr>> for OsString` * `From<Box<Path>> for PathBuf` * `Into<Box<str>> for String` * `Into<Box<[T]>> for Vec<T>` * `Into<Box<CStr>> for CString` * `Into<Box<OsStr>> for OsString` * `Into<Box<Path>> for PathBuf` * `<Box<CStr>>::into_c_string` * `<Box<OsStr>>::into_os_string` * `<Box<Path>>::into_path_buf` * Tracking issue for latter three methods + three from previous PR. Currently, the opposite direction isn't doable with `From` (only `Into`) because of the separation between `liballoc` and `libcollections`. I'm holding off on those for a later PR. | ||||
| 2017-03-14 | Add doc example for `OsString::into_boxed_os_str`. | Corey Farwell | -0/+12 | |
| 2017-03-14 | Add doc example for `OsString::shrink_to_fit`. | Corey Farwell | -0/+16 | |
| 2017-03-14 | Add doc example for `OsString::reserve_exact`. | Corey Farwell | -0/+10 | |
| 2017-03-14 | Add doc example for `OsString::reserve`. | Corey Farwell | -0/+10 | |
| 2017-03-14 | Add doc example for `OsStr::to_os_string`. | Corey Farwell | -0/+10 | |
| 2017-03-10 | Rollup merge of #40410 - clarcharr:os_string_shrink_to_fit, r=alexcrichton | Alex Crichton | -0/+6 | |
| OsString::shrink_to_fit. Considering how the other capacity-related methods are there, I found it odd that this one wasn't included. Will create a tracking issue once I get an OK on this. | ||||
| 2017-03-10 | Add From<Box<..>> implementations. | Clar Charr | -14/+53 | |
| 2017-03-10 | OsString::shrink_to_fit. | Clar Charr | -0/+6 | |
| 2017-03-09 | Distinguish the ways `CStr::from_bytes_with_nul` can fail | Tobias Bucher | -6/+40 | |
| 2017-02-21 | changed stability annotations | lukaramu | -2/+2 | |
| Changed stability annotations for the new Error and Display impls for std::ffi::FromBytesWithNulError as they aren't subject to stability the same way. | ||||
| 2017-02-19 | added Error and Display impl for std::ffi::FromBytesWithNulError | lukaramu | -0/+14 | |
| 2017-02-14 | Conversions between CStr/OsStr/Path and boxes. | Clar Charr | -1/+79 | |
| 2017-01-22 | Add missing urls for OsStr and OsString | Guillaume Gomez | -9/+28 | |
| 2017-01-21 | Add doc examples for `std::ffi::OsString` fucntions/methods. | Corey Farwell | -0/+73 | |
| 2017-01-05 | Expand {Path,OsStr}::{to_str,to_string_lossy} doc examples. | Corey Farwell | -0/+23 | |
| 2016-11-08 | Slightly optimise CString | Oliver Middleton | -1/+1 | |
| Avoid a reallocation in CString::from and CStr::to_owned. | ||||
| 2016-10-03 | Auto merge of #36815 - alexcrichton:stabilize-1.13, r=aturon | bors | -3/+4 | |
| std: Stabilize and deprecate APIs for 1.13 This commit is intended to be backported to the 1.13 branch, and works with the following APIs: Stabilized * `i32::checked_abs` * `i32::wrapping_abs` * `i32::overflowing_abs` * `RefCell::try_borrow` * `RefCell::try_borrow_mut` Deprecated * `BinaryHeap::push_pop` * `BinaryHeap::replace` * `SipHash13` * `SipHash24` * `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map` module Closes #28147 Closes #34767 Closes #35057 Closes #35070 | ||||
| 2016-10-03 | std: Stabilize and deprecate APIs for 1.13 | Alex Crichton | -3/+4 | |
| This commit is intended to be backported to the 1.13 branch, and works with the following APIs: Stabilized * `i32::checked_abs` * `i32::wrapping_abs` * `i32::overflowing_abs` * `RefCell::try_borrow` * `RefCell::try_borrow_mut` * `DefaultHasher` * `DefaultHasher::new` * `DefaultHasher::default` Deprecated * `BinaryHeap::push_pop` * `BinaryHeap::replace` * `SipHash13` * `SipHash24` * `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map` module Closes #28147 Closes #34767 Closes #35057 Closes #35070 | ||||
| 2016-10-01 | std: Remove plattform-specific code from os_str | Brian Anderson | -11/+0 | |
| 2016-09-26 | Remove CString drop test. | Aleksey Kladov | -1/+3 | |
| The test relies on the undefined behavior, and so may fail in some circumstances. This can be worked around by stubbing a memory allocator in the test, but it is a bit of work, and LLVM could still theoretically eliminate the write of the zero byte in release mode (which is intended). So let's just remove the test and mark the function as inline. It shouldn't be optimized away when inlined into the debug build of user's code. | ||||
| 2016-09-24 | Rollup merge of #36018 - durka:patch-28, r=steveklabnik | Guillaume Gomez | -2/+7 | |
| strengthen doc warning about CString::from_raw Saw unsound code using this function on IRC. | ||||
