Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QTextStream Class Reference

The QTextStream class provides basic functions for reading and writing text using a QIODevice. More...

#include </home/clem/local/src/opie/qmake/include/qtextstream.h>

Inheritance diagram for QTextStream:

Inheritance graph
[legend]
Collaboration diagram for QTextStream:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Encoding {
  Locale, Latin1, Unicode, UnicodeNetworkOrder,
  UnicodeReverse, RawUnicode, UnicodeUTF8
}
enum  {
  skipws = 0x0001, left = 0x0002, right = 0x0004, internal = 0x0008,
  bin = 0x0010, oct = 0x0020, dec = 0x0040, hex = 0x0080,
  showbase = 0x0100, showpoint = 0x0200, uppercase = 0x0400, showpos = 0x0800,
  scientific = 0x1000, fixed = 0x2000
}

Public Member Functions

void setEncoding (Encoding)
void setCodec (QTextCodec *)
QTextCodeccodec ()
 QTextStream ()
 QTextStream (QIODevice *)
 QTextStream (QString *, int mode)
 QTextStream (QString &, int mode)
 QTextStream (QByteArray, int mode)
 QTextStream (FILE *, int mode)
virtual ~QTextStream ()
QIODevicedevice () const
void setDevice (QIODevice *)
void unsetDevice ()
bool atEnd () const
bool eof () const
QTextStreamoperator>> (QChar &)
QTextStreamoperator>> (char &)
QTextStreamoperator>> (signed short &)
QTextStreamoperator>> (unsigned short &)
QTextStreamoperator>> (signed int &)
QTextStreamoperator>> (unsigned int &)
QTextStreamoperator>> (signed long &)
QTextStreamoperator>> (unsigned long &)
QTextStreamoperator>> (float &)
QTextStreamoperator>> (double &)
QTextStreamoperator>> (char *)
QTextStreamoperator>> (QString &)
QTextStreamoperator>> (QCString &)
QTextStreamoperator<< (QChar)
QTextStreamoperator<< (char)
QTextStreamoperator<< (signed short)
QTextStreamoperator<< (unsigned short)
QTextStreamoperator<< (signed int)
QTextStreamoperator<< (unsigned int)
QTextStreamoperator<< (signed long)
QTextStreamoperator<< (unsigned long)
QTextStreamoperator<< (float)
QTextStreamoperator<< (double)
QTextStreamoperator<< (const char *)
QTextStreamoperator<< (const QString &)
QTextStreamoperator<< (const QCString &)
QTextStreamoperator<< (void *)
QTextStreamreadRawBytes (char *, uint len)
QTextStreamwriteRawBytes (const char *, uint len)
QString readLine ()
QString read ()
void skipWhiteSpace ()
int flags () const
int flags (int f)
int setf (int bits)
int setf (int bits, int mask)
int unsetf (int bits)
void reset ()
int width () const
int width (int)
int fill () const
int fill (int)
int precision () const
int precision (int)

Static Public Attributes

static const int basefield = I_BASE_MASK
static const int adjustfield
static const int floatfield

Private Member Functions

long input_int ()
void init ()
QTextStreamoutput_int (int, ulong, bool)
QChar eat_ws ()
uint ts_getline (QChar *)
void ts_ungetc (QChar)
QChar ts_getc ()
uint ts_getbuf (QChar *, uint)
void ts_putc (int)
void ts_putc (QChar)
bool ts_isspace (QChar)
bool ts_isdigit (QChar)
ulong input_bin ()
ulong input_oct ()
ulong input_dec ()
ulong input_hex ()
double input_double ()
QTextStreamwriteBlock (const char *p, uint len)
QTextStreamwriteBlock (const QChar *p, uint len)
 QTextStream (const QTextStream &)
QTextStreamoperator= (const QTextStream &)

Private Attributes

QIODevicedev
int fflags
int fwidth
int fillchar
int fprec
bool doUnicodeHeader
bool owndev
QTextCodecmapper
QTextStreamPrivated
QChar unused1
bool latin1
bool internalOrder
bool networkOrder
void * unused2

Detailed Description

The QTextStream class provides basic functions for reading and writing text using a QIODevice.

The text stream class has a functional interface that is very similar to that of the standard C++ iostream class.

Qt provides several global functions similar to the ones in iostream: Function Meaning bin sets the QTextStream to read/write binary numbers oct sets the QTextStream to read/write octal numbers dec sets the QTextStream to read/write decimal numbers hex sets the QTextStream to read/write hexadecimal numbers endl forces a line break flush forces the QIODevice to flush any buffered data ws eats any available whitespace (on input) reset resets the QTextStream to its default mode (see reset()) qSetW(int) sets the field width to the given argument qSetFill(int) sets the fill character to the given argument qSetPrecision(int) sets the precision to the given argument

Warning:
By default QTextStream will automatically detect whether integers in the stream are in decimal, octal, hexadecimal or binary format when reading from the stream. In particular, a leading '0' signifies octal, i.e. the sequence "0100" will be interpreted as 64.
The QTextStream class reads and writes text; it is not appropriate for dealing with binary data (but QDataStream is).

By default, output of Unicode text (i.e. QString) is done using the local 8-bit encoding. This can be changed using the setEncoding() method. For input, the QTextStream will auto-detect standard Unicode "byte order marked" text files; otherwise the local 8-bit encoding is used.

The QIODevice is set in the constructor, or later using setDevice(). If the end of the input is reached atEnd() returns TRUE. Data can be read into variables of the appropriate type using the operator>>() overloads, or read in its entirety into a single string using read(), or read a line at a time using readLine(). Whitespace can be skipped over using skipWhiteSpace(). You can set flags for the stream using flags() or setf(). The stream also supports width(), precision() and fill(); use reset() to reset the defaults.

