JuliaLang/julia — pull request #2659 by kmsquire (2013-03-23 19:59:46+00:00)
Title: Added peek, peekchar to IOBuffer (partially addresses #2638)

These mimic `peek` and `peekchar` for `IOStream`s.

Note that neither is exported currently, and I didn't change that because of questions about generalizing the interface (see #2638).