about summary refs log tree commit diff
path: root/src/lib/io.rs
AgeCommit message (Collapse)AuthorLines
2011-03-31rustc: Use the crate index to look up defsPatrick Walton-0/+11
2011-03-31stdlib: Add a write_be_uint() function to writersPatrick Walton-0/+14
2011-03-25rustc: Look up names in "use"d cratesPatrick Walton-0/+9
2011-03-25stdlib: Implement a memory buffer reader, untested at the momentPatrick Walton-22/+61
2011-03-25stdlib: Separate basic I/O reading functionality into a separate buf_reader ↵Patrick Walton-24/+81
object, like writing
2011-03-25Start making the standard-lib utf-8 awareMarijn Haverbeke-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.
2011-03-22stdlib: Provide a function to extract the underlying buf_writer from a writerPatrick Walton-0/+9
2011-03-22stdlib: Add a convenience method for opening paths as a FILEPatrick Walton-0/+10
2011-03-22stdlib: Make writers seekable; switch file writers to the C FILE interface ↵Patrick Walton-12/+87
to make this work
2011-03-21Add a binding to ftell()Patrick Walton-0/+4
2011-03-20Add slightly nicer failure message to io.rs when it can't open a file.Graydon Hoare-1/+4
2011-03-16Remove uses of 'break' in std lib; rustc doesn't support it yet, this is ↵Graydon Hoare-2/+3
easier for now.
2011-03-14Add functionality for running external programs to the std libMarijn Haverbeke-1/+18
See lib/run_program.rs.
2011-03-14Extend stream functionalityMarijn Haverbeke-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.
2011-03-14Add basic file-system functionalityMarijn Haverbeke-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.
2011-03-09Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for ↵Graydon Hoare-4/+1
root within std.rc anyway)
2011-03-09Have the pretty-printer take a writer stream as argumentMarijn Haverbeke-21/+22
It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
2011-03-09Add stdout_writer and string_writer to std.ioMarijn Haverbeke-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.
2011-03-07Add a pretty-printerMarijn Haverbeke-13/+17
Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
2011-03-06Change io.fileflag to a tag type. Remove FIXMEBrian Anderson-19/+8
2011-02-22Rename std._io to std.io since 'io' is no longer a keywordBrian Anderson-0/+183