See also:
QDataStream

Definition at line 53 of file qtextstream.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
skipws 
left 
right 
internal 
bin 
oct 
dec 
hex 
showbase 
showpoint 
uppercase 
showpos 
scientific 
fixed 

Definition at line 116 of file qtextstream.h.

enum QTextStream::Encoding
 

Locale Latin1 Unicode UnicodeNetworkOrder UnicodeReverse RawUnicode UnicodeUTF8

See setEncoding() for an explanation of the encodings.

Enumeration values:
Locale 
Latin1 
Unicode 
UnicodeNetworkOrder 
UnicodeReverse 
RawUnicode 
UnicodeUTF8 

Definition at line 56 of file qtextstream.h.


Constructor & Destructor Documentation

QTextStream::QTextStream  ) 
 

Constructs a data stream that has no IO device.

Definition at line 263 of file qtextstream.cpp.

References d, init(), Locale, QTextStreamPrivate::NotSet, reset(), setEncoding(), and QTextStreamPrivate::sourceType.

QTextStream::QTextStream QIODevice iod  ) 
 

Constructs a text stream that uses the IO device iod.

Definition at line 275 of file qtextstream.cpp.

References d, dev, init(), QTextStreamPrivate::IODevice, Locale, reset(), setEncoding(), and QTextStreamPrivate::sourceType.

QTextStream::QTextStream QString str,
int  filemode
 

Constructs a text stream that operates on the Unicode QString, str, through an internal device. The filemode argument is passed to the device's open() function; see {QIODevice::mode()}.

If you set an encoding or codec with setEncoding() or setCodec(), this setting is ignored for text streams that operate on QString.

Example:

    QString str;
    QTextStream ts( &str, IO_WriteOnly );
    ts << "pi = " << 3.14; // str == "pi = 3.14"

Writing data to the text stream will modify the contents of the string. The string will be expanded when data is written beyond the end of the string. Note that the string will not be truncated:

    QString str = "pi = 3.14";
    QTextStream ts( &str, IO_WriteOnly );
    ts <<  "2+2 = " << 2+2; // str == "2+2 = 414"

Note that because QString is Unicode, you should not use readRawBytes() or writeRawBytes() on such a stream.

Definition at line 527 of file qtextstream.cpp.

References d, dev, init(), owndev, RawUnicode, reset(), setEncoding(), QTextStreamPrivate::sourceType, QTextStreamPrivate::String, and TRUE.

QTextStream::QTextStream QString str,
int  filemode
 

This constructor is equivalent to the constructor taking a QString* parameter.

Definition at line 546 of file qtextstream.cpp.

References d, dev, init(), owndev, RawUnicode, reset(), setEncoding(), QTextStreamPrivate::sourceType, QTextStreamPrivate::String, and TRUE.

QTextStream::QTextStream QByteArray  a,
int  mode
 

Constructs a text stream that operates on the byte array, a, through an internal QBuffer device. The mode argument is passed to the device's open() function; see {QIODevice::mode()}.

Example:

    QByteArray array;
    QTextStream ts( array, IO_WriteOnly );
    ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14"

Writing data to the text stream will modify the contents of the array. The array will be expanded when data is written beyond the end of the string.

Same example, using a QBuffer:

    QByteArray array;
    QBuffer buf( array );
    buf.open( IO_WriteOnly );
    QTextStream ts( &buf );
    ts << "pi = " << 3.14 << '\0'; // array == "pi = 3.14"
    buf.close();

Definition at line 584 of file qtextstream.cpp.

References QTextStreamPrivate::ByteArray, d, dev, init(), Latin1, owndev, reset(), setEncoding(), QTextStreamPrivate::sourceType, and TRUE.

QTextStream::QTextStream FILE *  fh,
int  mode
 

Constructs a text stream that operates on an existing file handle fh through an internal QFile device. The mode argument is passed to the device's open() function; see {QIODevice::mode()}.

Note that if you create a QTextStream cout or another name that is also used for another variable of a different type, some linkers may confuse the two variables, which will often cause crashes.

Definition at line 606 of file qtextstream.cpp.

References d, dev, QTextStreamPrivate::File, init(), Locale, QIODevice::open(), owndev, reset(), setEncoding(), QTextStreamPrivate::sourceType, and TRUE.

QTextStream::~QTextStream  )  [virtual]
 

Destroys the text stream.

The destructor does not affect the current IO device.

Definition at line 623 of file qtextstream.cpp.

References d, dev, and owndev.

QTextStream::QTextStream const QTextStream  )  [private]
 


Member Function Documentation

bool QTextStream::atEnd  )  const [inline]
 

Returns TRUE if the IO device has reached the end position (end of the stream or file) or if there is no IO device set; otherwise returns FALSE.

See also:
QIODevice::atEnd()

Definition at line 237 of file qtextstream.h.

References QIODevice::atEnd(), dev, and FALSE.

