summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
2012-12-12core: Remove some uses of 'move'Brian Anderson-31/+31
2012-12-10Add license boilerplate to more files.Graydon Hoare-0/+10
2012-12-09Remove transitional codeBrian Anderson-9/+0
2012-12-04librustc: Implement explicit self for Add and Index; add a hack in the ↵Patrick Walton-0/+9
borrow checker to support this. r=nmatsakis
2012-11-30core: Make core.rc more readable. CleanupBrian Anderson-0/+6
2012-11-28core: Convert some records to structsBrian Anderson-21/+26
2012-11-28Register snapshotsBrian Anderson-78/+0
2012-11-20Remove parentheses from closure argument typesErick Tryzelaar-1/+1
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+78
2012-11-03Remove stage0 stuff that was awaiting snapshotTim Chevalier-36/+0
and re-register snapshots Just removing unneeded code, no review
2012-10-24Implement proper subtyping for region fn types (part of #2263)Niko Matsakis-1/+37
2012-10-23Remove uses of binary move - <- - from tests and librariesTim Chevalier-1/+1
2012-10-19Renaming trait name UniqueStr to TrimmableMahmut Bulut-2/+2
2012-10-18Revert "Simplify str::to_managed"Erick Tryzelaar-2/+3
This reverts commit ac50046a111a1ef6fb58b7e5f368ff6b9b55f89c.
2012-10-18Rename str::to_unique to str::to_owned.Erick Tryzelaar-2/+2
2012-10-18Simplify str::to_managedErick Tryzelaar-3/+2
2012-10-17libsyntax: refactor the parser to consider foreign items as itemsPhilipp Brüschweiler-1/+1
parse_item_or_view_item() would drop visibility if none of the conditions following it would hold. This was the case when parsing extern {} blocks, where the function was only used to parse view items, but discarded the visibility of the first not-view item.
2012-10-17Fix copy warnings in strTim Chevalier-3/+4
2012-10-17Fix copy warnings in strTim Chevalier-8/+8
2012-10-17Merge pull request #3739 from killerswan/usagemsgTim Chevalier-0/+62
Add a module to getopts for verbose option group declaration (and use it in rustc)
2012-10-17Add a module to getopts to support verbose option definitionKevin Cantu-0/+62
This is built on top of the existing functionality, but adds a `groups` module which defines functions allowing the user to specify whole short/long/description groups at once and provides a usage message.
2012-10-17Merge pull request #3706 from erickt/str-with-capacityTim Chevalier-0/+5
libcore: add a str::with_capacity to match the fn in vec
2012-10-13Implement to_managed without using an upcall function, as suggested by brson.Gareth Daniel Smith-9/+4
2012-10-13Add an &str.to_managed method to allow creating non-constant @str values ↵Gareth Daniel Smith-0/+20
(for issue #3433).
2012-10-12Make moves explicit in core testsTim Chevalier-16/+16
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-09libcore: add a str::with_capacity to match the fn in vecErick Tryzelaar-0/+5
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