about summary refs log tree commit diff
path: root/src/lib/str.rs
AgeCommit message (Collapse)AuthorLines
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-961/+0
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-1/+1
2011-11-16Use attributes for native module ABI and link nameHaitao Li-1/+2
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-10str: add escape()Elly Jones-2/+32
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-11-09Rename "c-stack-cdecl" ABI to "cdecl"Brian Anderson-1/+1
2011-11-05[Docfix] lib/str.rs: Applied review suggestions, took the opportunity to ↵David Rajchenbach-Teller-7/+62
improve doc of my new functions.
2011-11-05str.rs: Added functions loop_chars, loop_chars_sub, char_len_range, ↵David Rajchenbach-Teller-8/+63
byte_len_range.
2011-11-03Disallow writing to function arguments againMarijn Haverbeke-1/+1
Remove implicit copying hack. Closes #1118
2011-10-31Rename std::str::chars to iter_charsMarijn Haverbeke-3/+3
2011-10-31Add a way to iterate over a str's chars to std::strMarijn Haverbeke-1/+16
2011-10-28stdlib: Make reinterpret_cast and leak unsafeBrian Anderson-4/+4
2011-10-26Add more std documentationBrian Anderson-2/+356
2011-10-24convert str methods to c-stack-cdeclNiko Matsakis-1/+1
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-3/+5
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-3/+3
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-06Add std::str::containsBrian Anderson-1/+6
2011-09-29stdlib: Un-export str::buf; add a commentPatrick Walton-2/+3
2011-09-29stdlib: Export str::bufPatrick Walton-1/+2
2011-09-15Insert omitted semicolons for statementsMarijn Haverbeke-1/+1
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-10/+10
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-39/+39
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Rename istr-stuff to str in the runtime. Issue #855Brian Anderson-3/+3
2011-09-02Reformat. Issue #855Brian Anderson-116/+96
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-0/+462
2011-09-01Remove std::str. Issue #855Brian Anderson-10/+0
2011-09-01Remove some uses of str_buf builtin. Issue #855Brian Anderson-2/+0
2011-09-01Remove a bunch of string builtins. Issue #855Brian Anderson-6/+0
2011-09-01Delete parts of std::str that are no longer exported. Issue #855Brian Anderson-518/+0
2011-09-01Remove last users of str::sbuf. Issue #855Brian Anderson-2/+2
2011-09-01Remove more functions from std::str. Issue #855Brian Anderson-9/+9
2011-08-31Reexport std::str::alloc. Windows still needs this. Issue #855Brian Anderson-1/+1
2011-08-31Start paring down std::str. Issue #855Brian Anderson-47/+46
2011-08-29Remove obsolete exportsMarijn Haverbeke-1/+0
2011-08-29Implement non-internal ivecsMarijn Haverbeke-3/+3
Vectors are now similar to our old, pre-internal vectors, except that they are uniquely owned, not refcounted. Their name should probably change too, then. I've renamed them to vec in the runtime, will do so throughout the compiler later.
2011-08-25Remove remaining use of 'pred' and make 'pred' a non-reserved word. Huzzah\!Tim Chevalier-2/+2
2011-08-20ReformatBrian Anderson-42/+35
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Port the stdlib to the expr foo::<T> syntax.Erick Tryzelaar-2/+2
2011-08-16Port the stdlib to the decl foo<T> syntax.Erick Tryzelaar-1/+1
2011-08-16Rename std::ivec to std::vecBrian Anderson-7/+7
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-9/+9
2011-08-12Remove a vbuf import from std::strBrian Anderson-1/+0
2011-08-12Rename str::connect_ivec to str::connectBrian Anderson-2/+2
2011-08-12Remove str::connectBrian Anderson-11/+0
2011-08-12Convert str::concat to ivecsBrian Anderson-1/+1
2011-08-12Rename str::split_ivec to str::splitBrian Anderson-2/+2
2011-08-12Remove str::splitBrian Anderson-16/+0
2011-08-12Convert str::from_chars, to_chars to ivecsBrian Anderson-11/+11
2011-08-12Remove str_from_vec runtime functionBrian Anderson-2/+1
2011-08-12Rename std::str::unsafe_from_bytes_ivec to unsafe_from_bytesBrian Anderson-2/+2
2011-08-12Remove std::str::unsafe_from_bytesBrian Anderson-6/+0