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

QString & QString::insert ( int  position,
QChar  ch 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Inserts ch at the given index position in the string.

Definition at line 1148 of file qstring.cpp.

References size(), and QChar::unicode().

Referenced by QRegExp::escape(), QUrl::fromPunycode(), insert(), Q3UriDrag::localFileToUri(), Q3TextEdit::optimAppendTag(), Q3TextEdit::optimText(), QDBusConnection::registerObject(), replace(), and Q3UriDrag::uriToLocalFile().

    if (i < 0)
        i += d->size;
    if (i < 0)
        return *this;
    expand(qMax(i, d->size));
    ::memmove(d->data + i + 1, d->data + i, (d->size - i) * sizeof(QChar));
    d->data[i] = ch.unicode();
    return *this;

Generated by  Doxygen 1.6.0   Back to index