Referenced by BackupAndRestore::backupRootFs(), ConfigDialog::ConfigDialog(), QDawg::createFromWords(), BuzzWord::drawGrid(), eof(), FolderWidget::getAccounts(), LoadInfo::getCpuInfo(), Qsmb::hostSelected(), KateDocument::insertFile(), Opie::Core::ODevice::inst(), IRCMessage::IRCMessage(), OpieTooth::HciConfWrapper::load(), MimeType::loadExtensions(), NetworkSettingsData::loadSettings(), MailFactory::MailFactory(), LibraryDialog::Newlibrary(), Opie::Net::OManufacturerDB::OManufacturerDB(), Opie::Core::OPcmciaSystem::OPcmciaSystem(), TextEdit::openDotFile(), optionsDialog::openSiteList(), ListViewItemConfFile::parseFile(), QSettingsHeading::parseLine(), IRCMessageParser::parseLiteralMode(), IRCMessageParser::parseNumericalNames(), WellenreiterConfigWindow::performAutodetection(), UsbCategory::populate(), CpuCategory::populate(), QSettingsHeading::read(), PackageManagerSettings::readIpkgConfig(), Om3u::readM3u(), Om3u::readPls(), ZoneMap::readZones(), mainWindowWidget::refreshList(), Ipkg::removeStatusEntry(), WLANImp::rescanNeighbourhood(), Qsmb::scan(), Opie::Core::Internal::setCS3Bit(), WExtensions::stats(), Opie::Net::ONetwork::synchronize(), Opie::Core::OPcmciaSystem::synchronize(), OpenEtext::titleFromLibrary(), ts_getline(), and MemoryInfo::updateData().

QTextCodec * QTextStream::codec  ) 
 

Returns the codec actually used for this stream.

If Unicode is automatically detected in input, a codec with name() "ISO-10646-UCS-2" is returned.

See also:
setCodec()

Definition at line 2581 of file qtextstream.cpp.

References QTextCodec::codecForMib(), and mapper.

QIODevice * QTextStream::device void   )  const [inline]
 

Returns the IO device currently set.

See also:
setDevice(), unsetDevice()

Definition at line 234 of file qtextstream.h.

References dev.

Referenced by flush().

QChar QTextStream::eat_ws  )  [private]
 

Definition at line 239 of file qtextstream.cpp.

References ts_getc(), and ts_isspace().

Referenced by input_bin(), input_dec(), input_double(), input_hex(), input_int(), input_oct(), operator>>(), and skipWhiteSpace().

bool QTextStream::eof  )  const [inline]
 

This function has been renamed to atEnd().

See also:
QIODevice::atEnd()

Definition at line 240 of file qtextstream.h.

References atEnd().

Referenced by ZSafe::addCategory(), PackageHandler::addPackageFiles(), OIpkg::availablePackages(), BackupAndRestore::backupUserData(), BenchmarkInfo::BenchmarkInfo(), CalculatorImpl::CalculatorImpl(), PackageHandler::cleanupPackageFiles(), createSymlinks(), WeatherPluginWidget::displayWeather(), NetworkDialog::downloadFile(), ZSafe::editCategory(), TabManager::findInstalledApplication(), OpenEtext::FindTitle(), PmIpkg::getList(), LibraryDialog::httpDownload(), MakefileGenerator::init(), Board::init(), striphtml::initentmap(), OIpkg::installedPackages(), Interfaces::Interfaces(), LibraryDialog::Library(), OIpkg::linkPackageDir(), OIpkg::loadConfiguration(), DingWidget::loadDict(), MultiauthConfig::loadUsers(), MainWindowImp::MainWindowImp(), SubUnit::makeSubUnit(), Passwd::open(), optionsDialog::parseFtpList(), OipkgPackage::parseIpkgFile(), ProjectBuilderMakefileGenerator::pbuilderVersion(), OpieFtp::populateRemoteView(), SystemFile::postDeviceSection(), SystemFile::postNodeSection(), SystemFile::preDeviceSection(), SystemFile::preNodeSection(), QSettings::QSettings(), QMakeProject::read(), DrinkData::read(), ZSafe::readAllEntries(), KVNCBookmarkDlg::readBookmarks(), readLine(), KMolCalc::readMwfile(), Server::readPackageFile(), Interface::refresh(), removeSymlinks(), BackupAndRestore::restore(), DocLnkSearch::searchFile(), TabManager::swapInstalledLocation(), DocLnkItem::toRichText(), OIpkg::unlinkPackage(), WLANImp::WLANImp(), DspMakefileGenerator::writeDspParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), and MetrowerksMakefileGenerator::writeMakeParts().

int QTextStream::fill int  f  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Sets the fill character to f. Returns the previous fill character.

Definition at line 267 of file qtextstream.h.

References fillchar.

int QTextStream::fill  )  const [inline]
 

Returns the fill character. The default value is ' ' (space).

Definition at line 264 of file qtextstream.h.

References fillchar.

Referenced by qSetFill().

int QTextStream::flags int  f  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the stream flags to f. Returns the previous stream flags.

See also:
setf(), unsetf(), flags()

Definition at line 246 of file qtextstream.h.

References fflags.

int QTextStream::flags  )  const [inline]
 

Returns the current stream flags. The default value is 0.

Flag Meaning skipws Not currently used; whitespace always skipped left Numeric fields are left-aligned right Not currently used (by default, numerics are right-aligned) internal Puts any padding spaces between +/- and value bin Output and input only in binary oct Output and input only in octal dec Output and input only in decimal hex Output and input only in hexadecimal showbase Annotates numeric outputs with 0b, 0, or 0x if in bin, oct, or hex format showpoint Not currently used uppercase Uses 0B and 0X rather than 0b and 0x showpos Shows + for positive numeric values scientific Uses scientific notation for floating point values fixed Uses fixed-point notation for floating point values

Note that unless bin, oct, dec, or hex is set, the input base is octal if the value starts with 0, hexadecimal if it starts with 0x, binary if it starts with 0b, and decimal otherwise.

See also:
setf(), unsetf()

Definition at line 243 of file qtextstream.h.

References fflags.

Referenced by input_int(), operator<<(), and output_int().

void QTextStream::init  )  [private]
 

Definition at line 246 of file qtextstream.cpp.

References d, dev, doUnicodeHeader, FALSE, internalOrder, latin1, mapper, networkOrder, QChar::networkOrdered(), owndev, and TRUE.

