|
| | BufferedInput () |
| |
| | BufferedInput (const BufferedInput &input) |
| | Copy constructor. More...
|
| |
| | BufferedInput (const Input &input) |
| | Construct buffered input from unbuffered input. More...
|
| |
| BufferedInput & | operator= (const Input &input) |
| | Assignment operator from unbuffered input. More...
|
| |
| BufferedInput & | operator= (const BufferedInput &input) |
| | Copy assignment operator. More...
|
| |
| | BufferedInput (FILE *file, file_encoding_type enc, const unsigned short *page=NULL) |
| | Construct buffered input character sequence from an open FILE* file descriptor, using the specified file encoding. More...
|
| |
| | operator bool () |
| |
| size_t | size () |
| | Get the size of the input character sequence in number of ASCII/UTF-8 bytes (zero if size is not determinable from a FILE* or std::istream source). More...
|
| |
| bool | good () |
| | Check if input is available. More...
|
| |
| bool | eof () |
| | Check if input reached EOF. More...
|
| |
| int | peek () |
| | Peek a single character (unsigned char 0..255) or EOF (-1) when end-of-input is reached. More...
|
| |
| int | get () |
| | Get a single character (unsigned char 0..255) or EOF (-1) when end-of-input is reached. More...
|
| |
| size_t | get (char *s, size_t n) |
| | Copy character sequence data into buffer. More...
|
| |
| | Input () |
| | Construct empty input character sequence. More...
|
| |
| | Input (const Input &input) |
| | Copy constructor (with intended "move semantics" as internal state is shared, should not rely on using the rhs after copying). More...
|
| |
| | Input (const char *cstring, size_t size) |
| | Construct input character sequence from a char* string. More...
|
| |
| | Input (const char *cstring) |
| | Construct input character sequence from a NUL-terminated string. More...
|
| |
| | Input (const std::string &string) |
| | Construct input character sequence from a std::string. More...
|
| |
| | Input (const std::string *string) |
| | Construct input character sequence from a pointer to a std::string. More...
|
| |
| | Input (const wchar_t *wstring) |
| | Construct input character sequence from a NUL-terminated wide character string. More...
|
| |
| | Input (const std::wstring &wstring) |
| | Construct input character sequence from a std::wstring (may contain UTF-16 surrogate pairs). More...
|
| |
| | Input (const std::wstring *wstring) |
| | Construct input character sequence from a pointer to a std::wstring (may contain UTF-16 surrogate pairs). More...
|
| |
| | Input (FILE *file) |
| | Construct input character sequence from an open FILE* file descriptor, supports UTF-8 conversion from UTF-16 and UTF-32. More...
|
| |
| | Input (FILE *file, file_encoding_type enc, const unsigned short *page=NULL) |
| | Construct input character sequence from an open FILE* file descriptor, using the specified file encoding. More...
|
| |
| | Input (std::istream &istream) |
| | Construct input character sequence from a std::istream. More...
|
| |
| | Input (std::istream *istream) |
| | Construct input character sequence from a pointer to a std::istream. More...
|
| |
| Input & | operator= (const Input &input) |
| | Copy assignment operator. More...
|
| |
| | operator const char * () const |
| | Cast this Input object to a string, returns NULL when this Input is not a string. More...
|
| |
| | operator const wchar_t * () const |
| | Cast this Input object to a wide character string, returns NULL when this Input is not a wide string. More...
|
| |
| | operator FILE * () const |
| | Cast this Input object to a file descriptor FILE*, returns NULL when this Input is not a FILE*. More...
|
| |
| | operator std::istream * () const |
| | Cast this Input object to a std::istream*, returns NULL when this Input is not a std::istream. More...
|
| |
| | operator bool () const |
| |
| const char * | cstring () const |
| | Get the remaining string of this Input object, returns NULL when this Input is not a string. More...
|
| |
| const wchar_t * | wstring () const |
| | Get the remaining wide character string of this Input object, returns NULL when this Input is not a wide string. More...
|
| |
| FILE * | file () const |
| | Get the FILE* of this Input object, returns NULL when this Input is not a FILE*. More...
|
| |
| std::istream * | istream () const |
| | Get the std::istream of this Input object, returns NULL when this Input is not a std::istream. More...
|
| |
| size_t | size () |
| | Get the size of the input character sequence in number of ASCII/UTF-8 bytes (zero if size is not determinable from a FILE* or std::istream source). More...
|
| |
| bool | assigned () const |
| | Check if this Input object was assigned a character sequence. More...
|
| |
| void | clear () |
| | Clear this Input by unassigning it. More...
|
| |
| bool | good () const |
| | Check if input is available. More...
|
| |
| bool | eof () const |
| | Check if input reached EOF. More...
|
| |
| int | get () |
| | Get a single character (unsigned char 0..255) or EOF (-1) when end-of-input is reached. More...
|
| |
| size_t | get (char *s, size_t n) |
| | Copy character sequence data into buffer. More...
|
| |
| void | file_encoding (file_encoding_type enc, const unsigned short *page=NULL) |
| | Set encoding for FILE* input. More...
|
| |
| file_encoding_type | file_encoding () const |
| | Get encoding of the current FILE* input. More...
|
| |
| void | init () |
| | Initialize the state after (re)setting the input source, auto-detects UTF BOM in FILE* input if the file size is known. More...
|
| |
| void | file_init () |
| | Called by init() for a FILE*. More...
|
| |
| void | wstring_size () |
| | Called by size() for a wstring. More...
|
| |
| void | file_size () |
| | Called by size() for a FILE*. More...
|
| |
| void | istream_size () |
| | Called by size() for a std::istream. More...
|
| |
| size_t | file_get (char *s, size_t n) |
| | Implements get() on a FILE*, is non-blocking if file is non-blocking, get() blocks to read at least one byte. More...
|
| |
| bool | file_read (char *s, size_t n) |
| | Read n bytes into buffer s from file, block when IO is non-blocking, return false when fewer bytes read on failure or eof. More...
|
| |
| bool | file_ready () |
| | Wait for non-blocking file input to be ready and return true or return false for eof and errors, ignore EINTR. More...
|
| |
| void | set_handler (Handler *handler) |
| | Set FILE* handler. More...
|
| |