aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_str.rs
Commit message (Collapse)AuthorAgeFilesLines
* Start making the standard-lib utf-8 awareMarijn Haverbeke2011-03-251-3/+164
| | | | | | Finally implements _str.is_utf8, adds from_chars, from_char, to_chars, char_at, char_len, (push|pop|shift|unshift)_char. Also, proper character I/O for streams.
* stdlib: Make writers seekable; switch file writers to the C FILE interface ↵Patrick Walton2011-03-221-2/+11
| | | | to make this work
* Fix bug in string comparison. std.rc typechecks now.Patrick Walton2011-03-181-1/+1
|
* rustc: Add str_from_cstr() and str_from_buf() functions to the standard ↵Patrick Walton2011-03-161-0/+10
| | | | library, as well as a test case
* Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare2011-03-161-6/+36
| | | | Tweak std lib vec fns in process.
* Add basic file-system functionalityMarijn Haverbeke2011-03-141-0/+5
| | | | | 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.
* Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for ↵Graydon Hoare2011-03-091-1/+1
| | | | root within std.rc anyway)
* Make _str.bytes use _vec.init_fn. Remove FIXME.Brian Anderson2011-03-061-18/+3
|
* Add _str.starts_with and ends_with.Graydon Hoare2011-01-031-0/+29
|
* Sort methods in object types.Graydon Hoare2010-12-211-0/+25
|
* Support a special const-value refcount, use it for const strings.Graydon Hoare2010-11-091-2/+7
|
* Reformat standard library; no code changes.Graydon Hoare2010-09-221-135/+136
|
* Add some basic string functions: index, rindes, find, substr, split, concat, ↵Graydon Hoare2010-09-221-0/+119
| | | | connect.
* Make _str.eq suitable for map.hashmap; add _str.hash that does simple djb-hash.Graydon Hoare2010-08-241-1/+12
|
* Test the buffered reader and writer in _io.Roy Frostig2010-08-201-0/+16
|
* Add native vec[u8] to str converter. Put in workaround for leak in str to ↵Roy Frostig2010-08-111-4/+31
| | | | vec[u8] converter. Add testcase exercising both. Drive-by fix a potential array-out-of-bounds write on rust_str buffers.
* Implement _str.len() to return the number of bytes, rename it to byte_len(),Jeffrey Yasskin2010-08-061-5/+10
| | | | and add a test.
* Mop up workarounds in stdlib no longer required as issue #93 is closed.Graydon Hoare2010-08-051-3/+2
|
* Add to std._io some formatter/type-specific-writer mechanism. Make a few ↵Roy Frostig2010-08-041-0/+19
| | | | type-specific buffered writers as wrappers of buf_writer.
* Ensure that functions that should return a value do; issue 41Patrick Walton2010-07-161-0/+1
|
* Add differently-typed refcount synonyms to _str and _vec.Graydon Hoare2010-07-131-0/+1
|
* Uint-ify various bits of _str and _vec, enrich _vec a bit.Graydon Hoare2010-07-051-2/+2
|
* Populate tree.Graydon Hoare2010-06-231-0/+23