about summary refs log tree commit diff
path: root/src/libcore/to_str.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-240/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-17/+17
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-1/+2
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-12Add use declaration for container::SetSamuel Chase-1/+1
All tests pass now.
2013-05-11Fix errors in test_hashset().Samuel Chase-3/+4
All tests now pass.
2013-05-11Use acc.push_str() instead of str::push_str(..)Samuel Chase-12/+24
Also added some whitespace to enhance readabilty.
2013-05-11Add test: test_hashset()Samuel Chase-0/+14
2013-05-11Add str representation for HashSet.Samuel Chase-0/+18
2013-05-11Remove extra space between key and value.Samuel Chase-6/+9
1. Extra space removed. 2. Using acc.push_str() instead of str::push_str 3. Update test to reflect representation change.
2013-05-11All tests, including newly added test_hashmap() pass. The empty Hash Table ↵Samuel Chase-9/+11
doesn't need to be mutable.
2013-05-11Removed test_hashmap() for the time, being. All tests pass with make check.Samuel Chase-10/+11
2013-05-11Add to_str() for HashMaps, and some basic tests as well.Samuel Chase-0/+36
2013-04-20Added Ascii typeMarvin Löbel-0/+6
2013-04-08Removing no longer needed unsafe blocksAlex Crichton-42/+21
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-16/+16
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-1/+1
2013-03-26core: As per #4898, finish impls for one-tuplesTim Chevalier-1/+10
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-8/+8
2013-03-21Switched over substr and trim functions in str to be non-allocating, ↵Marvin Löbel-12/+0
temporary renamed them to better track use-sites
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-2/+2
notation. rs=delifetiming
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-17/+17
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-2/+2
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-03-04Remove unused imports throughout src/Alex Crichton-2/+0
2013-02-27auto merge of #5098 : pkgw/rust/pr/issue4869, r=brsonbors-21/+5
See issue #4869. I'm not quite sure what constitutes "consensus from the core team" (cf. discussion in the issue), but this at least demonstrates that the proposed change is pretty straightforward. After this change, there are no new test failures. I've un-ignored the `to_str` vectors test; it's not at all obvious to me why it'd be problematic, and it passes on my Linux machine.
2013-02-27Added ToStr implementations for &[T] and @[T]Marvin Löbel-0/+43
2013-02-23libcore: remove default to_str implementations for pointer typesPeter Williams-21/+5
These couldn't be overridden and so ended up being quite restrictive. This has the side effect of changing the stringification of ~vecs, but nothing in relied on this. Closes #4869.
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-5/+5
2013-02-18rustc: For one-tuples, make parsing and printing the type workTim Chevalier-0/+2
and add a test to reflect-visit-data
2013-02-15libcore: Get rid of `move`.Luqman Aden-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-10/+10
rs=implflipping
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-4/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-03core: convert ToStr::to_str to take explicit &selfErick Tryzelaar-18/+34
2013-02-03Converted the floating point types to the new string conversion functions.Marvin Löbel-12/+0
Also fixed all conflicting calls of the old functions in the rest of the codebase. The set of string conversion functions for each float type now consists of those items: - to_str(), converts to number in base 10 - to_str_hex(), converts to number in base 16 - to_str_radix(), converts to number in given radix - to_str_exact(), converts to number in base 10 with a exact number of trailing digits - to_str_digits(), converts to number in base 10 with a maximum number of trailing digits - implementations for to_str::ToStr and num::ToStrRadix - from_str(), parses a string as number in base 10 including decimal exponent and special values - from_str_hex(), parses a string as a number in base 16 including binary exponent and special values - from_str_radix(), parses a string as a number in a given base excluding any exponent and special values - implementations for from_str::FromStr and num::FromStrRadix
2013-02-03Converted libcore/uint-template.rs to the new string functions.Marvin Löbel-20/+0
- Moved ToStr implementation of unsigned integers to uint-template.rs. - Marked the `str()` function as deprecated. - Forwarded all conversion functions to `core::num::to_str_common()` and `core::num::from_str_common()`. - Fixed most places in the codebase where `to_str()` is being used. - Added uint-template to_str and from_str overflow tests.
2013-02-03Converted libcore/int-template.rs to the new string functions.Marvin Löbel-20/+0
- Moved ToStr implementation of integers to int-template.rs. - Marked the `str()` function as deprecated. - Forwarded all conversion functions to `core::num::to_str_common()` and `core::num::from_str_common()`. - Fixed most places in the codebase where `to_str()` is being used. - Added int-template to_str and from_str overflow tests.
2013-01-30rustc: make integral type inference transactional, close #3211, close #4401, ↵Graydon Hoare-2/+2
close #3398.
2013-01-23libsyntax: Remove `fn() unsafe { ... }`. r=graydonPatrick Walton-10/+14
2013-01-14Inlining methods/functions in core.gifnksm-0/+23
Also inlining some functions which take functions as arguments.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-1/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+1
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-16/+19
contain at least two components. r=graydon
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-1/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-10-11Make to_str pure and fix const parameters for str-mutating functionsTim Chevalier-25/+27
Two separate changes that got intertwined (sorry): Make to_str pure. Closes #3691 In str, change functions like push_char to take an &mut str instead of an &str. Closes #3710
2012-09-28De-export logging, to_str, to_bytes, from_str, util. Part of #3583.Graydon Hoare-2/+1
2012-09-21libcore: De-mode strPatrick Walton-3/+3
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-19core: Clean up crate docs and give all mods a brief descriptionBrian Anderson-0/+6
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-1/+1
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.