about summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-8/+8
2012-08-05Switch alts to use arrowsBrian Anderson-31/+29
2012-08-02De-duplicate core::hash some, refactor the traits.Graydon Hoare-4/+2
2012-08-02Remove modes from map API and replace with regions.Niko Matsakis-30/+34
API is (for now) mostly by value, there are options to use it by reference if you like. Hash and equality functions must be pure and by reference (forward looking to the day when something like send_map becomes the standard map).
2012-08-01Convert ret to returnBrian Anderson-68/+68
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-4/+4
2012-07-28core: More magic to make core build with --testBrian Anderson-1/+2
2012-07-27core: Trait-ify various overloaded operatorsPatrick Walton-1/+7
2012-07-25More purity to make it easier to borrow strings in format strings.Eric Holk-4/+4
2012-07-25Allow logging slicesEric Holk-0/+4
2012-07-24Add core::hash containing SipHash-2-4 implementation. Re: #1616 and #859.Graydon Hoare-5/+4
2012-07-24Update some str functions to slices, merge as_buf and unpack_slice.Graydon Hoare-77/+70
2012-07-18iterate only over immutable vectors; use newer region notationNiko Matsakis-7/+7
Unfortunately, right now iterating over const vectors is not safe. This is because the callback expects an *immutable* reference (in region terms: &T), not a const reference (&const T). This was not being caught by the type system due to the use of unsafe operations. To fix this, we need to either (1) find a way to parameterize over mutability or (2) add each_const, each_mut etc
2012-07-17rustc: Implement and enforce instance coherencePatrick Walton-1/+3
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-513/+515
#2907.
2012-07-13Make push_str overallocate. Use it in some places that were still doing +=.Michael Sullivan-2/+19
2012-07-11core: Newtype a bunch of types in libcorePatrick Walton-2/+36
2012-07-06Move string append to libraries. Closes #2710.Michael Sullivan-11/+47
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-766/+745
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-4/+4
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-6/+48
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-07-01Convert to new closure syntaxBrian Anderson-67/+66
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-30/+30
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-6/+48
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes. 2. add a script in etc/ to help converting doc-attributes to doc-comments 3. add some functions to core::str to help with (1)
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-131/+131
2012-06-27Removed pretty much all the vector+ from core (issue #2719)Eric Holk-15/+16
2012-06-26More perf tweaks (issue #2719)Eric Holk-3/+3
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-126/+127
2012-06-25Some perf fixes, although vec::slice is still too slow (Issue #2719)Eric Holk-1/+1
2012-06-25core: Convert declarations to not use the trailing 'unsafe' notationBrian Anderson-163/+192
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-2/+2
2012-06-21Move vector addition out of trans and into libcore.Eric Holk-2/+3
2012-06-20Comments only: typosTim Chevalier-1/+1
2012-06-14Comments only: annotate FIXME in core::strTim Chevalier-1/+1
2012-06-12Convert most str and vec fns to slicesErick Tryzelaar-99/+104
2012-06-08Merge pull request #2559 from mozilla/incomingPatrick Walton-3/+18
Incoming
2012-06-08core: "inlune" is not an attributePatrick Walton-1/+1
2012-06-08core: Implement string equal natively to save a call into the shape code. ↵Patrick Walton-2/+17
Shaves a couple of seconds off rustc.
2012-06-08Convert reinterpret_cast + forget to 'transmute'Brian Anderson-14/+5
2012-06-07Use #[cfg(unix)] and #[cfg(windows)] everywhereBrian Anderson-4/+4
2012-06-06miscellaneous pure annotations and other small changes.Niko Matsakis-97/+118
it seems that, to be truly useful, pure fns really need the ability to modify their parameters. alternatively, we could rewrite the functions that modify their arguments to take/return.
2012-06-04Machine types are different from int/uint, etc (Issue #2187)Eric Holk-1/+3
2012-06-02core: Add str::is_alphanumeric fn and methodBrian Anderson-0/+16
2012-06-02add some purity annotations in coreNiko Matsakis-1/+1
2012-05-31Implement 2 kinds of char / str escaping. Use in rustc. Close #2306.Graydon Hoare-0/+52
2012-05-07core: Export str::unsafe::from_buf_len/from_c_str_lenBrian Anderson-0/+2
2012-04-30Revert "Eliminate a copy in syntax::parse::new_parser_from_file"Tim Chevalier-21/+0
This reverts commit 2bb3b63ec4379b812aeceb690d78763ec55d3cbb. (I was confused.)
2012-04-30Eliminate a copy in syntax::parse::new_parser_from_fileTim Chevalier-0/+21
Fixing a FIXME turned out to be pretty involved. I added an io function that returns a unique boxed string (for the contents of a file) rather than a string, and went from there. Also made the src field of codemap a unique boxed string. This doesn't seem to make that much difference in amount of allocation according to valgrind (disappointingly), but I also had to introduce a copy somewhere else pending a new snapshot, so maybe that's it.
2012-04-25More slice use in vec, io, str, ebml, metadata encoder and decoder.Graydon Hoare-0/+12
2012-04-20Add vec::unpack_slice, expose str::unpack_slice.Graydon Hoare-0/+1