about summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Fix cosmetics for fail!() callsMarvin Löbel-1/+1
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-2/+10
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-8/+8
Fix for #3356
2013-05-10test: Use the new `for` protocolAlex Crichton-2/+2
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-8/+8
2013-05-10core: Use the new `for` protocolAlex Crichton-23/+410
2013-05-09libcore: rename vec::each(variable) to variable.eachYoungmin Yoo-4/+4
2013-05-08Remove #[cfg(notest)] and use #[cfg(not(test))] to cooincide with #[cfg(debug)]Zack Corr-17/+17
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-15/+132
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-02libcore: optimize string joining routines.Huon Wilson-12/+106
This makes concat/connect/connect_slices about 20% faster, and takes `repeat` from O(n^2) to O(n), and lowers the constant factor.
2013-05-02core: inlining on common functionsHuon Wilson-3/+26
2013-04-30new borrow checker (mass squash)Niko Matsakis-12/+0
2013-04-29librustc: Remove `ptr::addr_of`.Patrick Walton-1/+2
2013-04-24Fixed typo... And a billion other things.Marvin Löbel-1/+0
2013-04-24Removed ascii functions from other modulesMarvin Löbel-59/+0
Replaced str::to_lowercase and str::to_uppercase
2013-04-22auto merge of #5980 : Kimundi/rust/ascii-encoding, r=thestingerbors-28/+25
Added Ascii type to use for byte inputs that are known to contain Ascii only.
2013-04-22Moved ascii out of strMarvin Löbel-13/+0
Removed deriving Ord, which allowed to remove the stage markers
2013-04-20core: remove unused 'mut' variablesAlex Crichton-3/+3
2013-04-20Added Ascii typeMarvin Löbel-2/+15
2013-04-20Made unsafely safe functions unsafe again, for safetyMarvin Löbel-4/+4
2013-04-20Cleaned up case related functions a bitMarvin Löbel-22/+19
2013-04-20Replaced many instances of reinterpret_cast with transmuteMatthijs Hofstra-9/+9
2013-04-19core: clean up tests (mostly unused unsafe blocks)Alex Crichton-2/+2
2013-04-19librustc: WIP patch for using the return value.Patrick Walton-0/+9
2013-04-19librustc: Optimize metadata::decoder::item_name.Patrick Walton-0/+9
2013-04-19libcore: clarify documentation for char_at(_reverse)Huon Wilson-4/+4
2013-04-18core: add a str iteratorHuon Wilson-0/+56
2013-04-14core: remove unnecessary unsafe blocks/functionsAlex Crichton-25/+19
2013-04-12auto merge of #5827 : ↵bors-1/+5
nikomatsakis/rust/issue-5656-change-meaning-of-borrowed-self, r=pcwalton See #5656 for details. r? @pcwalton
2013-04-11Add example for str::subslice_offsetMarvin Löbel-0/+19
2013-04-11Added str::from_slice_with_null() to cast a &[u8] to &strMarvin Löbel-8/+128
Added str::subslice_offset() Renamed slice_bytes_uniqe to slice_bytes_owned
2013-04-10Reason about nested free variables that appear in a functionNiko Matsakis-1/+5
signature. In a nutshell, the idea is to (1) report an error if, for a region pointer `'a T`, the lifetime `'a` is longer than any lifetimes that appear in `T` (in other words, if a borrowed pointer outlives any portion of its contents) and then (2) use this to assume that in a function like `fn(self: &'a &'b T)`, the relationship `'a <= 'b` holds. This is needed for #5656. Fixes #5728.
2013-04-08Removing no longer needed unsafe blocksAlex Crichton-34/+24
2013-04-03Removing mut fields from vec.rs, at_vec.rs, str.rs, unstable.rs, and cell.rs.Matthijs Hofstra-2/+2
2013-03-31Fix underflow in char_range_at_reverseMarvin Löbel-2/+15
Added char_range_at_reverse underflow test
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-307/+307
2013-03-28Removing unused importsAlex Crichton-2/+2
2013-03-28Unbreak 'rustc --help'Marvin Löbel-1/+2
2013-03-27add a TotalEq traitDaniel Micay-1/+25
2013-03-26librustc: Remove obsolete syntaxPatrick Walton-16/+42
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-37/+49
2013-03-26libcore: Change `[const T]` to `const [T]` everywherePatrick Walton-3/+3
2013-03-26Added more missing lifetime annotationsMarvin Löbel-8/+8
2013-03-26Added missing lifetime annotations, doc and whitespace cleanupsMarvin Löbel-66/+66
2013-03-26Fixed all use sites and testsMarvin Löbel-137/+141
2013-03-26Isolated bug, static vector seems to behave differently than fixed sized oneMarvin Löbel-30/+0
2013-03-26Switched over a bunch of splitting funktions to non-allocating iteratorsMarvin Löbel-53/+61
2013-03-26pre-rebase commitMarvin Löbel-99/+102
2013-03-26Moved float str buffer constants to the strconv moduleMarvin Löbel-8/+0