aboutsummaryrefslogtreecommitdiff
path: root/src/lib/io.rs
Commit message (Collapse)AuthorAgeFilesLines
* rustc: Use the crate index to look up defsPatrick Walton2011-03-311-0/+11
|
* stdlib: Add a write_be_uint() function to writersPatrick Walton2011-03-311-0/+14
|
* rustc: Look up names in "use"d cratesPatrick Walton2011-03-251-0/+9
|
* stdlib: Implement a memory buffer reader, untested at the momentPatrick Walton2011-03-251-22/+61
|
* stdlib: Separate basic I/O reading functionality into a separate buf_reader ↵Patrick Walton2011-03-251-24/+81
| | | | object, like writing
* Start making the standard-lib utf-8 awareMarijn Haverbeke2011-03-251-34/+57
| | | | | | 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: Provide a function to extract the underlying buf_writer from a writerPatrick Walton2011-03-221-0/+9
|
* stdlib: Add a convenience method for opening paths as a FILEPatrick Walton2011-03-221-0/+10
|
* stdlib: Make writers seekable; switch file writers to the C FILE interface ↵Patrick Walton2011-03-221-12/+87
| | | | to make this work
* Add a binding to ftell()Patrick Walton2011-03-211-0/+4
|
* Add slightly nicer failure message to io.rs when it can't open a file.Graydon Hoare2011-03-201-1/+4
|
* Remove uses of 'break' in std lib; rustc doesn't support it yet, this is ↵Graydon Hoare2011-03-161-2/+3
| | | | easier for now.
* Add functionality for running external programs to the std libMarijn Haverbeke2011-03-141-1/+18
| | | | See lib/run_program.rs.
* Extend stream functionalityMarijn Haverbeke2011-03-141-81/+123
| | | | | | Writer and reader streams now come with methods to write and read little-endian numbers. Whether that is the right place for such methods is debatable, but for now, that's where they live.
* Add basic file-system functionalityMarijn Haverbeke2011-03-141-0/+2
| | | | | 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-4/+1
| | | | root within std.rc anyway)
* Have the pretty-printer take a writer stream as argumentMarijn Haverbeke2011-03-091-21/+22
| | | | | It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
* Add stdout_writer and string_writer to std.ioMarijn Haverbeke2011-03-091-23/+48
| | | | | For use by pretty-printer. string_writer API is a bit silly right now, feel free to suggest a cleaner way to do this.
* Add a pretty-printerMarijn Haverbeke2011-03-071-13/+17
| | | | | Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
* Change io.fileflag to a tag type. Remove FIXMEBrian Anderson2011-03-061-19/+8
|
* Rename std._io to std.io since 'io' is no longer a keywordBrian Anderson2011-02-221-0/+183