Graydon Hoare
|
5bf185b499
|
Port fsync, waitpid and remove_file to core::{os,libc}.
|
2012-03-05 14:00:44 -08:00 |
|
Brian Anderson
|
2d7750bc30
|
core: Fix os::load_self types on FreeBSD
|
2012-03-02 22:43:56 -08:00 |
|
Graydon Hoare
|
5812bebf87
|
Sadly, vec::init_elt_mut vanished since last (rushed) rebase.
|
2012-03-02 18:53:06 -08:00 |
|
Graydon Hoare
|
dafd649806
|
First cut at consolidated core::os module built on core::libc.
|
2012-03-02 18:46:13 -08:00 |
|
Brian Anderson
|
3ed6f6520f
|
core: Remove _mut functions from vec
Instead, use vec::to_mut/from_mut to transform vectors in place as
needed.
|
2012-03-02 15:49:49 -08:00 |
|
Graydon Hoare
|
47e7a05a28
|
Add some utf16 routines for OS API interop.
|
2012-03-02 15:47:40 -08:00 |
|
Niko Matsakis
|
def72bda47
|
retool inline encoding to handle methods, fix tests
|
2012-03-02 06:47:25 -08:00 |
|
Brian Anderson
|
99f231f347
|
core: Change a number of arguments in vec to const vecs
|
2012-02-29 18:13:29 -08:00 |
|
Niko Matsakis
|
7d0958f70f
|
add the ability to snag the frame so we can verify that we are inlining
|
2012-02-29 11:54:47 -08:00 |
|
Patrick Walton
|
362f23641a
|
libcore: Remove vec::to_ptr in favor of vec::unsafe::to_ptr. Closes #1829.
|
2012-02-28 20:43:39 -08:00 |
|
Erick Tryzelaar
|
8cc23aab6d
|
expose float::pow_with_uint.
|
2012-02-28 18:00:50 -08:00 |
|
Erick Tryzelaar
|
6865df2611
|
core/std: whitespace fixes.
|
2012-02-28 18:00:50 -08:00 |
|
Niko Matsakis
|
e65c39c100
|
add #[inline] to vec::iter
|
2012-02-28 06:31:29 -08:00 |
|
Graydon Hoare
|
324ecb58a7
|
Add libc module to libcore and utility file to help generate it.
|
2012-02-27 18:34:42 -08:00 |
|
Niko Matsakis
|
f3ca50c9ca
|
Encode/decode AST into metadata, re-instantiate inlined items
|
2012-02-24 20:46:27 -08:00 |
|
Marijn Haverbeke
|
780f8277f4
|
Finish cleanup of core::str
Closes #1849
|
2012-02-23 17:00:19 +01:00 |
|
Marijn Haverbeke
|
1d2b4b97ed
|
Optimize str::replace
|
2012-02-23 17:00:19 +01:00 |
|
Marijn Haverbeke
|
d802c1fbd2
|
Various cleanups and optimizations in core::str
|
2012-02-23 17:00:19 +01:00 |
|
Marijn Haverbeke
|
35e9192762
|
Make str::pop_char and str::unsafe::pop_byte efficient
O(1) rather than O(string len)
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
c2984b46b4
|
(core::str) comments
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
961b6446b6
|
(core::str) rename ++
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
c3318f29fe
|
(core::str) rename substr_len_bytes to substr_len, and delete unused byte_index[_from]
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
7782f5d692
|
(core::str) remove len_bytes alias
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
1b957c0942
|
(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes with find[_from]
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
cec053487c
|
(core::str) stop using index_chars
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
6ea3d7935e
|
(core::str) replace byte_index[_from] with index[_from]
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
280633a728
|
(core::str) do some replacements
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
2756a61e34
|
(core::str) add index, index_from, rindex which return byte positions of chars; rename find to find_chars; add fixmes to delete byte_index, byte_index_from
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
e1d04e0062
|
(core::str) add a safe byte slice and maybe_slice ++
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
7c78b7dfed
|
(core::str) add a safe byte slice and maybe_slice
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
454b53a7c2
|
(core::char) rename slice -> slice_chars
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
1cd5a0945a
|
(core::str) rename rindex -> rindex_chars
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
969fdf419c
|
(core::str) rename index -> index_chars
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
8ea96169ff
|
(core::str) make len an alias for len_bytes ++
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
669ff690fd
|
(core::str) make len an alias for len_bytes
|
2012-02-23 17:00:19 +01:00 |
|
Kevin Cantu
|
98447f5236
|
(core::str) mostly rename len -> len_chars
|
2012-02-23 17:00:19 +01:00 |
|
Marijn Haverbeke
|
a3b655f8e3
|
Fix uint/u64 confusion
Causes a failure on 32-bit platforms
|
2012-02-22 13:44:55 +01:00 |
|
Marijn Haverbeke
|
ffd50b9cdf
|
Make the various from_str functions return options
So that they can be used with user input without causing task
failures.
Closes #1335
|
2012-02-22 13:18:15 +01:00 |
|
Marijn Haverbeke
|
72373438d2
|
Add core::to_str module
Provides a central iface for the various stringification
functions.
|
2012-02-22 13:06:38 +01:00 |
|
Marijn Haverbeke
|
ad03761a97
|
Remove preconditions from libraries
Closes #1805
|
2012-02-22 11:47:47 +01:00 |
|
Brian Anderson
|
a896eb326e
|
core: Fix unused variable warning
|
2012-02-21 14:25:51 -08:00 |
|
Brian Anderson
|
6527fc3925
|
core: Fix to_str_exact for floats with no decimal component
|
2012-02-21 14:25:31 -08:00 |
|
Brian Anderson
|
910a32c7c7
|
core: Add option::unwrap
This function uses some unsafe code to move the value out of an option.
|
2012-02-21 13:55:50 -08:00 |
|
Brian Anderson
|
9691ce18a2
|
core: Resolve a FIXME in str module
|
2012-02-21 01:03:13 -08:00 |
|
Brian Anderson
|
4601810747
|
core: Remove a useless test from option mod
|
2012-02-20 22:43:33 -08:00 |
|
Brian Anderson
|
4220dcf1e9
|
core: New task API
|
2012-02-20 18:58:04 -08:00 |
|
Brian Anderson
|
6b280c61ce
|
core: Export future mod
|
2012-02-18 23:03:26 -08:00 |
|
Brian Anderson
|
23d36be1e9
|
core: Define futures in terms of local functions, of which port::recv is one possibility
|
2012-02-18 15:23:56 -08:00 |
|
Brian Anderson
|
4370188055
|
Merge pull request #1860 from erickt/master
add str::find_from_bytes and str::index_from_bytes
|
2012-02-18 13:17:12 -08:00 |
|
Brian Anderson
|
3411d19369
|
core: Make vec::push faster
This way makes it equivalent to the compiler's vec push, and is a lot
faster than calling vec::grow.
|
2012-02-17 18:15:52 -08:00 |
|