Referenced by QTextStream().

ulong QTextStream::input_bin  )  [private]
 

Definition at line 1216 of file qtextstream.cpp.

References QChar::digitValue(), eat_ws(), ts_getc(), ts_ungetc(), and val.

Referenced by input_int().

ulong QTextStream::input_dec  )  [private]
 

Definition at line 1250 of file qtextstream.cpp.

References QChar::digitValue(), eat_ws(), ts_getc(), ts_isdigit(), ts_ungetc(), and val.

Referenced by input_int().

double QTextStream::input_double  )  [private]
 

Definition at line 1360 of file qtextstream.cpp.

References buf, eat_ws(), end, i, Init, input, ts_getc(), ts_isdigit(), and ts_ungetc().

Referenced by operator>>().

ulong QTextStream::input_hex  )  [private]
 

Definition at line 1265 of file qtextstream.cpp.

References eat_ws(), ts_getc(), ts_isdigit(), ts_ungetc(), and val.

Referenced by input_int().

long QTextStream::input_int  )  [private]
 

Definition at line 1283 of file qtextstream.cpp.

References basefield, bin, dec, eat_ws(), flags(), hex, input_bin(), input_dec(), input_hex(), input_oct(), oct, ts_getc(), ts_isdigit(), ts_ungetc(), v, and val.

Referenced by operator>>().

ulong QTextStream::input_oct  )  [private]
 

Definition at line 1231 of file qtextstream.cpp.

References QChar::digitValue(), eat_ws(), ts_getc(), ts_isdigit(), ts_ungetc(), and val.

Referenced by input_int().

QTextStream & QTextStream::operator<< void *  ptr  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a pointer to the stream and returns a reference to the stream.

The ptr is output as an unsigned long hexadecimal integer.

Definition at line 2175 of file qtextstream.cpp.

References basefield, f, FALSE, flags(), hex, I_LONG, I_UNSIGNED, output_int(), setf(), showbase, unsetf(), and uppercase.

QTextStream & QTextStream::operator<< const QCString s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes s to the stream and returns a reference to the stream.

The string s is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream.

Definition at line 2136 of file qtextstream.cpp.

References operator<<().

QTextStream & QTextStream::operator<< const QString s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes s to the stream and returns a reference to the stream.

Definition at line 2147 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, fillchar, flags(), fwidth, QString::latin1(), latin1, left, QString::leftJustify(), mapper, operator<<(), QString::rightJustify(), and writeBlock().

QTextStream & QTextStream::operator<< const char *  s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a string to the stream and returns a reference to the stream.

The string s is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream.

Definition at line 2094 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, fillchar, flags(), fwidth, left, len, qstrlen(), and writeBlock().

QTextStream & QTextStream::operator<< double  f  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a double f to the stream and returns a reference to the stream.

Definition at line 2048 of file qtextstream.cpp.

References buf, CHECK_STREAM_PRECOND, flags(), floatfield, format(), fwidth, precision(), qstrlen(), scientific, uppercase, and writeBlock().

QTextStream & QTextStream::operator<< float  f  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a float f to the stream and returns a reference to the stream.

Definition at line 2035 of file qtextstream.cpp.

QTextStream & QTextStream::operator<< unsigned long  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an unsigned long int i to the stream and returns a reference to the stream.

Definition at line 2022 of file qtextstream.cpp.

References FALSE, I_LONG, I_UNSIGNED, and output_int().

QTextStream & QTextStream::operator<< signed long  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a long int i to the stream and returns a reference to the stream.

Definition at line 2009 of file qtextstream.cpp.

References I_LONG, I_SIGNED, and output_int().

QTextStream & QTextStream::operator<< unsigned int  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an unsigned int i to the stream and returns a reference to the stream.

Definition at line 1996 of file qtextstream.cpp.

References FALSE, I_INT, I_UNSIGNED, and output_int().

QTextStream & QTextStream::operator<< signed int  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an int i to the stream and returns a reference to the stream.

Definition at line 1983 of file qtextstream.cpp.

References I_INT, I_SIGNED, and output_int().

QTextStream & QTextStream::operator<< unsigned short  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an unsigned short integer i to the stream and returns a reference to the stream.

Definition at line 1970 of file qtextstream.cpp.

References FALSE, I_SHORT, I_UNSIGNED, and output_int().

QTextStream & QTextStream::operator<< signed short  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a short integer i to the stream and returns a reference to the stream.

Definition at line 1957 of file qtextstream.cpp.

References I_SHORT, I_SIGNED, and output_int().

QTextStream & QTextStream::operator<< char  c  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes character c to the stream and returns a reference to the stream.

Definition at line 1840 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and ts_putc().

QTextStream & QTextStream::operator<< QChar  c  ) 
 

Writes character char to the stream and returns a reference to the stream.

The character c is assumed to be Latin1 encoded independent of the Encoding set for the QTextStream.

Definition at line 1827 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and ts_putc().

Referenced by operator<<().

QTextStream& QTextStream::operator= const QTextStream  )  [private]
 

QTextStream & QTextStream::operator>> QCString str  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a "word" from the stream into str and returns a reference to the stream.

A word consists of characters for which isspace() returns FALSE.

Definition at line 1634 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, eat_ws(), i, QCString::resize(), s, ts_getc(), ts_isspace(), and ts_ungetc().

QTextStream & QTextStream::operator>> QString str  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a "word" from the stream into str and returns a reference to the stream.

A word consists of characters for which isspace() returns FALSE.

Definition at line 1608 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, eat_ws(), QString::fromLatin1(), ts_getc(), ts_isspace(), and ts_ungetc().

