summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
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
2012-04-18Add str/& component accessor and test.Graydon Hoare-0/+27
2012-04-14core: Use tilde-fences in docsBrian Anderson-2/+2
Backtick fences don't work for some reason
2012-04-12Remove or annotate FIXMEs in core::strTim Chevalier-16/+12
Trimmed exports in core::str::unsafe. Annotated other FIXMEs. Also moved the test for str::unsafe::from_buf_len inside str_unsafe since it's no longer exported. If it's not good to do that, let me know.
2012-04-09core: Make str::as_bytes handle failure. Closes #2156Brian Anderson-4/+10
2012-04-05Merge pull request #2139 from Jonanin/add_str_lenBrian Anderson-0/+3
Add len to str extensions
2012-04-06Add len to str extensionsJon Morton-0/+3
2012-04-05simplify typing rule for vector addition: use mutability of LHSNiko Matsakis-1/+1
2012-03-29core: Add each, each_char to str::extensionsBrian Anderson-0/+6
2012-03-29core: Add str::each_charBrian Anderson-0/+26
2012-03-29core: Add extension methods for strBrian Anderson-1/+84
2012-03-29core: Don't use upcall_vec_grow from str::push_charBrian Anderson-62/+63
2012-03-29Rewrite str::push_char in rust.Grahame Bowland-28/+67
Avoid crossing to C to reallocate underlying array when possible, if we must we now only cross once per char (not once per byte.)
2012-03-29core: Don't call into the runtime to reserve if we have capacityBrian Anderson-1/+3
2012-03-29core: Add str::capacityBrian Anderson-0/+13
2012-03-29core: Add str::reserve_at_leastBrian Anderson-0/+25
2012-03-29core: Improve docs for str::reserveBrian Anderson-3/+18
2012-03-27Move some code over to iterator-for to see how it performs.Marijn Haverbeke-8/+20