about summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
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
2012-03-23Remove char::to_lower, char::to_upper, use libc versions insteadTim Chevalier-11/+14
As per Graydon's comments on #1985: remove char::to_lower and char::to_upper. The str versions of these functions now call libc::tolower and libc::toupper (using wrappers that cast between char and c_char). Not sure how much better that is, but it at least makes it clearer that these functions are Unicode-unsafe.
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-21/+21
2012-03-20core: Rename unsafe::leak to unsafe::forget. Closes #2031Brian Anderson-6/+6
2012-03-19core: Move unsafe conversions to str::unsafeBrian Anderson-41/+43
2012-03-19core: Make converting from a C string unsafeBrian Anderson-4/+4
2012-03-16rustc: Unify impl self types in the opposite order so variance is correctBrian Anderson-3/+3
2012-03-16core: Resolve and remove some FIXMEsBrian Anderson-2/+0
2012-03-16core: Remove str::init_eltBrian Anderson-11/+0
This was added based on my FIXME, but I no longer believe it has a place in core::str, partly because it doesn't follow current naming conventions, and partly because it can be immitated with a one liner using str::from_chars and vec::from_elem. I have replaced the existing uses with said one-liner.
2012-03-16core: Add lots of string docsBrian Anderson-32/+247
2012-03-16core: Remove extra backslashes from docsBrian Anderson-3/+3
2012-03-16core: Doc cleanupBrian Anderson-4/+4
2012-03-16core: Escape some characters in commentsBrian Anderson-4/+4
2012-03-15core: DocsBrian Anderson-1/+24
2012-03-15Address FIXMEs in extfmt / add issue numbersTim Chevalier-0/+11
2012-03-15core: Optimize str::unsafe::slice_bytes. Closes #1995Brian Anderson-1/+10
2012-03-15core: Optimize str::bytesBrian Anderson-1/+5
This compiles down to a memmove. Takes about 1/4 of the time of the old version.
2012-03-15Don't pass Unicode to char::is_upperTim Chevalier-4/+3
2012-03-14core: Add str::from_c_str, from_c_str_len, as_c_strBrian Anderson-5/+30
2012-03-14core: Rename str::from_cstr et. al to from_bufBrian Anderson-22/+22
2012-03-14core:: Eliminate str::sbuf. Replace with *u8Brian Anderson-7/+3
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-1/+1
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
2012-03-09core: Convert to rustdocBrian Anderson-480/+326
2012-03-07add mutability annotations to libcoreNiko Matsakis-47/+55
2012-03-06UTF-16-ify the win32 env routines.Graydon Hoare-5/+5
2012-03-02First cut at consolidated core::os module built on core::libc.Graydon Hoare-1/+1
2012-03-02Add some utf16 routines for OS API interop.Graydon Hoare-0/+128
2012-02-28libcore: Remove vec::to_ptr in favor of vec::unsafe::to_ptr. Closes #1829.Patrick Walton-2/+2
2012-02-23Finish cleanup of core::strMarijn Haverbeke-410/+278
Closes #1849
2012-02-23Optimize str::replaceMarijn Haverbeke-40/+49
2012-02-23Various cleanups and optimizations in core::strMarijn Haverbeke-372/+255
2012-02-23Make str::pop_char and str::unsafe::pop_byte efficientMarijn Haverbeke-14/+15
O(1) rather than O(string len)
2012-02-23(core::str) commentsKevin Cantu-11/+18
2012-02-23(core::str) rename ++Kevin Cantu-2/+2