QTextStream & QTextStream::operator>> char *  s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a "word" from the stream into s and returns a reference to the stream.

A word consists of characters for which isspace() returns FALSE.

Definition at line 1579 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, eat_ws(), ts_getc(), ts_isspace(), ts_ungetc(), and width().

QTextStream & QTextStream::operator>> double &  f  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a double f from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1562 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_double().

QTextStream & QTextStream::operator>> float &  f  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a float f from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1546 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_double().

QTextStream & QTextStream::operator>> unsigned long &  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads an unsigned long int i from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1530 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_int().

QTextStream & QTextStream::operator>> signed long &  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a signed long int i from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1514 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_int().

QTextStream & QTextStream::operator>> unsigned int &  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads an unsigned int i from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1498 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_int().

QTextStream & QTextStream::operator>> signed int &  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a signed int i from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1482 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_int().

QTextStream & QTextStream::operator>> unsigned short &  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads an unsigned short integer i from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1466 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_int().

QTextStream & QTextStream::operator>> signed short &  i  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a signed short integer i from the stream and returns a reference to the stream. See flags() for an explanation of the expected input format.

Definition at line 1450 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and input_int().

QTextStream & QTextStream::operator>> char &  c  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a char c from the stream and returns a reference to the stream. Note that whitespace is skipped.

Definition at line 1196 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and eat_ws().

QTextStream & QTextStream::operator>> QChar c  ) 
 

Reads a char c from the stream and returns a reference to the stream. Note that whitespace is not skipped.

Definition at line 1208 of file qtextstream.cpp.

References CHECK_STREAM_PRECOND, and ts_getc().

QTextStream & QTextStream::output_int int  ,
ulong  ,
bool 
[private]
 

Definition at line 1848 of file qtextstream.cpp.

References buf, CHECK_STREAM_PRECOND, fillchar, flags(), fwidth, I_BASE_16, I_BASE_2, I_BASE_8, I_BASE_MASK, I_INT, I_LONG, I_SHORT, I_TYPE_MASK, internal, left, len, p, qstrlen(), showbase, showpos, ts_isdigit(), ts_putc(), uppercase, and writeBlock().

Referenced by operator<<().

int QTextStream::precision int  p  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the precision to p. Returns the previous precision setting.

Definition at line 273 of file qtextstream.h.

References fprec.

int QTextStream::precision  )  const [inline]
 

Returns the precision. The default value is 6.

Definition at line 270 of file qtextstream.h.

References fprec.

Referenced by operator<<(), qSetPrecision(), ViewMail::setBody(), and MailListViewItem::showEntry().

QString QTextStream::read void   ) 
 

Reads the entire stream and returns a string containing the text.

See also:
QIODevice::readLine()

Definition at line 1767 of file qtextstream.cpp.

References buf, bufsize, dev, FALSE, i, QString::null, qWarning(), start, TRUE, and ts_getbuf().

Referenced by AbstractMail::gen_attachment_id(), Opie::Core::OGlobal::generateUuid(), BatteryStatus::getProcApmStatusIpaq(), Swapfile::getStatusPcmcia(), CardMonitor::getStatusPcmcia(), InputDialog::InputDialog(), OpieTooth::RfCommConfHandler::load(), FileManager::loadFile(), loadFile(), editWindowWidget::loadFile(), main(), Opie::Global::uuid(), KateConfig::read(), ConfigEx::read(), Config::read(), EmailClient::readMail(), DocumentList::sendAllDocLinks(), Opietooth2::OTSniffing::SLOT_Load(), mainWindowWidget::slotItemDuplicate(), ReadMail::updateView(), VersionInfo::VersionInfo(), and ProjectBuilderMakefileGenerator::writeMakeParts().

QString QTextStream::readLine  ) 
 

Reads a line from the stream and returns a string containing the text.

The returned string does not contain any trailing newline or carriage return. Note that this is different from QIODevice::readLine(), which does not strip the newline at the end of the line.

On EOF you will get a QString that is null. On reading an empty line the returned QString is empty but not null.

See also:
QIODevice::readLine()

Definition at line 1683 of file qtextstream.cpp.

References dev, doUnicodeHeader, eof(), FALSE, QString::isEmpty(), latin1, mapper, QTextCodec::mibEnum(), QString::null, pos, qWarning(), TRUE, ts_getc(), ts_getline(), and ts_ungetc().

