Snap! Websites
An Open Source CMS System in C++
#include <stream.h>
This function initialize a StringInput object with the specified string and line number. By default, line is set to 1 since strings represent code from the start of a file.
Definition at line 780 of file stream.cpp.
References as2js::Input::get_position(), and as2js::Position::reset_counters().
This function bypasses the Input filter since we already have UTF-32 characters in the input string.
Reimplemented from as2js::Input.
Definition at line 796 of file stream.cpp.
References f_pos, f_str, and as2js::Input::INPUT_EOF.
This virtual function is used by the filter_getc() function to retrieve the next character of data from the input stream. The default implementation of the function throws because it should never get called.
Note that it is possible to bypass this function by implementing instead the filter_getc() in your own class.
Reimplemented in as2js::FileInput, and as2js::StandardInput.
Definition at line 652 of file stream.cpp.
Referenced by as2js::Input::filter_getc().
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(), as2js::StandardInput::StandardInput(), as2js::StandardOutput::StandardOutput(), and 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 229 of file stream.h.
Referenced by filter_getc().
Definition at line 228 of file stream.h.
Referenced by filter_getc().
Definition at line 155 of file stream.h.
Referenced by as2js::Input::filter_getc(), filter_getc(), as2js::StandardInput::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++