about summary refs log tree commit diff
path: root/src/lib/_str.rs
AgeCommit message (Collapse)AuthorLines
2011-03-25Start making the standard-lib utf-8 awareMarijn Haverbeke-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.
2011-03-22stdlib: Make writers seekable; switch file writers to the C FILE interface ↵Patrick Walton-2/+11
to make this work
2011-03-18Fix bug in string comparison. std.rc typechecks now.Patrick Walton-1/+1
2011-03-16rustc: Add str_from_cstr() and str_from_buf() functions to the standard ↵Patrick Walton-0/+10
library, as well as a test case
2011-03-16Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare-6/+36
Tweak std lib vec fns in process.
2011-03-14Add basic file-system functionalityMarijn Haverbeke-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.
2011-03-09Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for ↵Graydon Hoare-1/+1
root within std.rc anyway)
2011-03-06Make _str.bytes use _vec.init_fn. Remove FIXME.Brian Anderson-18/+3
2011-01-03Add _str.starts_with and ends_with.Graydon Hoare-0/+29
2010-12-21Sort methods in object types.Graydon Hoare-0/+25
2010-11-09Support a special const-value refcount, use it for const strings.Graydon Hoare-2/+7
2010-09-22Reformat standard library; no code changes.Graydon Hoare-135/+136
2010-09-22Add some basic string functions: index, rindes, find, substr, split, concat, ↵Graydon Hoare-0/+119
connect.
2010-08-24Make _str.eq suitable for map.hashmap; add _str.hash that does simple djb-hash.Graydon Hoare-1/+12
2010-08-20Test the buffered reader and writer in _io.Roy Frostig-0/+16
2010-08-11Add native vec[u8] to str converter. Put in workaround for leak in str to ↵Roy Frostig-4/+31
vec[u8] converter. Add testcase exercising both. Drive-by fix a potential array-out-of-bounds write on rust_str buffers.
2010-08-06Implement _str.len() to return the number of bytes, rename it to byte_len(),Jeffrey Yasskin-5/+10
and add a test.
2010-08-05Mop up workarounds in stdlib no longer required as issue #93 is closed.Graydon Hoare-3/+2
2010-08-04Add to std._io some formatter/type-specific-writer mechanism. Make a few ↵Roy Frostig-0/+19
type-specific buffered writers as wrappers of buf_writer.
2010-07-16Ensure that functions that should return a value do; issue 41Patrick Walton-0/+1
2010-07-13Add differently-typed refcount synonyms to _str and _vec.Graydon Hoare-0/+1
2010-07-05Uint-ify various bits of _str and _vec, enrich _vec a bit.Graydon Hoare-2/+2
2010-06-23Populate tree.Graydon Hoare-0/+23