Referenced by ZSafe::addCategory(), PackageHandler::addPackageFiles(), OIpkg::availablePackages(), BackupAndRestore::backupRootFs(), BackupAndRestore::backupUserData(), BenchmarkInfo::BenchmarkInfo(), CalculatorImpl::CalculatorImpl(), PackageHandler::cleanupPackageFiles(), ConfigDialog::ConfigDialog(), QDawg::createFromWords(), createSymlinks(), WLanRun::detectState(), USBRun::detectState(), LanCardRun::detectState(), GPRSRun::detectState(), WeatherPluginWidget::displayWeather(), QMakeProject::doVariableReplace(), NetworkDialog::downloadFile(), BuzzWord::drawGrid(), ZSafe::editCategory(), TabManager::findInstalledApplication(), OpenEtext::FindTitle(), FolderWidget::getAccounts(), MainWindowImp::getAllInterfaces(), LoadInfo::getCpuInfo(), PmIpkg::getList(), Qsmb::hostSelected(), LibraryDialog::httpDownload(), MakefileGenerator::init(), Board::init(), Opie::Core::Internal::Zaurus::init(), Ramses::init(), Yopy::init(), striphtml::initentmap(), KWBuffer::insertFile(), Opie::Core::ODevice::inst(), OIpkg::installedPackages(), Interfaces::Interfaces(), LibraryDialog::Library(), OIpkg::linkPackageDir(), Opietooth2::OTPeer::load(), OpieTooth::HciConfWrapper::load(), Gutenbrowser::load(), OIpkg::loadConfiguration(), DingWidget::loadDict(), MimeType::loadExtensions(), Opietooth2::OTGateway::loadKnownPeers(), NetworkSettingsData::loadSettings(), MultiauthConfig::loadUsers(), MailFactory::MailFactory(), MainWindowImp::MainWindowImp(), NetworkSettingsData::NetworkSettingsData(), NetworkSetup::NetworkSetup(), LibraryDialog::Newlibrary(), Opie::Core::ODevice::ODevice(), Opie::Core::OPcmciaSystem::OPcmciaSystem(), Passwd::open(), TextEdit::openDotFile(), optionsDialog::openSiteList(), DBCsv::openSource(), ListViewItemConfFile::parseFile(), optionsDialog::parseFtpList(), OipkgPackage::parseIpkgFile(), QSettingsHeading::parseLine(), ProjectBuilderMakefileGenerator::pbuilderVersion(), UsbCategory::populate(), CpuCategory::populate(), OpieFtp::populateRemoteView(), SystemFile::postDeviceSection(), SystemFile::postNodeSection(), SystemFile::preDeviceSection(), SystemFile::preNodeSection(), System::probeInterfaces(), Opie::Core::OProcess::processPID(), QSettings::QSettings(), QMakeProject::read(), DrinkData::read(), ZSafe::readAllEntries(), KVNCBookmarkDlg::readBookmarks(), PackageList::readFileEntries(), PackageManagerSettings::readIpkgConfig(), Om3u::readM3u(), KMolCalc::readMwfile(), Server::readPackageFile(), Om3u::readPls(), ZoneMap::readZones(), Interface::refresh(), mainWindowWidget::refreshList(), System::refreshStatistics(), Ipkg::removeStatusEntry(), removeSymlinks(), BackupAndRestore::restore(), Qsmb::scan(), DocLnkSearch::searchFile(), Opie::Core::Internal::setCS3Bit(), MultiKey::Keys::setKeysFromFile(), WExtensions::stats(), TabManager::swapInstalledLocation(), Opie::Net::ONetwork::synchronize(), Opie::Core::OPcmciaSystem::synchronize(), OpenEtext::titleFromLibrary(), DocLnkItem::toRichText(), OIpkg::unlinkPackage(), MemoryInfo::updateData(), WLANImp::WLANImp(), DspMakefileGenerator::writeDspParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), and MetrowerksMakefileGenerator::writeMakeParts().

QTextStream & QTextStream::readRawBytes char *  s,
uint  len
 

Reads len bytes from the stream into s and returns a reference to the stream.

The buffer s must be preallocated.

Note that no encoding is done by this function.

Warning:
The behavior of this function is undefined unless the stream's encoding is set to Unicode or Latin1.
See also:
QIODevice::readBlock()

Definition at line 1034 of file qtextstream.cpp.

References dev, and QIODevice::readBlock().

Referenced by EmailHandler::encodeFile().

void QTextStream::reset  ) 
 

Resets the text stream.

All flags are set to 0. The field width is set to 0. The fill character is set to ' ' (Space). The precision is set to 6.

See also:
setf(), width(), fill(), precision()

Definition at line 1121 of file qtextstream.cpp.

References fflags, fillchar, fprec, and fwidth.

Referenced by QTextStream(), and reset().

void QTextStream::setCodec QTextCodec codec  ) 
 

Sets the codec for this stream to codec. Will not try to autodetect Unicode.

Note that this function should be called before any data is read to/written from the stream.

See also:
setEncoding(), codec()

Definition at line 2561 of file qtextstream.cpp.

References d, doUnicodeHeader, FALSE, latin1, mapper, QTextCodec::mibEnum(), QTextStreamPrivate::sourceType, and QTextStreamPrivate::String.

Referenced by KWBuffer::insertFile(), DrawPadCanvas::load(), FileManager::loadFile(), KateConfig::read(), ConfigEx::read(), Config::read(), DrawPadCanvas::save(), MetaTranslator::save(), and KateDocument::saveFile().

void QTextStream::setDevice QIODevice iod  ) 
 

Sets the IO device to iod.

See also:
device(), unsetDevice()

Definition at line 1143 of file qtextstream.cpp.

References d, dev, FALSE, QTextStreamPrivate::IODevice, owndev, and QTextStreamPrivate::sourceType.

Referenced by Ramses::init(), SIMpad::init(), iPAQ::init(), SystemFile::open(), Interface::refresh(), and unsetDevice().

void QTextStream::setEncoding Encoding  e  ) 
 

Sets the encoding of this stream to e, where e is one of the following values: Encoding Meaning Locale Uses local file format (Latin1 if locale is not set), but autodetecting Unicode(utf16) on input. Unicode Uses Unicode(utf16) for input and output. Output will be written in the order most efficient for the current platform (i.e. the order used internally in QString). UnicodeUTF8 Using Unicode(utf8) for input and output. If you use it for input it will autodetect utf16 and use it instead of utf8. Latin1 ISO-8859-1. Will not autodetect utf16. UnicodeNetworkOrder Uses network order Unicode(utf16) for input and output. Useful when reading Unicode data that does not start with the byte order marker. UnicodeReverse Uses reverse network order Unicode(utf16) for input and output. Useful when reading Unicode data that does not start with the byte order marker or when writing data that should be read by buggy Windows applications. RawUnicode Like Unicode, but does not write the byte order marker nor does it auto-detect the byte order. Useful only when writing to non-persistent storage used by a single process.

