Patrick Walton
|
b33f0df152
|
stdlib: Make writers seekable; switch file writers to the C FILE interface to make this work
|
2011-03-22 16:40:22 -07:00 |
|
Patrick Walton
|
a9ba76d52a
|
Fix bug in string comparison. std.rc typechecks now.
|
2011-03-18 14:15:27 -07:00 |
|
Patrick Walton
|
ea7197e2cf
|
rustc: Add str_from_cstr() and str_from_buf() functions to the standard library, as well as a test case
|
2011-03-16 18:42:08 -07:00 |
|
Graydon Hoare
|
54587bdccb
|
Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. Tweak std lib vec fns in process.
|
2011-03-16 14:58:02 -07:00 |
|
Marijn Haverbeke
|
c731d625fe
|
Add basic file-system functionality
std.fs.list_dir will list the files in a directory, std.fs.file_is_dir
will, given a pathname, determine whether it is a directory or not.
|
2011-03-14 14:57:13 -07:00 |
|
Graydon Hoare
|
11a10c7a7b
|
Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for root within std.rc anyway)
|
2011-03-09 17:29:18 -08:00 |
|
Brian Anderson
|
330c9c6c35
|
Make _str.bytes use _vec.init_fn. Remove FIXME.
|
2011-03-06 15:13:28 -08:00 |
|
Graydon Hoare
|
001d7bfa17
|
Add _str.starts_with and ends_with.
|
2011-01-03 20:39:33 -08:00 |
|
Graydon Hoare
|
3504f4a4bf
|
Sort methods in object types.
|
2010-12-21 16:43:28 -08:00 |
|
Graydon Hoare
|
89946609f2
|
Support a special const-value refcount, use it for const strings.
|
2010-11-09 14:15:07 -08:00 |
|
Graydon Hoare
|
2880ecd73f
|
Reformat standard library; no code changes.
|
2010-09-22 15:44:13 -07:00 |
|
Graydon Hoare
|
e0f682e5fb
|
Add some basic string functions: index, rindes, find, substr, split, concat, connect.
|
2010-09-22 15:27:40 -07:00 |
|
Graydon Hoare
|
47501f1659
|
Make _str.eq suitable for map.hashmap; add _str.hash that does simple djb-hash.
|
2010-08-24 09:59:02 -07:00 |
|
Roy Frostig
|
2da4fecacd
|
Test the buffered reader and writer in _io.
|
2010-08-20 12:57:38 -07:00 |
|
Roy Frostig
|
f307688bf4
|
Add native vec[u8] to str converter. Put in workaround for leak in str to vec[u8] converter. Add testcase exercising both. Drive-by fix a potential array-out-of-bounds write on rust_str buffers.
|
2010-08-11 16:06:45 -07:00 |
|
Jeffrey Yasskin
|
3f6e8ffe64
|
Implement _str.len() to return the number of bytes, rename it to byte_len(),
and add a test.
|
2010-08-06 17:29:21 -07:00 |
|
Graydon Hoare
|
935b4347e2
|
Mop up workarounds in stdlib no longer required as issue #93 is closed.
|
2010-08-05 10:10:39 -07:00 |
|
Roy Frostig
|
718c0b5963
|
Add to std._io some formatter/type-specific-writer mechanism. Make a few type-specific buffered writers as wrappers of buf_writer.
|
2010-08-04 23:09:33 -07:00 |
|
Patrick Walton
|
1ac01e16cf
|
Ensure that functions that should return a value do; issue 41
|
2010-07-16 15:34:25 -07:00 |
|
Graydon Hoare
|
40d6aacb82
|
Add differently-typed refcount synonyms to _str and _vec.
|
2010-07-13 14:23:49 -07:00 |
|
Graydon Hoare
|
f360d222c8
|
Uint-ify various bits of _str and _vec, enrich _vec a bit.
|
2010-07-05 14:42:12 -07:00 |
|
Graydon Hoare
|
d6b7c96c3e
|
Populate tree.
|
2010-06-23 21:03:09 -07:00 |
|