Qt 4.8
Classes | Typedefs | Functions
qtextstream.h File Reference
#include <QtCore/qiodevice.h>
#include <QtCore/qstring.h>
#include <QtCore/qchar.h>
#include <QtCore/qlocale.h>
#include <QtCore/qscopedpointer.h>
#include <stdio.h>

Go to the source code of this file.

Classes

class  QTextStream
 The QTextStream class provides a convenient interface for reading and writing text. More...
 
class  QTextStreamManipulator
 

Typedefs

typedef QTextStream &(* QTextStreamFunction) (QTextStream &)
 
typedef void(QTextStream::* QTSMFC) (QChar)
 
typedef void(QTextStream::* QTSMFI) (int)
 

Functions

Q_CORE_EXPORT QTextStreambin (QTextStream &s)
 
Q_CORE_EXPORT QTextStreambom (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamcenter (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamdec (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamendl (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamfixed (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamflush (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamforcepoint (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamforcesign (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamhex (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamleft (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamlowercasebase (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamlowercasedigits (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamnoforcepoint (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamnoforcesign (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamnoshowbase (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamoct (QTextStream &s)
 
QTextStreamoperator<< (QTextStream &s, QTextStreamFunction f)
 
QTextStreamoperator<< (QTextStream &s, QTextStreamManipulator m)
 
QTextStreamoperator>> (QTextStream &s, QTextStreamFunction f)
 
QTextStreamManipulator qSetFieldWidth (int width)
 
QTextStreamManipulator qSetPadChar (QChar ch)
 
QTextStreamManipulator qSetRealNumberPrecision (int precision)
 
Q_CORE_EXPORT QTextStreamreset (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamright (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamscientific (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamshowbase (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamuppercasebase (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamuppercasedigits (QTextStream &s)
 
Q_CORE_EXPORT QTextStreamws (QTextStream &s)
 

Typedef Documentation

◆ QTextStreamFunction

typedef QTextStream&(* QTextStreamFunction) (QTextStream &)

Definition at line 270 of file qtextstream.h.

◆ QTSMFC

typedef void(QTextStream::* QTSMFC) (QChar)

Definition at line 272 of file qtextstream.h.

◆ QTSMFI

typedef void(QTextStream::* QTSMFI) (int)

Definition at line 271 of file qtextstream.h.

Function Documentation

◆ bin()

Q_CORE_EXPORT QTextStream& bin ( QTextStream s)
related

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

◆ bom()

Q_CORE_EXPORT QTextStream& bom ( QTextStream s)
related

◆ center()

Q_CORE_EXPORT QTextStream& center ( QTextStream s)
related

◆ dec()

Q_CORE_EXPORT QTextStream& dec ( QTextStream s)
related

◆ endl()

Q_CORE_EXPORT QTextStream& endl ( QTextStream s)
related

◆ fixed()

Q_CORE_EXPORT QTextStream& fixed ( QTextStream s)
related

◆ flush()

Q_CORE_EXPORT QTextStream& flush ( QTextStream s)
related

◆ forcepoint()

Q_CORE_EXPORT QTextStream& forcepoint ( QTextStream s)
related

Referenced by operator<<().

◆ forcesign()

Q_CORE_EXPORT QTextStream& forcesign ( QTextStream s)
related

Referenced by operator<<().

◆ hex()

Q_CORE_EXPORT QTextStream& hex ( QTextStream s)
related

◆ left()

Q_CORE_EXPORT QTextStream& left ( QTextStream s)
related

Referenced by QScript::AST::BinaryExpression::accept0(), QScript::AST::Expression::accept0(), QDeclarativeJS::AST::BinaryExpression::accept0(), QDeclarativeJS::AST::Expression::accept0(), QBezier::addIfClose(), QGL2PEXVertexArray::addQuad(), QGL2PEXVertexArray::addRect(), QTreeViewPrivate::adjustViewOptionsForIndex(), QFontEngineFT::alphaMapBoundingBox(), QDeclarativeItemPrivate::AnchorLines::AnchorLines(), QFontEngineFT::boundingBox(), QMenuBarPrivate::calcActionRects(), QTriangulator< T >::ComplexToSimple::calculateIntersection(), QTriangulator< T >::ComplexToSimple::calculateIntersections(), QDeclarativeContents::calcWidth(), QAccessibleLineEdit::characterRect(), clipLine(), QItemSelectionModel::columnIntersectsSelection(), QTableView::columnMoved(), QFileSystemModelSorter::compareNodes(), QLayout::contentsMargins(), QGraphicsLayoutItem::contentsRect(), QLayout::contentsRect(), QOpenGLPaintEnginePrivate::copyDrawable(), QAbstractItemModel::decodeData(), QTriangulator< T >::MonotoneToTriangles::decompose(), QBoxLayoutPrivate::deleteAll(), QGridLayoutPrivate::distribute(), QStyleHelper::drawBorderPixmap(), QCommonStyle::drawComplexControl(), QPlastiqueStyle::drawComplexControl(), QWindowsMobileStyle::drawControl(), QWindowsStyle::drawControl(), QMotifStyle::drawControl(), QOpenGLPaintEnginePrivate::drawFastRect(), QGL2PaintEngineExPrivate::drawPixmapFragments(), QPaintBufferEngine::drawRects(), QTreeView::drawRow(), QTableWidget::dropEvent(), QAbstractTableModel::dropMimeData(), QAbstractListModel::dropMimeData(), QStandardItemModel::dropMimeData(), QTessellatorPrivate::emitEdges(), QTextHtmlExporter::emitMargins(), QGraphicsView::ensureVisible(), QFragmentMapData< QTextBlockData >::erase_single(), QWSSoundServerPrivate::feedDevice(), fillTrapezoid(), QOpenGLPaintEnginePrivate::fillVertexArray(), QTextEngine::findItem(), QTextDocumentLayoutPrivate::findY(), QDeclarativeJS::AST::BinaryExpression::firstSourceLocation(), QMatrix4x4::frustum(), QDockAreaLayout::getGrid(), QGridLayoutPrivate::getItemPosition(), QFontEngine::getTrueTypeGlyphIndex(), QFontEngineFT::getUnscaledGlyph(), QXcbKeyboard::handleKeyEvent(), QIntersectionFinder::hasIntersections(), QBoxLayout::heightForWidth(), QGridLayoutPrivate::heightForWidth(), QTableModel::index(), QAxBase::initializeActive(), QAxBase::initializeLicensed(), QAxBase::initializeRemote(), QDialogButtonBoxPrivate::initLayout(), QFragmentMapData< QTextBlockData >::insert_single(), QRegion::intersects(), QDeclarativeItemPrivate::isMirrored(), QByteArray::isSharedWith(), QPatternist::XsdParticleChecker::isUPAConformXsdAll(), QItemSelectionRange::isValid(), QTreeModel::itemChanged(), kerning(), QTextDocumentLayoutPrivate::layoutBlock(), QAbstractScrollAreaPrivate::layoutChildren(), QTextDocumentLayoutPrivate::layoutFlow(), QTableWidgetSelectionRange::leftColumn(), QFontEngineFT::loadGlyph(), QGridLayout::maximumSize(), QDockAreaLayoutItem::maximumSize(), QStatusBarPrivate::messageRect(), QGridLayout::minimumSize(), QDockAreaLayoutItem::minimumSize(), QDockAreaLayout::minimumSize(), miSubtractO(), QFragmentMapData< QTextBlockData >::next(), operator<<(), QMatrix4x4::ortho(), QDeclarativeBorderImage::paint(), QTableView::paintEvent(), QMaxHeap< QTriangulator::ComplexToSimple::Intersection >::pop(), QTextDocumentLayoutPrivate::positionFloat(), QTextEngine::positionInLigature(), QStyleSheetStyle::positionRect(), QFragmentMapData< QTextBlockData >::previous(), QBezier::pt4(), QMatrix4x4::QMatrix4x4(), QRBTree< int >::QRBTree(), QRenderRule::QRenderRule(), qt_grab_cursor(), QAxClientSite::qt_metacall(), qt_painterpath_isect_line_rect(), qt_region_strictContains(), QRasterizer::rasterizeLine(), QFragmentMapData< QTextBlockData >::rebalance(), QGraphicsWidget::rect(), QTriangulator< T >::ComplexToSimple::removeUnwantedEdgesAndConnect(), QTriangulator< T >::ComplexToSimple::reorderEdgeListRange(), QFragmentMapData< QTextBlockData >::rotateLeft(), QItemSelectionModel::rowIntersectsSelection(), QTreeViewPrivate::select(), QRectVectorPath::set(), QLayout::setAlignment(), QGraphicsLayout::setContentsMargins(), QGraphicsWidget::setContentsMargins(), QLayout::setContentsMargins(), QWidget::setContentsMargins(), QWidgetPrivate::setFont_helper(), QSplitterPrivate::setGeo(), QGraphicsLinearLayout::setGeometry(), QBoxLayout::setGeometry(), QGraphicsGridLayout::setGeometry(), QPagePreview::setMargins(), QWin32PrintEngine::setProperty(), QRegion::setRects(), QGL2PaintEngineExPrivate::setScissor(), QTableView::setSelection(), QListView::setSelection(), QWidget::setShown(), QLineEdit::setTextMargins(), QBoxLayoutPrivate::setupGeom(), QAbstractScrollArea::setViewportMargins(), QGraphicsProxyWidgetPrivate::setWidget_helper(), QGraphicsWidget::setWindowFrameMargins(), QDockWidgetLayout::sizeFromContent(), QGridLayout::sizeHint(), QGraphicsLinearLayout::sizeHint(), QDockAreaLayoutItem::sizeHint(), QGraphicsAnchorLayout::sizeHint(), QGraphicsGridLayout::sizeHint(), QDockAreaLayout::sizeHint(), QTableView::sizeHintForRow(), QCommonStyle::subControlRect(), QWindowsMobileStyle::subControlRect(), QWindowsCEStyle::subControlRect(), QMacStyle::subControlRect(), QCommonStyle::subElementRect(), QMacStyle::subElementRect(), QBezier::tAtLength(), QTessellator::tessellateConvex(), QAccessibleTabBar::text(), QTableViewPrivate::trimHiddenSelections(), QNetworkDiskCachePrivate::uniqueFileName(), QOpenGLPaintEnginePrivate::updateDepthClip(), QExpandingLineEdit::updateMinimumWidth(), QTreeViewPrivate::AnimatedOperation::updateState(), QRegionPrivate::vectorize(), QTreeModel::view(), QTableView::visualRegionForSelection(), QHeaderView::visualRegionForSelection(), QGraphicsWidget::windowFrameSectionAt(), and QRBTree< T >::Node::~Node().

◆ lowercasebase()

Q_CORE_EXPORT QTextStream& lowercasebase ( QTextStream s)
related

Referenced by operator<<().

◆ lowercasedigits()

Q_CORE_EXPORT QTextStream& lowercasedigits ( QTextStream s)
related

Referenced by operator<<().

◆ noforcepoint()

Q_CORE_EXPORT QTextStream& noforcepoint ( QTextStream s)
related

Referenced by operator<<().

◆ noforcesign()

Q_CORE_EXPORT QTextStream& noforcesign ( QTextStream s)
related

Referenced by operator<<().

◆ noshowbase()

Q_CORE_EXPORT QTextStream& noshowbase ( QTextStream s)
related

Referenced by operator<<().

◆ oct()

Q_CORE_EXPORT QTextStream& oct ( QTextStream s)
related

Referenced by operator<<().

◆ operator<<() [1/2]

QTextStream& operator<< ( QTextStream s,
QTextStreamFunction  f 
)
inline

Definition at line 291 of file qtextstream.h.

292 { return (*f)(s); }

◆ operator<<() [2/2]

QTextStream& operator<< ( QTextStream s,
QTextStreamManipulator  m 
)
inline

Definition at line 294 of file qtextstream.h.

295 { m.exec(s); return s; }
void exec(QTextStream &s)
Definition: qtextstream.h:279

◆ operator>>()

QTextStream& operator>> ( QTextStream s,
QTextStreamFunction  f 
)
inline

Definition at line 288 of file qtextstream.h.

289 { return (*f)(s); }

◆ qSetFieldWidth()

QTextStreamManipulator qSetFieldWidth ( int  width)
related

Definition at line 329 of file qtextstream.h.

Referenced by operator<<().

330 {
332  return QTextStreamManipulator(func,width);
333 }
void(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:271
void setFieldWidth(int width)
Sets the current field width to width.

◆ qSetPadChar()

QTextStreamManipulator qSetPadChar ( QChar  ch)
related

Definition at line 335 of file qtextstream.h.

336 {
338  return QTextStreamManipulator(func, ch);
339 }
void(QTextStream::* QTSMFC)(QChar)
Definition: qtextstream.h:272
void setPadChar(QChar ch)
Sets the pad character to ch.

◆ qSetRealNumberPrecision()

QTextStreamManipulator qSetRealNumberPrecision ( int  precision)
related

Definition at line 341 of file qtextstream.h.

342 {
344  return QTextStreamManipulator(func, precision);
345 }
void(QTextStream::* QTSMFI)(int)
Definition: qtextstream.h:271
void setRealNumberPrecision(int precision)
Sets the precision of real numbers to precision.

◆ reset()

Q_CORE_EXPORT QTextStream& reset ( QTextStream s)
related

◆ right()

Q_CORE_EXPORT QTextStream& right ( QTextStream s)
related

Referenced by QScript::AST::BinaryExpression::accept0(), QScript::AST::Expression::accept0(), QDeclarativeJS::AST::BinaryExpression::accept0(), QDeclarativeJS::AST::Expression::accept0(), QBezier::addIfClose(), QGL2PEXVertexArray::addQuad(), QGL2PEXVertexArray::addRect(), QTreeViewPrivate::adjustViewOptionsForIndex(), QFontEngineFT::alphaMapBoundingBox(), QDeclarativeItemPrivate::AnchorLines::AnchorLines(), QFontEngineFT::boundingBox(), QTriangulator< T >::ComplexToSimple::calculateIntersection(), QTriangulator< T >::ComplexToSimple::calculateIntersections(), QDeclarativeContents::calcWidth(), QAccessibleLineEdit::characterRect(), QPaintEngineEx::clip(), QScanConverter::clip(), clipLine(), QItemSelectionModel::columnIntersectsSelection(), QTableView::columnMoved(), QFileSystemModelSorter::compareNodes(), QPainterPath::computeBoundingRect(), QLayout::contentsMargins(), QGraphicsLayoutItem::contentsRect(), QLayout::contentsRect(), QAbstractItemModel::decodeData(), QTriangulator< T >::MonotoneToTriangles::decompose(), QBoxLayoutPrivate::deleteAll(), QGridLayoutPrivate::distribute(), QStyleHelper::drawBorderPixmap(), QCommonStyle::drawComplexControl(), QPlastiqueStyle::drawComplexControl(), QCommonStyle::drawControl(), QWindowsMobileStyle::drawControl(), QWindowsStyle::drawControl(), QMotifStyle::drawControl(), QOpenGLPaintEnginePrivate::drawFastRect(), QGL2PaintEngineExPrivate::drawPixmapFragments(), QPaintEngineEx::drawRects(), QPaintBufferEngine::drawRects(), QTreeView::drawRow(), QStandardItemModel::dropMimeData(), QTessellatorPrivate::emitEdges(), QTextHtmlExporter::emitMargins(), QGraphicsView::ensureVisible(), QFragmentMapData< QTextBlockData >::erase_single(), QDockWidget::event(), QWSSoundServerPrivate::feedDevice(), fillTrapezoid(), QTextEngine::findItem(), QTextDocumentLayoutPrivate::findY(), QMatrix4x4::frustum(), getFmtString(), QDockAreaLayout::getGrid(), QGridLayoutPrivate::getItemPosition(), QFontEngine::getTrueTypeGlyphIndex(), QFontEngineFT::getUnscaledGlyph(), handleSpans(), QIntersectionFinder::hasIntersections(), QBoxLayout::heightForWidth(), QGridLayoutPrivate::heightForWidth(), QTableModel::index(), QDialogButtonBoxPrivate::initLayout(), QFragmentMapData< QTextBlockData >::insert_single(), QMenu::internalDelayedPopup(), QRegion::intersects(), QDeclarativeItemPrivate::isMirrored(), QByteArray::isSharedWith(), QPatternist::XsdParticleChecker::isUPAConformXsdAll(), QItemSelectionRange::isValid(), QTreeModel::itemChanged(), QDeclarativeJS::AST::BinaryExpression::lastSourceLocation(), QTextDocumentLayoutPrivate::layoutBlock(), QAbstractScrollAreaPrivate::layoutChildren(), QTextDocumentLayoutPrivate::layoutFlow(), QFontEngineFT::loadGlyph(), QMatrix::mapToPolygon(), QTransform::mapToPolygon(), QGridLayout::maximumSize(), QDockAreaLayoutItem::maximumSize(), QStatusBarPrivate::messageRect(), QGridLayout::minimumSize(), QDockAreaLayoutItem::minimumSize(), QDockAreaLayout::minimumSize(), miSubtractO(), QTableView::moveCursor(), QFragmentMapData< QTextBlockData >::next(), operator<<(), QMatrix4x4::ortho(), QDeclarativeBorderImage::paint(), QTableView::paintEvent(), QMaxHeap< QTriangulator::ComplexToSimple::Intersection >::pop(), QTextDocumentLayoutPrivate::positionFloat(), QFragmentMapData< QTextBlockData >::previous(), QMatrix4x4::QMatrix4x4(), QRBTree< int >::QRBTree(), QRenderRule::QRenderRule(), qt_grab_cursor(), qt_painterpath_isect_line_rect(), qt_region_strictContains(), QRasterizer::rasterizeLine(), QFragmentMapData< QTextBlockData >::rebalance(), QGraphicsWidget::rect(), QTriangulator< T >::ComplexToSimple::reorderEdgeListRange(), QPaintEngineExPrivate::replayClipOperations(), QTableWidgetSelectionRange::rightColumn(), QFragmentMapData< QTextBlockData >::rotateRight(), QItemSelectionModel::rowIntersectsSelection(), QTreeViewPrivate::select(), QRectVectorPath::set(), QLayout::setAlignment(), QPainter::setClipRect(), QGraphicsLayout::setContentsMargins(), QGraphicsWidget::setContentsMargins(), QLayout::setContentsMargins(), QWidget::setContentsMargins(), QWidgetPrivate::setFont_helper(), QSplitterPrivate::setGeo(), QGraphicsLinearLayout::setGeometry(), QBoxLayout::setGeometry(), QGraphicsGridLayout::setGeometry(), QPagePreview::setMargins(), QWin32PrintEngine::setProperty(), QRegion::setRects(), QTableView::setSelection(), QListView::setSelection(), QWidget::setShown(), QLineEdit::setTextMargins(), QBoxLayoutPrivate::setupGeom(), QAbstractScrollArea::setViewportMargins(), QGraphicsProxyWidgetPrivate::setWidget_helper(), QGraphicsWidget::setWindowFrameMargins(), QDockWidgetLayout::sizeFromContent(), QGridLayout::sizeHint(), QGraphicsLinearLayout::sizeHint(), QDockAreaLayoutItem::sizeHint(), QGraphicsAnchorLayout::sizeHint(), QGraphicsGridLayout::sizeHint(), QDockAreaLayout::sizeHint(), QTableView::sizeHintForRow(), QCommonStyle::subElementRect(), QMacStyle::subElementRect(), QBezier::tAtLength(), QTessellator::tessellateConvex(), QTableViewPrivate::trimHiddenSelections(), QExpandingLineEdit::updateMinimumWidth(), QTreeViewPrivate::AnimatedOperation::updateState(), QRegionPrivate::vectorize(), QTreeModel::view(), QTableView::visualRegionForSelection(), QHeaderView::visualRegionForSelection(), QGraphicsWidget::windowFrameSectionAt(), and QRBTree< T >::Node::~Node().

◆ scientific()

Q_CORE_EXPORT QTextStream& scientific ( QTextStream s)
related

◆ showbase()

Q_CORE_EXPORT QTextStream& showbase ( QTextStream s)
related

Referenced by operator<<().

◆ uppercasebase()

Q_CORE_EXPORT QTextStream& uppercasebase ( QTextStream s)
related

Referenced by operator<<().

◆ uppercasedigits()

Q_CORE_EXPORT QTextStream& uppercasedigits ( QTextStream s)
related

Referenced by operator<<().

◆ ws()

Q_CORE_EXPORT QTextStream& ws ( QTextStream s)
related