Locale and all Unicode encodings, except RawUnicode, will look at the first two bytes in an input stream to determine the byte order. The initial byte order marker will be stripped off before data is read.

Note that this function should be called before any data is read to or written from the stream.

See also:
setCodec()

Definition at line 2479 of file qtextstream.cpp.

References QTextCodec::codecForLocale(), QTextCodec::codecForMib(), d, doUnicodeHeader, FALSE, internalOrder, Latin1, latin1, Locale, mapper, QTextCodec::mibEnum(), networkOrder, QChar::networkOrdered(), RawUnicode, QTextStreamPrivate::sourceType, QTextStreamPrivate::String, TRUE, Unicode, UnicodeNetworkOrder, UnicodeReverse, and UnicodeUTF8.

Referenced by Opie::XMLElement::load(), Opie::Core::XMLElement::load(), DingWidget::loadDict(), FileManager::loadFile(), editWindowWidget::loadFile(), QTextStream(), QSettingsHeading::read(), KateConfig::read(), ConfigEx::read(), Config::read(), Om3u::readM3u(), Om3u::readPls(), mainWindowWidget::refreshList(), KateDocument::saveFile(), editWindowWidget::saveFile(), DocumentList::sendAllDocLinks(), mainWindowWidget::slotItemDuplicate(), QSettings::sync(), and Om3u::write().

int QTextStream::setf int  bits,
int  mask
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the stream flag bits bits with a bit mask mask. Returns the previous stream flags.

Equivalent to {flags( (flags() & ~mask) | (bits & mask) )}.

See also:
setf(), unsetf()

Definition at line 252 of file qtextstream.h.

References fflags.

int QTextStream::setf int  bits  )  [inline]
 

Sets the stream flag bits bits. Returns the previous stream flags.

Equivalent to {flags( flags() | bits )}.

See also:
setf(), unsetf()

Definition at line 249 of file qtextstream.h.

References fflags.

Referenced by bin(), operator<<(), ViewMail::setBody(), and MailListViewItem::showEntry().

void QTextStream::skipWhiteSpace  ) 
 

Positions the read pointer at the first non-whitespace character.

Definition at line 633 of file qtextstream.cpp.

References eat_ws(), and ts_ungetc().

Referenced by ws().

uint QTextStream::ts_getbuf QChar buf,
uint  len
[private]
 

Tries to read len characters from the stream and stores them in buf. Returns the number of characters really read.

Warning:
There will no QEOF appended if the read reaches the end of the file. EOF is reached when the return value does not equal len.

Definition at line 647 of file qtextstream.cpp.

References QString::append(), QIODevice::atEnd(), QString::constref(), d, QTextStreamPrivate::decoder, dev, doUnicodeHeader, end, FALSE, QIODevice::getch(), i, internalOrder, latin1, QString::length(), mapper, QString::mid(), networkOrder, QChar::networkOrdered(), QIODevice::readBlock(), s, QTextDecoder::toUnicode(), TRUE, QTextStreamPrivate::ungetcBuf, and QIODevice::ungetch().

Referenced by read(), and ts_getc().

QChar QTextStream::ts_getc  )  [inline, private]
 

Returns one character from the stream, or EOF.

Definition at line 279 of file qtextstream.h.

References ts_getbuf().

Referenced by eat_ws(), input_bin(), input_dec(), input_double(), input_hex(), input_int(), input_oct(), operator>>(), and readLine().

uint QTextStream::ts_getline QChar buf  )  [private]
 

Tries to read one line, but at most len characters from the stream and stores them in buf.

Returns the number of characters really read. Newlines are not stripped.

There will be a QEOF appended if the read reaches the end of file; this is different to ts_getbuf().

This function works only if a newline (as byte) is also a newline (as resulting character) since it uses QIODevice::readLine(). So use it only for such codecs where this is true!

This function is (almost) a no-op for UTF 16. Don't use it if doUnicodeHeader is TRUE!

Definition at line 873 of file qtextstream.cpp.

References QString::append(), QString::at(), atEnd(), QIODevice::atEnd(), QString::constref(), d, QTextStreamPrivate::decoder, dev, end, FALSE, QIODevice::getch(), i, latin1, QString::length(), mapper, QString::mid(), QIODevice::readLine(), s, QChar::setCell(), QChar::setRow(), QTextDecoder::toUnicode(), TRUE, and QTextStreamPrivate::ungetcBuf.

Referenced by readLine().

bool QTextStream::ts_isdigit QChar   )  [private]
 

Definition at line 1000 of file qtextstream.cpp.

References QChar::isDigit().

Referenced by input_dec(), input_double(), input_hex(), input_int(), input_oct(), and output_int().

bool QTextStream::ts_isspace QChar   )  [private]
 

Definition at line 1005 of file qtextstream.cpp.

References QChar::isSpace().

Referenced by eat_ws(), and operator>>().

void QTextStream::ts_putc QChar  c  )  [private]
 

Puts one character into the stream.

Definition at line 957 of file qtextstream.cpp.

References QChar::byteOrderMark, d, dev, doUnicodeHeader, QTextStreamPrivate::encoder, FALSE, QTextEncoder::fromUnicode(), internalOrder, latin1, len, QTextCodec::makeEncoder(), mapper, networkOrder, QIODevice::putch(), s, ts_putc(), and QIODevice::writeBlock().

void QTextStream::ts_putc int  ch  )  [private]
 

Puts one character into the stream.

Definition at line 995 of file qtextstream.cpp.

Referenced by operator<<(), output_int(), ts_putc(), and writeBlock().

void QTextStream::ts_ungetc QChar   )  [private]
 

Definition at line 1010 of file qtextstream.cpp.

