src/corelib/io/qdebug.h
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     7 ** This file is part of the QtCore module of the Qt Toolkit.
     8 **
     8 **
    91     inline QDebug &space() { stream->space = true; stream->ts << ' '; return *this; }
    91     inline QDebug &space() { stream->space = true; stream->ts << ' '; return *this; }
    92     inline QDebug &nospace() { stream->space = false; return *this; }
    92     inline QDebug &nospace() { stream->space = false; return *this; }
    93     inline QDebug &maybeSpace() { if (stream->space) stream->ts << ' '; return *this; }
    93     inline QDebug &maybeSpace() { if (stream->space) stream->ts << ' '; return *this; }
    94 
    94 
    95     inline QDebug &operator<<(QChar t) { stream->ts << '\'' << t << '\''; return maybeSpace(); }
    95     inline QDebug &operator<<(QChar t) { stream->ts << '\'' << t << '\''; return maybeSpace(); }
    96     inline QDebug &operator<<(QBool t) { stream->ts << (bool(t) ? "true" : "false"); return maybeSpace(); }
    96     inline QDebug &operator<<(QBool t) { stream->ts << (bool(t != 0) ? "true" : "false"); return maybeSpace(); }
    97     inline QDebug &operator<<(bool t) { stream->ts << (t ? "true" : "false"); return maybeSpace(); }
    97     inline QDebug &operator<<(bool t) { stream->ts << (t ? "true" : "false"); return maybeSpace(); }
    98     inline QDebug &operator<<(char t) { stream->ts << t; return maybeSpace(); }
    98     inline QDebug &operator<<(char t) { stream->ts << t; return maybeSpace(); }
    99     inline QDebug &operator<<(signed short t) { stream->ts << t; return maybeSpace(); }
    99     inline QDebug &operator<<(signed short t) { stream->ts << t; return maybeSpace(); }
   100     inline QDebug &operator<<(unsigned short t) { stream->ts << t; return maybeSpace(); }
   100     inline QDebug &operator<<(unsigned short t) { stream->ts << t; return maybeSpace(); }
   101     inline QDebug &operator<<(signed int t) { stream->ts << t; return maybeSpace(); }
   101     inline QDebug &operator<<(signed int t) { stream->ts << t; return maybeSpace(); }