|
Bond 0.9
Bond Standard Library API Documentation
|
Enumerations | |
| enum | Flags { BoolAlpha = 1 << 0 , ShowBase = 1 << 1 , ShowPoint = 1 << 2 , SkipWhite = 1 << 3 , Zero = 1 << 4 , Dec = 1 << 5 , Hex = 1 << 6 , Oct = 1 << 7 , Fixed = 1 << 8 , Scientific = 1 << 9 , Left = 1 << 10 } |
| Format flags that modify how InputStream and OutputStream interpret input and format output. They are combined into a bitmask. More... | |
| enum | Constants { Eof = -1 } |
| Constants used by the I/O functions. More... | |
| enum Bond::IO::Constants |
Constants used by the I/O functions.
| Enumerator | |
|---|---|
| Eof | The value returned by InputStream::Get when the end of the stream has been reached. |
| enum Bond::IO::Flags |
Format flags that modify how InputStream and OutputStream interpret input and format output. They are combined into a bitmask.
| Enumerator | |
|---|---|
| BoolAlpha | Read and write bool values as the strings "true" and "false". |
| ShowBase | Write base 16 and base 8 integers with a "0x" or "0" prefix. |
| ShowPoint | Always write a decimal point in floating-point values, and keep trailing zeros when neither IO::Fixed nor IO::Scientific is set. |
| SkipWhite | Skip whitespace before reading a character with InputStream::ScanC, or a bool with InputStream::ScanB when IO::BoolAlpha is set. The other formatted reads always skip leading whitespace. |
| Zero | Write numbers padded to the left with zeros instead of spaces. |
| Dec | Read integers in base 10. Takes precedence over IO::Hex and IO::Oct when reading, but not when writing. Integers are written in base 10 unless IO::Hex or IO::Oct is set. |
| Hex | Read and write integers in base 16. Takes precedence over IO::Oct. |
| Oct | Read and write integers in base 8. |
| Fixed | Write floating-point values in decimal notation. Takes precedence over IO::Scientific. |
| Scientific | Write floating-point values in scientific notation. |
| Left | Write output with left justification. |