lib/mlrisc-lib/MLRISC/library/stringOutStream.sig
raw| 1 | (* |
| 2 | * This module allows use to bind a streambuf to an outstream. |
| 3 | * We can use this to capture all the output to a stream as a single string. |
| 4 | *) |
| 5 | signature STRING_OUTSTREAM = |
| 6 | sig |
| 7 | type streambuf |
| 8 | |
| 9 | val mkStreamBuf : unit -> streambuf |
| 10 | val getString : streambuf -> string |
| 11 | val setString : streambuf * string -> unit |
| 12 | val openStringOut : streambuf -> TextIO.outstream |
| 13 | |
| 14 | end |