References d, QString::prepend(), QTextStreamPrivate::ungetcBuf, and QChar::unicode().

Referenced by input_bin(), input_dec(), input_double(), input_hex(), input_int(), input_oct(), operator>>(), readLine(), and skipWhiteSpace().

void QTextStream::unsetDevice  ) 
 

Unsets the IO device. Equivalent to setDevice( 0 ).

See also:
device(), setDevice()

Definition at line 1159 of file qtextstream.cpp.

References d, QTextStreamPrivate::NotSet, setDevice(), and QTextStreamPrivate::sourceType.

int QTextStream::unsetf int  bits  )  [inline]
 

Clears the stream flag bits bits. Returns the previous stream flags.

Equivalent to {flags( flags() & ~mask )}.

See also:
setf()

Definition at line 255 of file qtextstream.h.

References fflags.

Referenced by operator<<().

int QTextStream::width int  w  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the field width to w. Returns the previous field width.

Definition at line 261 of file qtextstream.h.

References fwidth.

int QTextStream::width  )  const [inline]
 

Returns the field width. The default value is 0.

Definition at line 258 of file qtextstream.h.

References fwidth.

Referenced by operator>>(), qSetW(), and ThumbNailTool::scaleImage().

QTextStream & QTextStream::writeBlock const QChar p,
uint  len
[private]
 

Definition at line 1079 of file qtextstream.cpp.

References QChar::byteOrderMark, d, dev, doUnicodeHeader, QTextStreamPrivate::encoder, FALSE, QTextEncoder::fromUnicode(), i, internalOrder, l, latin1, QTextCodec::makeEncoder(), mapper, s, str, QConstString::string(), ts_putc(), QString::unicodeToLatin1(), and QIODevice::writeBlock().

QTextStream & QTextStream::writeBlock const char *  p,
uint  len
[private]
 

Definition at line 1056 of file qtextstream.cpp.

References QChar::byteOrderMark, dev, doUnicodeHeader, FALSE, i, internalOrder, latin1, mapper, ts_putc(), u, and QIODevice::writeBlock().

Referenced by operator<<(), and output_int().

QTextStream & QTextStream::writeRawBytes const char *  s,
uint  len
 

Writes the len bytes from s to the stream and returns a reference to the stream.

Note that no encoding is done by this function.

See also:
QIODevice::writeBlock()

Definition at line 1049 of file qtextstream.cpp.

References dev, and QIODevice::writeBlock().


Member Data Documentation

const int QTextStream::adjustfield [static]
 

Initial value:

Definition at line 209 of file qtextstream.cpp.

const int QTextStream::basefield = I_BASE_MASK [static]
 

Definition at line 208 of file qtextstream.cpp.

Referenced by bin(), dec(), hex(), input_int(), oct(), and operator<<().

QTextStreamPrivate* QTextStream::d [private]
 

Definition at line 165 of file qtextstream.h.

Referenced by init(), QTextStream(), setCodec(), setDevice(), setEncoding(), ts_getbuf(), ts_getline(), ts_putc(), ts_ungetc(), unsetDevice(), writeBlock(), and ~QTextStream().

QIODevice* QTextStream::dev [private]
 

Definition at line 156 of file qtextstream.h.

Referenced by atEnd(), device(), init(), QTextStream(), read(), readLine(), readRawBytes(), setDevice(), ts_getbuf(), ts_getline(), ts_putc(), writeBlock(), writeRawBytes(), and ~QTextStream().

bool QTextStream::doUnicodeHeader [private]
 

Definition at line 162 of file qtextstream.h.

Referenced by init(), readLine(), setCodec(), setEncoding(), ts_getbuf(), ts_putc(), and writeBlock().

int QTextStream::fflags [private]
 

Definition at line 158 of file qtextstream.h.

Referenced by flags(), reset(), setf(), and unsetf().

int QTextStream::fillchar [private]
 

Definition at line 160 of file qtextstream.h.

Referenced by fill(), operator<<(), output_int(), and reset().

const int QTextStream::floatfield [static]
 

Initial value:

Definition at line 212 of file qtextstream.cpp.

Referenced by operator<<().

int QTextStream::fprec [private]
 

Definition at line 161 of file qtextstream.h.

Referenced by precision(), and reset().

int QTextStream::fwidth [private]
 

Definition at line 159 of file qtextstream.h.

Referenced by operator<<(), output_int(), reset(), and width().

bool QTextStream::internalOrder [private]
 

Definition at line 168 of file qtextstream.h.

Referenced by init(), setEncoding(), ts_getbuf(), ts_putc(), and writeBlock().

bool QTextStream::latin1 [private]
 

Definition at line 167 of file qtextstream.h.

Referenced by init(), operator<<(), readLine(), setCodec(), setEncoding(), ts_getbuf(), ts_getline(), ts_putc(), and writeBlock().

QTextCodec* QTextStream::mapper [private]
 

Definition at line 164 of file qtextstream.h.

Referenced by codec(), init(), operator<<(), readLine(), setCodec(), setEncoding(), ts_getbuf(), ts_getline(), ts_putc(), and writeBlock().

bool QTextStream::networkOrder [private]
 

Definition at line 169 of file qtextstream.h.

Referenced by init(), setEncoding(), ts_getbuf(), and ts_putc().

bool QTextStream::owndev [private]
 

Definition at line 163 of file qtextstream.h.

Referenced by init(), QTextStream(), setDevice(), and ~QTextStream().

QChar QTextStream::unused1 [private]
 

Definition at line 166 of file qtextstream.h.

void* QTextStream::unused2 [private]
 

Definition at line 170 of file qtextstream.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:49:43 2005 for OPIE by  doxygen 1.4.2