Snap! Websites
An Open Source CMS System in C++
#include <stream.h>
This function sets up the input file to the standard input of the process. In that case the filename is set to "-". However, there is not size available.
The function first calls close() to make sure that any previous call to standard_input() or open() get cleaned up.
Definition at line 677 of file stream.cpp.
References as2js::Input::get_position(), and as2js::Position::set_filename().
This function reads the next character from the input. In most cases this reads one or more bytes from the input file, and then it converts those bytes in a character using a filter.
This function does not return Input::INPUT_NAC. Instead it reads as much data as it can and returns the next character, no matter what. However, it may return EOF if the end of the file is reached, or ERR if a character in the stream is not valid. There are two types of invalid characters: (1) numbers that are outside of the Unicode range (0 .. 0x010FFFF) or a UTF-16 surrogate in a format that does not support such surrogate (UTF-8, UTF-32), and (2) byte sequences that end before a valid character can be formed (missing surrogate, invalid UTF-8).
Reimplemented in as2js::StringInput.
Definition at line 609 of file stream.cpp.
References as2js::Input::f_filter, as2js::Input::get_byte(), as2js::Input::INPUT_EOF, as2js::Input::INPUT_ERR, and as2js::Input::INPUT_NAC.
Referenced by as2js::Input::getc().
This function returns the next byte found in the standard input stream.
If the input stream can end and the end was reached, then INPUT_EOF is returned.
Reimplemented from as2js::Input.
Definition at line 693 of file stream.cpp.
References as2js::Input::INPUT_EOF.
The stream manages a position object. The call can use this function to retrieve a read/write version of the current position.
Definition at line 532 of file stream.cpp.
References as2js::Input::f_position.
Referenced by as2js::StandardOutput::internal_write(), as2js::FileOutput::internal_write(), as2js::FileInput::open(), as2js::FileOutput::open(), StandardInput(), as2js::StandardOutput::StandardOutput(), and as2js::StringInput::StringInput().
The stream manages a position object. The call can use this function to retrieve a read-only version of the current position.
Definition at line 545 of file stream.cpp.
References as2js::Input::f_position.
This function retrieves the next character from the input object.
If the caller used the ungetc() function, then the characters that were ungotten are returned first in the opposite order (FILO).
Definition at line 560 of file stream.cpp.
References as2js::Input::f_unget, and as2js::Input::filter_getc().
This function saves the specified character c
in a buffer of the Input object. The next getc() call will first return that last character the caller unget.
Definition at line 580 of file stream.cpp.
References as2js::Input::f_unget.
Definition at line 155 of file stream.h.
Referenced by as2js::Input::filter_getc(), as2js::StringInput::filter_getc(), get_byte(), as2js::FileInput::get_byte(), as2js::DecodingFilterDetect::get_char(), and as2js::DecodingFilter::getc().
Definition at line 157 of file stream.h.
Referenced by as2js::Input::filter_getc(), as2js::DecodingFilterUTF8::get_char(), as2js::DecodingFilterUTF16LE::get_char(), as2js::DecodingFilterUTF16BE::get_char(), as2js::DecodingFilterUTF32LE::get_char(), as2js::DecodingFilterUTF32BE::get_char(), and as2js::DecodingFilterUTF16::next_char().
Definition at line 156 of file stream.h.
Referenced by as2js::Input::filter_getc(), as2js::DecodingFilterUTF8::get_char(), as2js::DecodingFilterUTF16LE::get_char(), as2js::DecodingFilterUTF16BE::get_char(), as2js::DecodingFilterUTF32LE::get_char(), as2js::DecodingFilterUTF32BE::get_char(), as2js::DecodingFilterDetect::get_char(), and as2js::DecodingFilterUTF16::next_char().
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.
Snap! Websites
An Open Source CMS System in C++