summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
2012-10-11Make to_str pure and fix const parameters for str-mutating functionsTim Chevalier-11/+11
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-10-09core::str - making StrSlice trait functions pureDaniel Patterson-53/+55
2012-10-08libcore: include the trim methods in the StrSlice traitErick Tryzelaar-0/+3
2012-10-08libcore: str trim functions can be applied to &strsErick Tryzelaar-0/+10
2012-10-04Forbid deprecated modes again in coreTim Chevalier-2/+2
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02Removing explicit uses of + modeTim Chevalier-1/+1
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
2012-10-01rename vec::raw::form_slice to buf_as_sliceErick Tryzelaar-1/+1
This matches the str::raw function.
2012-10-01Move over to calling ptr::addr_ofTim Chevalier-1/+1
Everything should now call ptr::addr_of instead of ptr::p2::addr_of. Only the pipes macro code when compiled by stage0 will call ptr::p2::addr_of. Needs a snapshot to get rid of that.
2012-09-28Add a demoded version of ptr::addr_ofTim Chevalier-2/+2
Currently, the new version is ptr::p2::addr_of and the old one is ptr::addr_of. This is kind of cheesy, but I need a snapshot before I can ditch the old version, since the pipe compiler generates calls to addr_of. core is converted over to use the new version, std is not.
2012-09-28Fix long line.Graydon Hoare-2/+5
2012-09-28De-export str. Part of #3583.Graydon Hoare-250/+124
2012-09-28demode vecNiko Matsakis-4/+4
2012-09-26core: Fix mode warnings in strBrian Anderson-4/+4
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-12/+11
2012-09-25Demode iter-traitTim Chevalier-2/+2
2012-09-25Demode Num trait and implsTim Chevalier-1/+1
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-81/+0
2012-09-23core: Demode optionBrian Anderson-2/+2
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-1/+2
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-9/+6
2012-09-21libcore: De-mode strPatrick Walton-67/+84
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-1/+5
#[legacy_exports];
2012-09-20libcore: Fix level-of-indirection problem in str::buf_as_slicePatrick Walton-1/+1
2012-09-20rustc: Fix buf_as_slice exportPatrick Walton-1/+1
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-5/+92
2012-09-19Remove final bits of residual hokey-hash functions. Close #1616.Graydon Hoare-5/+0
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-60/+70
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-72/+62
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-62/+72
2012-09-18core: Rename 'unsafe' mod to 'cast'Brian Anderson-21/+21
2012-09-18libcore: str::unsafe::from_buf_len_nocopy => form_sliceErick Tryzelaar-9/+8
2012-09-18Replace uses of 'unchecked' with 'unsafe'Brian Anderson-19/+19
2012-09-15libcore: fix whitespace in str testErick Tryzelaar-1/+1
2012-09-14Add core::reflect, start migrating core::repr to use it. Tidy up various ↵Graydon Hoare-2/+3
Repr types.
2012-09-13s/vec::as_buf/vec::as_imm_buf/, fix comment, remove set.rsNiko Matsakis-2/+2
hat tip to @jruderman
2012-09-12Rename str::unsafe to str::rawBrian Anderson-35/+35
2012-09-12Rename vec::unsafe to vec::rawBrian Anderson-7/+7
2012-09-12fixup mutability of vec::each, make iter_bytes pureNiko Matsakis-1/+7
also, change DVec() to work with imm vectors rather than mut ones
2012-09-11Make moves explicit in argumentsTim Chevalier-7/+5
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-1/+1
2012-09-10rustc: Stop calling cmp shape glue in trans.Patrick Walton-0/+7
XFAIL's alt-borrowed_str for now. Will need to fix this up in the future.
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-14/+3
Only called for string patterns.
2012-09-07libcore: Make str_eq not break with coretestPatrick Walton-0/+17
2012-09-07rustc: Add a str_eq lang item for pattern matchingPatrick Walton-0/+1
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+6
2012-09-05libcore: Make to_upper() and to_lower() purePatrick Walton-4/+4
2012-09-05Start making moves explicit in libcoreTim Chevalier-24/+22
This is in preparation for issue 2633. Replaced implicit moves that rely on last-use with explicit moves in char, float, and str.
2012-09-05Add str::trim{_,_left_,_right_}chars.Graydon Hoare-0/+79
2012-09-04libcore: Make as_bytes_slice() not include the null bytePatrick Walton-1/+10
2012-09-04add test for eq_slice fixAndrew Paseltiner-0/+7