aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_str.rs
Commit message (Collapse)AuthorAgeFilesLines
* Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke2011-05-121-0/+490
| | | | This should be a snapshot transition.
* Rename std modules to be camelcasedMarijn Haverbeke2011-05-061-501/+0
| | | | (Have fun mergining your stuff with this.)
* Remove 'deprecated mutable...' from our codeMarijn Haverbeke2011-05-051-1/+1
| | | | This should make compilation a bit less noisy.
* Un-revert "Use different syntax for checks that matter to typestate", fixing ↵Patrick Walton2011-05-021-7/+7
| | | | | | the problem. This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118.
* Revert "Use different syntax for checks that matter to typestate"Graydon Hoare2011-05-021-7/+7
| | | | This reverts commit aa25f22f197682de3b18fc4c8ba068d1feda220f. It broke stage2, not sure why yet.
* Use different syntax for checks that matter to typestateTim Chevalier2011-05-021-7/+7
| | | | | | | | | | This giant commit changes the syntax of Rust to use "assert" for "check" expressions that didn't mean anything to the typestate system, and continue using "check" for checks that are used as part of typestate checking. Most of the changes are just replacing "check" with "assert" in test cases and rustc.
* Fix _str.bytes to trivial version.Graydon Hoare2011-04-271-4/+2
|
* Add _str.slice to std libMarijn Haverbeke2011-04-261-2/+6
|
* Remove effect system from src.Graydon Hoare2011-04-191-2/+2
|
* Add support for upper-case hex and binary output to #fmt.Brian Anderson2011-04-131-0/+18
| | | | Only works for uints at present. Necessitated the addition of _str.to_upper.
* 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