summary refs log tree commit diff
path: root/src/libcore/str.rs
AgeCommit message (Collapse)AuthorLines
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
2012-02-23(core::str) rename substr_len_bytes to substr_len, and delete unused ↵Kevin Cantu-22/+1
byte_index[_from]
2012-02-23(core::str) remove len_bytes aliasKevin Cantu-52/+47
2012-02-23(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes ↵Kevin Cantu-40/+40
with find[_from]
2012-02-23(core::str) stop using index_charsKevin Cantu-3/+1
2012-02-23(core::str) replace byte_index[_from] with index[_from]Kevin Cantu-2/+4
2012-02-23(core::str) do some replacementsKevin Cantu-2/+3
2012-02-23(core::str) add index, index_from, rindex which return byte positions of ↵Kevin Cantu-15/+76
chars; rename find to find_chars; add fixmes to delete byte_index, byte_index_from
2012-02-23(core::str) add a safe byte slice and maybe_slice ++Kevin Cantu-1/+1
2012-02-23(core::str) add a safe byte slice and maybe_sliceKevin Cantu-0/+77
2012-02-23(core::char) rename slice -> slice_charsKevin Cantu-15/+15
2012-02-23(core::str) rename rindex -> rindex_charsKevin Cantu-8/+8
2012-02-23(core::str) rename index -> index_charsKevin Cantu-9/+7
2012-02-23(core::str) make len an alias for len_bytes ++Kevin Cantu-2/+2
2012-02-23(core::str) make len an alias for len_bytesKevin Cantu-4/+2
2012-02-23(core::str) mostly rename len -> len_charsKevin Cantu-16/+18
2012-02-22Remove preconditions from librariesMarijn Haverbeke-7/+2
Closes #1805