Logo Search packages:      
Sourcecode: qt4-x11 version File versions

bool QTextStream::atEnd (  )  const

Returns true if there is no more data to be read from the QTextStream; otherwise returns false. This is similar to, but not the same as calling QIODevice::atEnd(), as QTextStream also takes into account its internal Unicode buffer.

Definition at line 1530 of file qtextstream.cpp.

Referenced by Window::findFiles(), and QDesktopServices::storageLocation().

{
    Q_D(const QTextStream);
    CHECK_VALID_STREAM(true);

    if (d->string)
        return d->string->size() == d->stringOffset;
    return d->readBuffer.isEmpty() && d->device->atEnd();
}


Generated by  Doxygen 1.6.0   Back to index