summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2012-03-02std: vec::to_ptr -> vec::unsafe::to_ptrBrian Anderson-1/+1
2012-02-29std: DeCamelCase fs::splitDirnameBasenameBrian Anderson-3/+3
2012-02-29libstd: Skip trailing whitespaces after JSON valueTycho Sci-12/+9
2012-02-29libstd: Skip trailing whitespaces after outer rparenTycho Sci-2/+15
This makes "{ \"foo\": 1 }\n" and "[ 1 ]\n" valid json string
2012-02-28std: rewrite json.rs to fix bugs and use readers/writersErick Tryzelaar-214/+653
Our json implementation did not conform to the spec, and was missing support for escpaed characters and exponental numbers. This fixes it, and adds support for reading/writing json directly from/to a stream. There are two things left unimplemented. We could use a "to_json" iface/impl, but that really needs traits to cut down on code duplication. The other is it wouldn't be that not that hard to turn this implementation into a event driven parser like YAJL, but I ran into some type-inference bugs, so I cut that out. It'd be nice to revisit this in the future though.
2012-02-28core/std: whitespace fixes.Erick Tryzelaar-2/+3
2012-02-28std: Add helpers to simplify making str io::writersErick Tryzelaar-0/+13
2012-02-28std: Ignore uv tests on FreeBSDBrian Anderson-0/+2
2012-02-28changing rust loop to 1 threadJeff Olson-1/+1
2012-02-28add uv::loop_delete()Jeff Olson-30/+67
because of the last change, the loop ptr is no longer cleaned up when the loop exits. This api call addresses that. Sadly, the loop ptr is not "reusable" across multiple calls to uv::run().
2012-02-28correcting for libuv behavior that differs between linux & windowsJeff Olson-4/+34
net complexity increase :/
2012-02-28moving new uv stuff into uv.rs and rust_uv.cppJeff Olson-882/+521
- removing the remains of uvtmp.rs and rust_uvtmp.rs - removing the displaced, low-level libuv bindings in uv.rs and rust_uv.cpp
2012-02-28trailing whitespace fixesJeff Olson-12/+10
2012-02-28finishing up simple uv_timer implJeff Olson-22/+160
as it stands, basic async nad timer support is added
2012-02-28cleaning up uv_async stuff and stubbing uv_timerJeff Olson-38/+188
2012-02-28removed hello world and added uv_async_*Jeff Olson-39/+117
2012-02-28everything is laid out and working through a basic hwJeff Olson-0/+198
the core impl is there, with a async handle in place to take incoming operations from user code. No actual uv handle/operations are implemented yet, though.
2012-02-28add ability to run multi-crate tests, run tests with --inlineNiko Matsakis-1/+1
2012-02-28add debugging mode which emits more verbose infoNiko Matsakis-13/+59
2012-02-27std: Make merge_sort fasterBrian Anderson-15/+27
2012-02-24Encode/decode AST into metadata, re-instantiate inlined itemsNiko Matsakis-118/+310
2012-02-23Finish cleanup of core::strMarijn Haverbeke-27/+19
Closes #1849
2012-02-23Various cleanups and optimizations in core::strMarijn Haverbeke-14/+6
2012-02-23(core::str) rename substr_len_bytes to substr_len, and delete unused ↵Kevin Cantu-3/+3
byte_index[_from]
2012-02-23(core::str) remove len_bytes aliasKevin Cantu-30/+30
2012-02-23(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes ↵Kevin Cantu-3/+3
with find[_from]
2012-02-23(core::str) replace byte_index[_from] with index[_from]Kevin Cantu-10/+10
2012-02-23(core::str) do some replacementsKevin Cantu-4/+4
2012-02-23(core::char) rename slice -> slice_charsKevin Cantu-11/+12
2012-02-23(core::str) rename rindex -> rindex_charsKevin Cantu-2/+2
2012-02-23(core::str) mostly rename len -> len_charsKevin Cantu-18/+18
2012-02-22Make the various from_str functions return optionsMarijn Haverbeke-3/+6
So that they can be used with user input without causing task failures. Closes #1335
2012-02-22Remove preconditions from librariesMarijn Haverbeke-23/+5
Closes #1805
2012-02-20core: New task APIBrian Anderson-14/+6
2012-02-18core: When running tests sequentially, print the test name before running itBrian Anderson-2/+11
Useful for debugging hanging tests
2012-02-18rt: rename nano_time() builtin to match time::precise_time_ns()Chris Peterson-2/+2
2012-02-18std: Add tests for time moduleChris Peterson-0/+47
Tested on OSX and Windows.
2012-02-18std: Expand doc comments for time moduleChris Peterson-6/+23
2012-02-17std: Add some env() and getenv() testsChris Peterson-9/+46
2012-02-17std: Fix env() assert when an environment variable's value contains a '=' charChris Peterson-1/+1
2012-02-15Rewrite exhaustiveness checkerMarijn Haverbeke-8/+12
Issue #352 Closes #1720 The old checker would happily accept things like 'alt x { @some(a) { a } }'. It now properly descends into patterns, checks exhaustiveness of booleans, and complains when number/string patterns aren't exhaustive.
2012-02-15Replace some explicit fails with 'alt check' invocationsMarijn Haverbeke-3/+1
2012-02-14Merge pull request #1831 from killerswan/str_fixesBrian Anderson-1/+1
(core::str) changes to find / find_bytes
2012-02-13add serialization library; convert ebml lib to use u64 internallyNiko Matsakis-122/+168
2012-02-13(core::str) add find_bytes and export it...Kevin Cantu-1/+1
2012-02-12(core::str) rename byte_len_range -> substr_len_bytes andKevin Cantu-5/+5
rename char_len_range -> substr_len_chars
2012-02-12(core::str) rename byte_len -> len_bytes and rename char_len -> lenKevin Cantu-33/+34
2012-02-12(core::str) move push_byte, push_bytes, pop_byte, and shift_byte into ↵Kevin Cantu-3/+3
str::unsafe
2012-02-11using str::rindex...Kevin Cantu-17/+20
2012-02-11using str::index...Kevin Cantu-6/+4