Classes | Macros | Functions | Variables
qtextstream.cpp File Reference
#include "qtextstream.h"
#include "qtextcodec.h"
#include "qregexp.h"
#include "qbuffer.h"
#include "qfile.h"
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  QTextStreamPrivate
 
class  QStringBuffer
 

Macros

#define CHECK_STREAM_PRECOND
 
#define I_SHORT   0x0010
 
#define I_INT   0x0020
 
#define I_LONG   0x0030
 
#define I_TYPE_MASK   0x00f0
 
#define I_BASE_2   QTS::bin
 
#define I_BASE_8   QTS::oct
 
#define I_BASE_10   QTS::dec
 
#define I_BASE_16   QTS::hex
 
#define I_BASE_MASK   (QTS::bin | QTS::oct | QTS::dec | QTS::hex)
 
#define I_SIGNED   0x0100
 
#define I_UNSIGNED   0x0200
 
#define I_SIGN_MASK   0x0f00
 

Functions

QTextStreambin (QTextStream &s)
 
QTextStreamoct (QTextStream &s)
 
QTextStreamdec (QTextStream &s)
 
QTextStreamhex (QTextStream &s)
 
QTextStreamendl (QTextStream &s)
 
QTextStreamflush (QTextStream &s)
 
QTextStreamws (QTextStream &s)
 
QTextStreamreset (QTextStream &s)
 

Variables

static const QChar QEOF = QChar((ushort)0xffff)
 

Macro Definition Documentation

#define CHECK_STREAM_PRECOND
Value:
if ( !dev ) { \
qWarning( "QTextStream: No device" ); \
return *this; }
void qWarning(const char *msg,...)
Definition: qglobal.cpp:409

Definition at line 160 of file qtextstream.cpp.

#define I_BASE_10   QTS::dec

Definition at line 175 of file qtextstream.cpp.

#define I_BASE_16   QTS::hex

Definition at line 176 of file qtextstream.cpp.

#define I_BASE_2   QTS::bin

Definition at line 173 of file qtextstream.cpp.

#define I_BASE_8   QTS::oct

Definition at line 174 of file qtextstream.cpp.

#define I_BASE_MASK   (QTS::bin | QTS::oct | QTS::dec | QTS::hex)

Definition at line 177 of file qtextstream.cpp.

#define I_INT   0x0020

Definition at line 169 of file qtextstream.cpp.

#define I_LONG   0x0030

Definition at line 170 of file qtextstream.cpp.

#define I_SHORT   0x0010

Definition at line 168 of file qtextstream.cpp.

#define I_SIGN_MASK   0x0f00

Definition at line 181 of file qtextstream.cpp.

#define I_SIGNED   0x0100

Definition at line 179 of file qtextstream.cpp.

#define I_TYPE_MASK   0x00f0

Definition at line 171 of file qtextstream.cpp.

#define I_UNSIGNED   0x0200

Definition at line 180 of file qtextstream.cpp.

Function Documentation

QTextStream& bin ( QTextStream s)

Definition at line 2006 of file qtextstream.cpp.

2007 {
2009  return s;
2010 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042
QTextStream& dec ( QTextStream s)

Definition at line 2018 of file qtextstream.cpp.

2019 {
2021  return s;
2022 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042
QTextStream& endl ( QTextStream s)

Definition at line 2030 of file qtextstream.cpp.

2031 {
2032  return s << '\n';
2033 }
QTextStream& flush ( QTextStream s)

Definition at line 2035 of file qtextstream.cpp.

2036 {
2037  if ( s.device() )
2038  s.device()->flush();
2039  return s;
2040 }
virtual void flush()=0
QIODevice * device() const
Definition: qtextstream.h:223
static QCString * s
Definition: config.cpp:1042
QTextStream& hex ( QTextStream s)

Definition at line 2024 of file qtextstream.cpp.

2025 {
2027  return s;
2028 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042
QTextStream& oct ( QTextStream s)

Definition at line 2012 of file qtextstream.cpp.

2013 {
2015  return s;
2016 }
int setf(int bits)
Definition: qtextstream.h:238
static const int basefield
Definition: qtextstream.h:134
static QCString * s
Definition: config.cpp:1042
QTextStream& reset ( QTextStream s)

Definition at line 2048 of file qtextstream.cpp.

2049 {
2050  s.reset();
2051  return s;
2052 }
static QCString * s
Definition: config.cpp:1042
QTextStream& ws ( QTextStream s)

Definition at line 2042 of file qtextstream.cpp.

2043 {
2044  s.skipWhiteSpace();
2045  return s;
2046 }
static QCString * s
Definition: config.cpp:1042
void skipWhiteSpace()

Variable Documentation

const QChar QEOF = QChar((ushort)0xffff)
static

Definition at line 184 of file qtextstream.cpp.