#include </home/clem/local/src/opie/qmake/include/qtextstream.h>
Inheritance diagram for QTextStream:


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
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.
Definition at line 53 of file qtextstream.h.
|
|
Definition at line 116 of file qtextstream.h. |
|
|
Locale Latin1 Unicode UnicodeNetworkOrder UnicodeReverse RawUnicode UnicodeUTF8 See setEncoding() for an explanation of the encodings. Definition at line 56 of file qtextstream.h. |
|
|
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. |
|
|
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. |
|
||||||||||||
|
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. |
|
||||||||||||
|
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. |
|
||||||||||||
|
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. |
|
||||||||||||
|
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 Definition at line 606 of file qtextstream.cpp. References d, dev, QTextStreamPrivate::File, init(), Locale, QIODevice::open(), owndev, reset(), setEncoding(), QTextStreamPrivate::sourceType, and TRUE. |
|
|
Destroys the text stream. The destructor does not affect the current IO device. Definition at line 623 of file qtextstream.cpp. |
|
|
|
|
|
|
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.
Definition at line 2581 of file qtextstream.cpp. References QTextCodec::codecForMib(), and mapper. |
|
|
Returns the IO device currently set.
Definition at line 234 of file qtextstream.h. References dev. Referenced by flush(). |
|
|
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(). |
|
|
|
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. |
|
|
Returns the fill character. The default value is ' ' (space). Definition at line 264 of file qtextstream.h. References fillchar. Referenced by qSetFill(). |
|
|
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.
Definition at line 246 of file qtextstream.h. References fflags. |
|
|
Returns the current stream flags. The default value is 0.
Flag Meaning
Note that unless
Definition at line 243 of file qtextstream.h. References fflags. Referenced by input_int(), operator<<(), and output_int(). |
|
|
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(). |
|
|
Definition at line 1216 of file qtextstream.cpp. References QChar::digitValue(), eat_ws(), ts_getc(), ts_ungetc(), and val. Referenced by input_int(). |
|
|
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(). |
|
|
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>>(). |
|
|
Definition at line 1265 of file qtextstream.cpp. References eat_ws(), ts_getc(), ts_isdigit(), ts_ungetc(), and val. Referenced by input_int(). |
|
|
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>>(). |
|
|
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(). |
|
|
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. |
|
|
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<<(). |
|
|
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(). |
|
|
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(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a Definition at line 2048 of file qtextstream.cpp. References buf, CHECK_STREAM_PRECOND, flags(), floatfield, format(), fwidth, precision(), qstrlen(), scientific, uppercase, and writeBlock(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a Definition at line 2035 of file qtextstream.cpp. |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an Definition at line 2022 of file qtextstream.cpp. References FALSE, I_LONG, I_UNSIGNED, and output_int(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a Definition at line 2009 of file qtextstream.cpp. References I_LONG, I_SIGNED, and output_int(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an Definition at line 1996 of file qtextstream.cpp. References FALSE, I_INT, I_UNSIGNED, and output_int(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an Definition at line 1983 of file qtextstream.cpp. References I_INT, I_SIGNED, and output_int(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes an Definition at line 1970 of file qtextstream.cpp. References FALSE, I_SHORT, I_UNSIGNED, and output_int(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Writes a Definition at line 1957 of file qtextstream.cpp. References I_SHORT, I_SIGNED, and output_int(). |
|
|
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(). |
|
|
Writes character 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<<(). |
|
|
|
|
|
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(). |
|
|
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(). |
|
|
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(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a Definition at line 1562 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_double(). |
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Reads a Definition at line 1546 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_double(). |
|
|
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 Definition at line 1530 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_int(). |
|
|
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 Definition at line 1514 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_int(). |
|
|
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 Definition at line 1498 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_int(). |
|
|
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 Definition at line 1482 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_int(). |
|
|
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 Definition at line 1466 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_int(). |
|
|
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 Definition at line 1450 of file qtextstream.cpp. References CHECK_STREAM_PRECOND, and input_int(). |
|
|
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(). |
|
|
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(). |
|
||||||||||||||||
|
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<<(). |
|
|
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. |
|
|
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(). |
|
|
Reads the entire stream and returns a string containing the text.
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(). |
|
|
||||||||||||
|
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.
Definition at line 1034 of file qtextstream.cpp. References dev, and QIODevice::readBlock(). Referenced by EmailHandler::encodeFile(). |
|
|
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.
Definition at line 1121 of file qtextstream.cpp. References fflags, fillchar, fprec, and fwidth. Referenced by QTextStream(), and reset(). |
|
|
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.
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(). |
|
|
Sets the IO device to iod.
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(). |
|
|
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.
Note that this function should be called before any data is read to or written from the stream.
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(). |
|
||||||||||||
|
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
Definition at line 252 of file qtextstream.h. References fflags. |
|
|
Sets the stream flag bits bits. Returns the previous stream flags.
Equivalent to
Definition at line 249 of file qtextstream.h. References fflags. Referenced by bin(), operator<<(), ViewMail::setBody(), and MailListViewItem::showEntry(). |
|
|
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(). |
|
||||||||||||
|
Tries to read len characters from the stream and stores them in buf. Returns the number of characters really read.
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(). |
|
|
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(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 1005 of file qtextstream.cpp. References QChar::isSpace(). Referenced by eat_ws(), and operator>>(). |
|
|
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(). |
|
|
Puts one character into the stream. Definition at line 995 of file qtextstream.cpp. Referenced by operator<<(), output_int(), ts_putc(), and writeBlock(). |
|
|
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(). |
|
|
Unsets the IO device. Equivalent to setDevice( 0 ).
Definition at line 1159 of file qtextstream.cpp. References d, QTextStreamPrivate::NotSet, setDevice(), and QTextStreamPrivate::sourceType. |
|
|
Clears the stream flag bits bits. Returns the previous stream flags.
Equivalent to
Definition at line 255 of file qtextstream.h. References fflags. Referenced by operator<<(). |
|
|
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. |
|
|
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(). |
|
||||||||||||
|
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(). |
|
||||||||||||
|
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(). |
|
||||||||||||
|
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.
Definition at line 1049 of file qtextstream.cpp. References dev, and QIODevice::writeBlock(). |
|
|
Initial value: Definition at line 209 of file qtextstream.cpp. |
|
|
Definition at line 208 of file qtextstream.cpp. Referenced by bin(), dec(), hex(), input_int(), oct(), and operator<<(). |
|
|
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(). |
|
|
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(). |
|
|
Definition at line 162 of file qtextstream.h. Referenced by init(), readLine(), setCodec(), setEncoding(), ts_getbuf(), ts_putc(), and writeBlock(). |
|
|
Definition at line 158 of file qtextstream.h. |
|
|
Definition at line 160 of file qtextstream.h. Referenced by fill(), operator<<(), output_int(), and reset(). |
|
|
Initial value: Definition at line 212 of file qtextstream.cpp. Referenced by operator<<(). |
|
|
Definition at line 161 of file qtextstream.h. Referenced by precision(), and reset(). |
|
|
Definition at line 159 of file qtextstream.h. Referenced by operator<<(), output_int(), reset(), and width(). |
|
|
Definition at line 168 of file qtextstream.h. Referenced by init(), setEncoding(), ts_getbuf(), ts_putc(), and writeBlock(). |
|
|
Definition at line 167 of file qtextstream.h. Referenced by init(), operator<<(), readLine(), setCodec(), setEncoding(), ts_getbuf(), ts_getline(), ts_putc(), and writeBlock(). |
|
|
Definition at line 164 of file qtextstream.h. Referenced by codec(), init(), operator<<(), readLine(), setCodec(), setEncoding(), ts_getbuf(), ts_getline(), ts_putc(), and writeBlock(). |
|
|
Definition at line 169 of file qtextstream.h. Referenced by init(), setEncoding(), ts_getbuf(), and ts_putc(). |
|
|
Definition at line 163 of file qtextstream.h. Referenced by init(), QTextStream(), setDevice(), and ~QTextStream(). |
|
|
Definition at line 166 of file qtextstream.h. |
|
|
Definition at line 170 of file qtextstream.h. |
1.4.2