Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QString Class Reference

The QString class provides an abstraction of Unicode text and the classic C ''-terminated char array. More...

#include </home/clem/local/src/opie/qmake/include/qstring.h>

Inheritance diagram for QString:

Inheritance graph
[legend]
Collaboration diagram for QString:

Collaboration graph
[legend]
List of all members.

Public Types

enum  SectionFlags {
  SectionDefault = 0x00, SectionSkipEmpty = 0x01, SectionIncludeLeadingSep = 0x02, SectionIncludeTrailingSep = 0x04,
  SectionCaseInsensitiveSeps = 0x08
}

Public Member Functions

 QString ()
 QString (QChar)
 QString (const QString &)
 QString (const QByteArray &)
 QString (const QChar *unicode, uint length)
 QString (const char *str)
 QString (const std::string &)
 ~QString ()
QStringoperator= (const QString &)
QStringoperator= (const char *)
QStringoperator= (const std::string &)
QStringoperator= (const QCString &)
QStringoperator= (QChar c)
QStringoperator= (char c)
bool isNull () const
bool isEmpty () const
uint length () const
void truncate (uint pos)
QStringfill (QChar c, int len=-1)
QString copy () const
QString arg (long a, int fieldwidth=0, int base=10) const
QString arg (ulong a, int fieldwidth=0, int base=10) const
QString arg (int a, int fieldwidth=0, int base=10) const
QString arg (uint a, int fieldwidth=0, int base=10) const
QString arg (short a, int fieldwidth=0, int base=10) const
QString arg (ushort a, int fieldwidth=0, int base=10) const
QString arg (char a, int fieldwidth=0) const
QString arg (QChar a, int fieldwidth=0) const
QString arg (const QString &a, int fieldwidth=0) const
QString arg (double a, int fieldwidth=0, char fmt='g', int prec=-1) const
QStringsprintf (const char *format,...)
int find (QChar c, int index=0, bool cs=TRUE) const
int find (char c, int index=0, bool cs=TRUE) const
int find (const QString &str, int index=0, bool cs=TRUE) const
int find (const QRegExp &, int index=0) const
int find (const char *str, int index=0) const
int findRev (QChar c, int index=-1, bool cs=TRUE) const
int findRev (char c, int index=-1, bool cs=TRUE) const
int findRev (const QString &str, int index=-1, bool cs=TRUE) const
int findRev (const QRegExp &, int index=-1) const
int findRev (const char *str, int index=-1) const
int contains (QChar c, bool cs=TRUE) const
int contains (char c, bool cs=TRUE) const
int contains (const char *str, bool cs=TRUE) const
int contains (const QString &str, bool cs=TRUE) const
int contains (const QRegExp &) const
QString section (QChar sep, int start, int end=0xffffffff, int flags=SectionDefault) const
QString section (char sep, int start, int end=0xffffffff, int flags=SectionDefault) const
QString section (const char *in_sep, int start, int end=0xffffffff, int flags=SectionDefault) const
QString section (const QString &in_sep, int start, int end=0xffffffff, int flags=SectionDefault) const
QString section (const QRegExp &reg, int start, int end=0xffffffff, int flags=SectionDefault) const
QString left (uint len) const
QString right (uint len) const
QString mid (uint index, uint len=0xffffffff) const
QString leftJustify (uint width, QChar fill=' ', bool trunc=FALSE) const
QString rightJustify (uint width, QChar fill=' ', bool trunc=FALSE) const
QString lower () const
QString upper () const
QString stripWhiteSpace () const
QString simplifyWhiteSpace () const
QStringinsert (uint index, const QString &)
QStringinsert (uint index, const QChar *, uint len)
QStringinsert (uint index, QChar)
QStringinsert (uint index, char c)
QStringappend (char)
QStringappend (QChar)
QStringappend (const QString &)
QStringappend (const QByteArray &)
QStringappend (const char *)
QStringappend (const std::string &)
QStringprepend (char)
QStringprepend (QChar)
QStringprepend (const QString &)
QStringprepend (const QByteArray &)
QStringprepend (const char *)
QStringprepend (const std::string &)
QStringremove (uint index, uint len)
QStringremove (QChar c)
QStringremove (char c)
QStringremove (const QString &)
QStringremove (const QRegExp &)
QStringremove (const char *)
QStringreplace (uint index, uint len, const QString &)
QStringreplace (uint index, uint len, const QChar *, uint clen)
QStringreplace (uint index, uint len, QChar)
QStringreplace (uint index, uint len, char c)
QStringreplace (QChar c, const QString &)
QStringreplace (char c, const QString &after)
QStringreplace (const QString &, const QString &)
QStringreplace (const QRegExp &, const QString &)
QStringreplace (QChar, QChar)
short toShort (bool *ok=0, int base=10) const
ushort toUShort (bool *ok=0, int base=10) const
int toInt (bool *ok=0, int base=10) const
uint toUInt (bool *ok=0, int base=10) const
long toLong (bool *ok=0, int base=10) const
ulong toULong (bool *ok=0, int base=10) const
float toFloat (bool *ok=0) const
double toDouble (bool *ok=0) const
QStringsetNum (short, int base=10)
QStringsetNum (ushort, int base=10)
QStringsetNum (int, int base=10)
QStringsetNum (uint, int base=10)
QStringsetNum (long, int base=10)
QStringsetNum (ulong, int base=10)
QStringsetNum (float, char f='g', int prec=6)
QStringsetNum (double, char f='g', int prec=6)
void setExpand (uint index, QChar c)
QStringoperator+= (const QString &str)
QStringoperator+= (const QByteArray &str)
QStringoperator+= (const char *str)
QStringoperator+= (const std::string &)
QStringoperator+= (QChar c)
QStringoperator+= (char c)
QChar at (uint i) const
QChar operator[] (int i) const
QCharRef at (uint i)
QCharRef operator[] (int i)
QChar constref (uint i) const
QCharref (uint i)
const QCharunicode () const
const char * ascii () const
const char * latin1 () const
QCString utf8 () const
QCString local8Bit () const
bool operator! () const
 operator const char * () const
 operator std::string () const
const unsigned short * ucs2 () const
QStringsetUnicode (const QChar *unicode, uint len)
QStringsetUnicodeCodes (const ushort *unicode_as_ushorts, uint len)
QStringsetAscii (const char *, int len=-1)
QStringsetLatin1 (const char *, int len=-1)
int compare (const QString &s) const
int localeAwareCompare (const QString &s) const
void compose ()
const char * data () const
bool startsWith (const QString &) const
bool endsWith (const QString &) const
void setLength (uint newLength)
bool simpleText () const
bool isRightToLeft () const

Static Public Member Functions

static QString number (long, int base=10)
static QString number (ulong, int base=10)
static QString number (int, int base=10)
static QString number (uint, int base=10)
static QString number (double, char f='g', int prec=6)
static QString fromAscii (const char *, int len=-1)
static QString fromLatin1 (const char *, int len=-1)
static QString fromUtf8 (const char *, int len=-1)
static QString fromLocal8Bit (const char *, int len=-1)
static QString fromUcs2 (const unsigned short *ucs2)
static int compare (const QString &s1, const QString &s2)
static int localeAwareCompare (const QString &s1, const QString &s2)

Public Attributes

QT_STATIC_CONST QString null

Private Member Functions

 QString (int size, bool)
void deref ()
void real_detach ()
void subat (uint)
bool findArg (int &pos, int &len) const
void checkSimpleText () const
 QString (QStringData *dd, bool)
void detach ()

Static Private Member Functions

static QCharlatin1ToUnicode (const char *, uint *len, uint maxlen=(uint)-1)
static QCharlatin1ToUnicode (const QByteArray &, uint *len)
static char * unicodeToLatin1 (const QChar *, uint len)
static QStringDatamakeSharedNull ()

Private Attributes

QStringDatad

Static Private Attributes

static QStringDatashared_null = 0

Friends

class QConstString
class QTextStream
class QDeepCopy< QString >
Q_EXPORT QDataStreamoperator>> (QDataStream &, QString &)

Related Functions

(Note that these are not member functions.)

bool operator== (const QString &s1, const QString &s2)
bool operator== (const QString &s1, const char *s2)
bool operator== (const char *s1, const QString &s2)
bool operator!= (const QString &s1, const QString &s2)
bool operator!= (const QString &s1, const char *s2)
bool operator!= (const char *s1, const QString &s2)
bool operator< (const QString &s1, const char *s2)
bool operator< (const char *s1, const QString &s2)
bool operator<= (const QString &s1, const char *s2)
bool operator<= (const char *s1, const QString &s2)
bool operator> (const QString &s1, const char *s2)
bool operator> (const char *s1, const QString &s2)
bool operator>= (const QString &s1, const char *s2)
bool operator>= (const char *s1, const QString &s2)
const QString operator+ (const QString &s1, const QString &s2)
const QString operator+ (const QString &s1, const char *s2)
const QString operator+ (const char *s1, const QString &s2)
const QString operator+ (const QString &s, char c)
const QString operator+ (char c, const QString &s)
QDataStreamoperator<< (QDataStream &s, const QString &str)

Detailed Description

The QString class provides an abstraction of Unicode text and the classic C ''-terminated char array.

QString uses implicit sharing, which makes it very efficient and easy to use.

In all of the QString methods that take {const char *} parameters, the {const char *} is interpreted as a classic C-style ''-terminated ASCII string. It is legal for the {const char *} parameter to be 0. If the {const char *} is not ''-terminated, the results are undefined. Functions that copy classic C strings into a QString will not copy the terminating '' character. The QChar array of the QString (as returned by unicode()) is generally not terminated by a ''. If you need to pass a QString to a function that requires a C ''-terminated string use latin1().

QString::null A QString that has not been assigned to anything is null, i.e. both the length and data pointer is 0. A QString that references the empty string ("", a single '' char) is empty. Both null and empty QStrings are legal parameters to the methods. Assigning {(const char *) 0} to QString gives a null QString. For convenience, QString::null is a null QString. When sorting, empty strings come first, followed by non-empty strings, followed by null strings. We recommend using {if ( !str.isNull() )} to check for a non-null string rather than {if ( !str )}; see operator!() for an explanation.

Note that if you find that you are mixing usage of QCString, QString, and QByteArray, this causes lots of unnecessary copying and might indicate that the true nature of the data you are dealing with is uncertain. If the data is ''-terminated 8-bit data, use QCString; if it is unterminated (i.e. contains ''s) 8-bit data, use QByteArray; if it is text, use QString.

Lists of strings are handled by the QStringList class. You can split a string into a list of strings using QStringList::split(), and join a list of strings into a single string with an optional separator using QStringList::join(). You can obtain a list of strings from a string list that contain a particular substring or that match a particular regex using QStringList::grep().

Note for C programmers

Due to C++'s type system and the fact that QString is implicitly shared, QStrings may be treated like ints or other simple base types. For example:

    QString boolToString( bool b )
    {
        QString result;
        if ( b )
            result = "True";
        else
            result = "False";
        return result;
    }

The variable, result, is an auto variable allocated on the stack. When return is called, because we're returning by value, The copy constructor is called and a copy of the string is returned. (No actual copying takes place thanks to the implicit sharing, see below.)

Throughout Qt's source code you will encounter QString usages like this:

    QString func( const QString& input )
    {
        QString output = input;
        // process output
        return output;
    }

The 'copying' of input to output is almost as fast as copying a pointer because behind the scenes copying is achieved by incrementing a reference count. QString (like all Qt's implicitly shared classes) operates on a copy-on-write basis, only copying if an instance is actually changed.

If you wish to create a deep copy of a QString without losing any Unicode information then you should use QDeepCopy.

See also:
QChar QCString QByteArray QConstString

Definition at line 382 of file qstring.h.


Member Enumeration Documentation

enum QString::SectionFlags
 

SectionDefault Empty fields are counted, leading and trailing separators are not included, and the separator is compared case sensitively.

SectionSkipEmpty Treat empty fields as if they don't exist, i.e. they are not considered as far as start and end are concerned.

SectionIncludeLeadingSep Include the leading separator (if any) in the result string.

SectionIncludeTrailingSep Include the trailing separator (if any) in the result string.

SectionCaseInsensitiveSeps Compare the separator case-insensitively.

Any of the last four values can be OR-ed together to form a flag.

See also:
section()
Enumeration values:
SectionDefault 
SectionSkipEmpty 
SectionIncludeLeadingSep 
SectionIncludeTrailingSep 
SectionCaseInsensitiveSeps 

Definition at line 466 of file qstring.h.


Constructor & Destructor Documentation

QString::QString  )  [inline]
 

Constructs a null string, i.e. both the length and data pointer are 0.

See also:
isNull()

Definition at line 761 of file qstring.h.

References d, and QShared::ref().

Referenced by contains(), copy(), findRev(), fromLatin1(), fromUcs2(), left(), mid(), operator+=(), operator=(), prepend(), replace(), right(), and section().

QString::QString QChar  ch  ) 
 

Constructs a string of length one, containing the character ch.

Definition at line 13178 of file qstring.cpp.

References d, QT_ALLOC_QCHAR_VEC, and QStringData::unicode.

QString::QString const QString s  ) 
 

Constructs an implicitly shared copy of s. This is very fast since it only involves incrementing a reference count.

Definition at line 13188 of file qstring.cpp.

References d, and QShared::ref().

QString::QString const QByteArray ba  ) 
 

Constructs a string that is a deep copy of ba interpreted as a classic C string.

Definition at line 13223 of file qstring.cpp.

References QTextCodec::codecForCStrings(), d, fromAscii(), internalLatin1ToUnicode(), and l.

QString::QString const QChar unicode,
uint  length
 

Constructs a string that is a deep copy of the first length characters in the QChar array.

If unicode and length are 0, then a null string is created.

If only unicode is 0, the string is empty but has length characters of space preallocated: QString expands automatically anyway, but this may speed up some cases a little. We recommend using the plain constructor and setLength() for this purpose since it will result in more readable code.

See also:
isNull() setLength()

Definition at line 13252 of file qstring.cpp.

References d, makeSharedNull(), QT_ALLOC_QCHAR_VEC, QShared::ref(), and shared_null.

QString::QString const char *  str  ) 
 

Constructs a string that is a deep copy of str, interpreted as a classic C string.

If str is 0, then a null string is created.

This is a cast constructor, but it is perfectly safe: converting a Latin1 const char* to QString preserves all the information. You can disable this constructor by defining QT_NO_CAST_ASCII when you compile your applications. You can also make QString objects by using setLatin1(), fromLatin1(), fromLocal8Bit(), and fromUtf8(). Or whatever encoding is appropriate for the 8-bit data you have.

See also:
isNull()

Definition at line 13282 of file qstring.cpp.

References QTextCodec::codecForCStrings(), d, fromAscii(), internalLatin1ToUnicode(), and l.

QString::QString const std::string &  str  ) 
 

Constructs a string that is a deep copy of str.

This is the same as fromAscii(str).

Definition at line 13303 of file qstring.cpp.

References QTextCodec::codecForCStrings(), d, fromAscii(), internalLatin1ToUnicode(), and l.

QString::~QString  )  [inline]
 

Destroys the string and frees the string's data if this is the last reference to the string.

Definition at line 767 of file qstring.h.

References d, QStringData::deleteSelf(), QShared::deref(), and shared_null.

QString::QString int  size,
bool 
[private]
 

For internal use only.

Private function.

Constructs a string with preallocated space for size characters.

The string is empty.

See also:
isNull()

Definition at line 13206 of file qstring.cpp.

References d, l, QT_ALLOC_QCHAR_VEC, QShared::ref(), and shared_null.

QString::QString QStringData dd,
bool 
[inline, private]
 

Definition at line 669 of file qstring.h.


Member Function Documentation

QString & QString::append const std::string &  str  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends str to the string and returns a reference to the result.

Equivalent to operator+=().

Definition at line 855 of file qstring.h.

References operator+=().

QString & QString::append const char *  str  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends str to the string and returns a reference to the result.

Equivalent to operator+=().

Definition at line 842 of file qstring.h.

References operator+=().

QString & QString::append const QByteArray str  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends str to the string and returns a reference to the result.

Equivalent to operator+=().

Definition at line 839 of file qstring.h.

References operator+=().

QString & QString::append const QString str  )  [inline]
 

Appends str to the string and returns a reference to the result.

        string = "Test";
        string.append( "ing" );        // string == "Testing"

Equivalent to operator+=().

Definition at line 835 of file qstring.h.

References operator+=().

QString & QString::append QChar  ch  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends character ch to the string and returns a reference to the result.

Equivalent to operator+=().

Definition at line 846 of file qstring.h.

References operator+=().

QString & QString::append char  ch  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends character ch to the string and returns a reference to the result.

Equivalent to operator+=().

Definition at line 849 of file qstring.h.

References operator+=().

Referenced by ComposeMail::accept(), Budget::addBudget(), Budget::addLineItem(), BackupAndRestore::backupRootFs(), KateView::bookmarkMenuAboutToShow(), MainWindow::buildFilename(), TaskSelector::buildMenu(), Sheet::calculateFunction(), Wellenreiter::channelHopped(), Checkbook::Checkbook(), Status::confMisc(), Referee::confMisc(), Painter::confMisc(), KpacmanWidget::confMisc(), Appearance::createColorTab(), Appearance::createDecoTab(), MakefileGenerator::createObjectList(), Appearance::createStyleTab(), PageListBoxItem::dateTimeString(), PageInformationDialog::dateTimeString(), decimalForm(), KVNCBookmarkDlg::decipher(), decipher(), Budget::deleteBudget(), Budget::deleteLineItem(), Appearance::deleteSchemeClicked(), OipkgPackage::details(), TheNSResources::detectCurrentUser(), Account::displayAccounts(), BudgetDisplay::displayBudgetNames(), BudgetDisplay::displayLineItems(), Budget::displayLineItems(), Transfer::displayTransfers(), WeatherPluginWidget::displayWeather(), GpsLocation::dmsPosition(), Checkbook::drawBalanceChart(), KVNCBookmarkDlg::encipher(), encipher(), EmailHandler::encode64base(), MiscFunctions::encodeBase64Base(), EmailHandler::encodeFile(), exponentForm(), OCompletion::extractStringsFromNode(), Status::fillPixmapName(), Painter::fillPixmapName(), Referee::fillStrList(), WriteMail::forward(), GifSlave::fullImageInfo(), BmpSlave::fullImageInfo(), ExcelBook::GetASCII(), Budget::getBudgetTotal(), Preferences::getDate(), Budget::getLineItemAmount(), Budget::getLineItemIDs(), Budget::getLineItems(), Budget::getLineItemTime(), MenuLauncher::getMenuText(), Budget::getNumberOfLineItems(), WeatherPluginWidget::getPressure(), BatteryStatus::getProcApmStatusIpaq(), CategoryFilterImpl::getSelectedFilter(), TextParser::getString(), WeatherPluginWidget::getTemp(), ExcelBook::GetUnicode(), WeatherPluginWidget::getWind(), Opie::Core::OInputDevice::globalKeyMask(), Opie::Core::OInputDevice::globalSwitchMask(), gs::gs(), BmpSlave::iconViewName(), InstallDlg::InstallDlg(), InstallDlgImpl::InstallDlgImpl(), OIpkg::installedPackages(), OFileSelectorItem::key(), Opie::Ui::Internal::OFileSelectorItem::key(), OIpkg::linkPackageDir(), OPackageManager::loadAvailablePackages(), OPackageManager::loadInstalledPackages(), QLocale::name(), ProcessInvoker::notifyStatus(), KHCWidget::onClick_Gen(), PackageWindow::PackageWindow(), Genericwrapper::parseAddressList(), parseEmailFrom(), parseEmailTo(), Genericwrapper::parseGroup(), QSettingsHeading::parseLine(), Genericwrapper::parseMailbox(), Genericwrapper::parseMailboxList(), CameraMainWindow::performCapture(), CharStringConfig::pick(), PredictTabWidget::PredictTabWidget(), Opie::MM::ExifData::process_COM(), Engine::pushValue(), QPEApplication::qpeDir(), OProcess::quote(), Opie::Core::OProcess::quote(), readElem(), QSettings::readListEntry(), Server::readStatusFile(), ExcelBook::ReadUnicodeChar(), PackageHandler::readyReadStderr(), PackageHandler::readyReadStdout(), Dialer::receive(), ComposeMail::reject(), Ipkg::removeStatusEntry(), WriteMail::reply(), WeatherPluginWidget::retreiveData(), Appearance::saveSchemeClicked(), SettingsTabWidget::saveSettings(), DBCsv::saveSource(), Board::score(), Transaction::selectAllTransactions(), QCopBridge::sendDesktopMessageOld(), IRCConnection::sendLine(), Server::Server(), DataManager::setAvailableCategories(), OIpkg::setConfigItems(), KeycfgErrorHandler::setErrorString(), ANetwork::setSpecificAttribute(), Gutenbrowser::setStatus(), TextWidget::setText(), SettingsTabWidget::SettingsTabWidget(), NetworkSettings::SLOT_Disable(), NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_GenerateConfig(), NetworkSettings::SLOT_Up(), OpieTooth::Manager::slotConnectionOutput(), DialDialog::slotEnterNumber(), OpieTooth::Manager::slotHCIOut(), Checkbook::slotNameChanged(), PredictTabWidget::slotPredictTime(), OpieTooth::Manager::slotSDPOut(), ModulesInfo::slotSendClicked(), Opietooth2::OTDevice::slotStdErr(), OpieObex::Obex::slotStdOut(), OpieObex::BtObex::slotStdOut(), MainWindow::slotTextRefClicked(), Wellenreiter::startClicked(), BatteryStatus::statusText(), CameraMainWindow::stopVideoCapture(), Todo::TableView::TableView(), TaskEditorOverView::TaskEditorOverView(), KateDocument::text(), TimeString::timeString(), IRCOutput::toHTML(), Package::toString(), Server::toString(), Transaction::Transaction(), QTextStream::ts_getbuf(), QTextStream::ts_getline(), BudgetDisplay::updateBudgetInformation(), Budget::updateLineItem(), KeyHelperWidget::version(), VersionInfo::VersionInfo(), ModulesInfo::viewModules(), TranInfo::write(), DspMakefileGenerator::writeDspParts(), and NetworkSettings::~NetworkSettings().

QString QString::arg double  a,
int  fieldwidth = 0,
char  fmt = 'g',
int  prec = -1
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. arg-formats

Argument a is formatted according to the fmt format specified, which is 'g' by default and can be any of the following:

Format Meaning e format as [-]9.9e[+|-]999 E format as [-]9.9E[+|-]999 f format as [-]9.9 g use e or f format, whichever is the most concise G use E or f format, whichever is the most concise

With 'e', 'E', and 'f', prec is the number of digits after the decimal point. With 'g' and 'G', prec is the maximum number of significant digits (trailing zeroes are omitted).

        double d = 12.34;
        QString ds = QString( "'E' format, precision 3, gives %1" )
                        .arg( d, 0, 'E', 3 );
        // ds == "1.234E+001"

Definition at line 13720 of file qstring.cpp.

References arg(), and number().

QString QString::arg const QString a,
int  fieldwidth = 0
const
 

This function will return a string that replaces the lowest numbered occurrence of 1, 2, ..., 9 with a.

The fieldwidth value specifies the minimum amount of space that a is padded to. A positive value will produce right-aligned text, whereas a negative value will produce left-aligned text.

The following example shows how we could create a 'status' string when processing a list of files:

    QString status = QString( "Processing file %1 of %2: %3" )
                        .arg( i )         // current file's number
                        .arg( total )     // number of files to process
                        .arg( fileName ); // current file's name

It is generally fine to use filenames and numbers as we have done in the example above. But note that using arg() to construct natural language sentences does not usually translate well into other languages because sentence structure and word order often differ between languages.

If there is no place marker (1 or 2, etc.), a warning message (qWarning()) is output and the text is appended at the end of the string. We recommend that the correct number of place markers is always used in production code.

Definition at line 13564 of file qstring.cpp.

References findArg(), insert(), latin1(), length(), pos, qWarning(), replace(), and s.

QString QString::arg QChar  a,
int  fieldwidth = 0
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 13685 of file qstring.cpp.

References arg().

QString QString::arg char  a,
int  fieldwidth = 0
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. a is assumed to be in the Latin1 character set.

Definition at line 13675 of file qstring.cpp.

References arg().

QString QString::arg ushort  a,
int  fieldwidth = 0,
int  base = 10
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. a is expressed in base base, which is 10 by default and must be between 2 and 36.

Definition at line 883 of file qstring.h.

References arg().

QString QString::arg short  a,
int  fieldwidth = 0,
int  base = 10
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. a is expressed in base base, which is 10 by default and must be between 2 and 36.

Definition at line 880 of file qstring.h.

References arg().

QString QString::arg uint  a,
int  fieldwidth = 0,
int  base = 10
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. a is expressed in base base, which is 10 by default and must be between 2 and 36.

Definition at line 877 of file qstring.h.

References arg().

QString QString::arg int  a,
int  fieldwidth = 0,
int  base = 10
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. a is expressed in base base, which is 10 by default and must be between 2 and 36.

Definition at line 874 of file qstring.h.

References arg().

QString QString::arg ulong  a,
int  fieldwidth = 0,
int  base = 10
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. a is expressed in base base, which is 10 by default and must be between 2 and 36.

Definition at line 13628 of file qstring.cpp.

References arg(), and number().

QString QString::arg long  a,
int  fieldwidth = 0,
int  base = 10
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The fieldwidth value specifies the minimum amount of space that a is padded to. A positive value will produce a right-aligned number, whereas a negative value will produce a left-aligned number.

a is expressed in base base, which is 10 by default and must be between 2 and 36.

        QString str;
        str = QString( "Decimal 63 is %1 in hexadecimal" )
                .arg( 63, 0, 16 );
        // str == "Decimal 63 is 3f in hexadecimal"

Definition at line 13617 of file qstring.cpp.

References number().

Referenced by arg(), MainWindow::dealWithItem(), FlatDecoration::drawButton(), Win32MakefileGenerator::findLibraries(), KRFBDecoder::gotDesktopName(), DspMakefileGenerator::init(), VcprojGenerator::initOld(), LauncherView::loadBackgroundImage(), IRCMessageParser::parseNumerical(), ScreenshotControl::performGrab(), SystemFile::postDeviceSection(), SystemFile::preDeviceSection(), TestItem::report(), ORecurranceWidget::setupYearly(), OPimRecurrenceWidget::setupYearly(), RepeatEntry::setupYearly(), ORecurranceWidget::slotMonthLabel(), OPimRecurrenceWidget::slotMonthLabel(), RepeatEntry::slotMonthLabel(), ConnectWidget::timerEvent(), TimeString::timeString(), ImageViewer::updateImageInfo(), MenuButton::updateLabel(), WellenreiterMainWindow::uploadSession(), and DspMakefileGenerator::writeDspParts().

const char * QString::ascii  )  const
 

Returns an 8-bit ASCII representation of the string.

If a codec has been set using QTextCodec::codecForCStrings(), it is used to convert Unicode to 8-bit char. Otherwise, this function does the same as latin1().

See also:
fromAscii(), latin1(), utf8(), local8Bit()

Definition at line 16659 of file qstring.cpp.

References QStringData::ascii, QTextCodec::codecForCStrings(), d, FALSE, QStringData::islatin1, latin1(), and s.

Referenced by SSHKeysApp::add_text_changed(), PackageHandler::addPackageFiles(), OThemeBase::applyMiscResourceGroup(), OThemeBase::applyResourceGroup(), QLinphoneMainWidget::callOrAccept(), ExcelBook::CellDataString(), PackageHandler::cleanupPackageFiles(), createSymlinks(), IMAPFolder::decodeFolderName(), TsHandler::endElement(), SSHKeysApp::flush_sshadd_output(), ExcelBook::GetFormula(), operator std::string(), KeytabReader::parseTo(), removeSymlinks(), QCString::replace(), KeytabReader::ReportError(), Qt3::QTextDocument::setRichTextInternal(), MainWindow::slotImportExcel(), Stumbler::start(), QGDict::statistics(), and QGCache::statistics().

QCharRef QString::at uint  i  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The function returns a reference to the character at index i. The resulting reference can then be assigned to, or used immediately, but it will become invalid once further modifications are made to the original string.

If i is beyond the length of the string then the string is expanded with QChar::null.

Definition at line 732 of file qstring.h.

QChar QString::at uint  i  )  const [inline]
 

Returns the character at index i, or 0 if i is beyond the length of the string.

        const QString string( "abcdefgh" );
        QChar ch = string.at( 4 );
        // ch == 'e'

If the QString is not const (i.e. const QString) or const& (i.e. const QString &), then the non-const overload of at() will be used instead.

Definition at line 581 of file qstring.h.

References d, and QChar::null.

Referenced by OCompletion::addItem(), WLANImp::changeAndSaveSettingFile(), QDir::cleanDirPath(), CleanString(), compose(), deQuote(), QTReaderApp::do_jump(), OCompletion::extractStringsFromNodeCI(), MakefileGenerator::fileFixify(), Qt3::QTextDocument::find(), OCompletion::findAllCompletions(), OCompletion::findCompletion(), Win32MakefileGenerator::findLibraries(), Qt3::QTextDocument::focusNextPrevChild(), KLocale::formatDate(), KLocale::formatTime(), CHM::getch(), TEScreen::getHistory(), Interfaces::getInterfaceList(), kdbgstream::operator<<(), Opie::Core::odbgstream::operator<<(), operator[](), QMakeProject::parse(), EmailHandler::parse(), parseNextNumber(), WLANImp::parseSettingFile(), CRegExpFilt::prepreprocessing(), CRegExpFilt::preprocessing(), put_it_in(), Score::read(), Opie::Core::OConfig::readColorEntry(), KLocale::readDate(), readInt(), PlayListWidget::readPls(), Om3u::readPls(), KLocale::readTime(), CDrawBuffer::render(), Score::Score(), Qt3::QTextDocument::selectedText(), setExpand(), MultiKey::Keys::setKeysFromFile(), Score::setScheme(), Interfaces::setStanza(), OIpkgConfigDlg::slotOptSelectSourceListsPath(), OIpkgDestDlg::slotSelectPath(), EntryDlg::slotSelectPath(), ConfigureDlg::slotSelectSwordPath(), and QTextStream::ts_getline().

void QString::checkSimpleText  )  const [private]
 

For internal use only.

Definition at line 17196 of file qstring.cpp.

References d, end, FALSE, QStringData::issimpletext, QStringData::len, p, TRUE, QChar::unicode(), and QStringData::unicode.

int QString::compare const QString s1,
const QString s2
[inline, static]
 

Lexically compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is based exclusively on the numeric Unicode values of the characters and is very fast, but is not what a human would expect. Consider sorting user-interface strings with QString::localeAwareCompare().

        int a = QString::compare( "def", "abc" );   // a > 0
        int b = QString::compare( "abc", "def" );   // b < 0
        int c = QString::compare(" abc", "abc" );   // c == 0

Definition at line 623 of file qstring.h.

References compare().

int QString::compare const QString s  )  const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Lexically compares this string with s and returns an integer less than, equal to, or greater than zero if it is less than, equal to, or greater than s.

Definition at line 17269 of file qstring.cpp.

References ucstrcmp().

Referenced by TVVariant::closer(), compare(), compareAppletPositions(), QStringVector::compareItems(), description(), AccountDisplay::editAccount(), BudgetDisplay::editBudget(), ZSafe::editCategory(), localeAwareCompare(), DateBookSettings::pluginItemClicked(), qt_cmp_si(), ZSafe::showInfo(), EditAccounts::slotNewAccount(), Opie::Internal::summary(), Server::systemMsg(), Opie::Internal::OPimSortVector< T >::testString(), PinPlugin::verify(), TodayConfig::writeConfig(), and XLessThanY().

void QString::compose  ) 
 

Warning:
This function is not supported in Qt 3.x. It is provided for experimental and illustrative purposes only. It is mainly of interest to those experimenting with Arabic and other composition-rich texts.
Applies possible ligatures to a QString. Useful when composition-rich text requires rendering with glyph-poor fonts, but it also makes compositions such as QChar(0x0041) ('A') and QChar(0x0308) (Unicode accent diaresis), giving QChar(0x00c4) (German A Umlaut).

Definition at line 12836 of file qstring.cpp.

References at(), code, QLigature::current(), QChar::Final, QLigature::first(), format(), QLigature::head(), len, length(), QLigature::match(), QLigature::next(), replace(), QLigature::tag(), and QChar::unicode().

QChar QString::constref uint  i  )  const [inline]
 

Returns the QChar at index i by value.

Equivalent to at(i).

See also:
ref()

Definition at line 587 of file qstring.h.

References at().

Referenced by TextLine::getChar(), remove(), QTextStream::ts_getbuf(), and QTextStream::ts_getline().

int QString::contains const QRegExp rx  )  const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns the number of times the regexp, rx, matches in the string.

This function counts overlapping matches, so in the example below, there are four instances of "ana" or "ama".

        QString str = "banana and panama";
        QRegExp rxp = QRegExp( "a[nm]a", TRUE, FALSE );
        int i = str.contains( rxp );    // i == 4

See also:
find() findRev()

Definition at line 15851 of file qstring.cpp.

References length().

int QString::contains const QString str,
bool  cs = TRUE
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns the number of times str occurs in the string.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

This function counts overlapping strings, so in the example below, there are two instances of "ana" in "bananas".

    QString str( "bananas" );
    int i = str.contains( "ana" );  // i == 2

See also:
findRev()

Definition at line 14794 of file qstring.cpp.

References bm_find(), bm_init_skiptable(), i, and isNull().

int QString::contains const char *  str,
bool  cs = TRUE
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns the number of times the string str occurs in the string.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

Definition at line 14741 of file qstring.cpp.

References contains(), and QString().

int QString::contains char  c,
bool  cs = TRUE
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 456 of file qstring.h.

int QString::contains QChar  c,
bool  cs = TRUE
const
 

Returns the number of times the character c occurs in the string.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

    QString string( "Trolltech and Qt" );
    int i = string.contains( 't', FALSE );  // i == 3

Definition at line 14711 of file qstring.cpp.

References length(), lower(), and unicode().

Referenced by add_domain(), ZSafe::addCategory(), IRCChannelTab::appendText(), Gutenbrowser::Bookmark(), CalculatorImpl::CalculatorImpl(), Server::cardInfoString(), WLANImp::changeAndSaveSettingFile(), ConnectWidget::checkBuffers(), contains(), QCString::contains(), DataElem::contains(), IRCServerTab::containsPing(), QDir::convertSeparators(), QPEApplication::defaultRotation(), NetworkDialog::downloadFile(), ZSafe::editCategory(), CalculatorImpl::enterNumber(), QSettings::entryList(), Process::exec(), AppLnk::file(), Referee::fillArray(), TabManager::findInstalledApplication(), fmtDateTime(), MakefileGenerator::generateDependencies(), LibraryDialog::getAuthor(), Interfaces::getInterfaceList(), Gutenbrowser::getTitle(), LibraryDialog::httpDownload(), Categories::id(), Opie::Core::Internal::Zaurus::init(), Konsole::init(), OContact::insertEmail(), Contact::insertEmail(), Opie::OPimContact::insertEmail(), OipkgPackage::installed(), OIpkg::installedPackages(), Server::installLocationsString(), FileSystem::isWritable(), PackageListItem::key(), ZkbConfig::load(), MainView::MainView(), MainWindowImp::MainWindowImp(), Qt3::QTextFormat::makeTextFormat(), QMakeProject::parse(), ListViewItemConfFile::parseFile(), DingWidget::parseInfo(), WLANImp::parseSettingFile(), ProjectBuilderMakefileGenerator::pbuilderVersion(), ServerPI::process(), Opie::Core::OProcess::processPID(), HttpFactory::processResponse(), qt_verify_key(), PackageHandler::readyReadStdout(), Dialer::receive(), Interface::refresh(), removedns(), OContact::removeEmail(), Contact::removeEmail(), Opie::OPimContact::removeEmail(), Ipkg::removeStatusEntry(), FileItem::rename(), PmIpkg::runIpkg(), DictFilterConfig::scanMatch(), Qt3::QTextEdit::scrollToAnchor(), MultiKey::Keys::setKeysFromFile(), InterfaceSetupImp::setProfile(), Qt3::QTextDocument::setRichTextInternal(), Interfaces::setStanza(), Gutenbrowser::setTitle(), LnkProperties::setupLocations(), OpieTooth::HciConfWrapper::setValue(), LauncherView::showType(), QProcess::start(), Opie::Core::ODirNotification::subdirCreated(), TabManager::swapInstalledLocation(), Server::systemMsg(), ConnectWidget::timerEvent(), Dialer::trydial(), and Win32MakefileGenerator::writeSubDirs().

QString QString::copy  )  const [inline]
 

In Qt 2.0 and later, all calls to this function are needless. Just remove them.

Definition at line 808 of file qstring.h.

References QString().

Referenced by ModemTransfer::readtty().

const char * QString::data void   )  const [inline]
 

Returns a pointer to a ''-terminated classic C string.

In Qt 1.x, this returned a char* allowing direct manipulation of the string as a sequence of bytes. In Qt 2.x where QString is a Unicode string, char* conversion constructs a temporary string, and hence direct character operations are meaningless.

Definition at line 637 of file qstring.h.

Referenced by IMAPwrapper::address_list_to_stringlist(), RunningAppBar::applicationLaunched(), Opie::XMLElement::attribute(), Opie::Core::XMLElement::attribute(), Generatemail::buildFilePart(), Generatemail::buildTxtPart(), KpacmanWidget::confScheme(), Painter::fillScoreString(), Board::init(), Referee::introPaint(), AppLauncher::isRunning(), Painter::loadPixmap(), Score::paintEvent(), Opie::OPimContactAccessBackend_VCard::parseVObject(), DateBookDB::saveJournalEntry(), RecPart::searchParamter(), ViewMail::setBody(), Sheet::swapCells(), and Bitfont::text().

void QString::deref  )  [private]
 

Definition at line 13340 of file qstring.cpp.

References d, QShared::deref(), and shared_null.

Referenced by fill(), operator=(), setLength(), and setUnicode().

void QString::detach  )  [inline, private]
 

If the string does not share its data with another QString instance, nothing happens; otherwise the function creates a new, unique copy of this string. This function is called whenever the map is modified. The implicit sharing mechanism is implemented this way.

Definition at line 776 of file qstring.h.

References real_detach().

bool QString::endsWith const QString s  )  const
 

Returns TRUE if the string ends with s; otherwise returns FALSE.

See also:
startsWith()

Definition at line 17865 of file qstring.cpp.

References d, FALSE, i, isNull(), length(), pos, TRUE, and QStringData::unicode.

Referenced by QDir::absFilePath(), VCFilter::addIMGstage(), VCFilter::addMOCstage(), VCFilter::addUICstage(), QMakeProject::doProjectTest(), QMakeProject::doVariableReplace(), NmakeMakefileGenerator::findDependencies(), UnixMakefileGenerator::findDependencies(), Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), QMakeMetaInfo::findLib(), Win32MakefileGenerator::findLibraries(), MetrowerksMakefileGenerator::fixifyToMacPath(), MakefileGenerator::generateDependencies(), groupKey(), DspMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), VcprojGenerator::initLibrarianTool(), VcprojGenerator::initLinkerTool(), main(), VCFilter::modifyPCHstage(), ProjectBuilderMakefileGenerator::openOutput(), MakefileGenerator::processPrlFile(), QMakeProject::read(), QMakeMetaInfo::readLib(), QMakeMetaInfo::readLibtoolFile(), MakefileGenerator::specdir(), DspMakefileGenerator::writeDspParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), NmakeMakefileGenerator::writeNmakeParts(), VcprojGenerator::writeSubDirs(), and ProjectBuilderMakefileGenerator::writeSubdirs().

QString & QString::fill QChar  c,
int  len = -1
 

Fills the string with len characters of value c, and returns a reference to the string.

If len is negative (the default), the current string length is used.

        QString str;
        str.fill( 'g', 5 );      // string == "ggggg"

Definition at line 13950 of file qstring.cpp.

References d, deref(), length(), and QT_ALLOC_QCHAR_VEC.

Referenced by Wellenreiter::channelHopped(), Status::decodeHexOctString(), Painter::decodeHexOctString(), CalculatorImpl::enterNumber(), Board::init(), KateDocument::optimizeLeadingSpace(), QGDict::statistics(), QGCache::statistics(), and FileBrowser::updateDirMenu().

int QString::find const char *  str,
int  index = 0
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Equivalent to find(QString(str), index).

Definition at line 893 of file qstring.h.

References find(), and fromAscii().

int QString::find const QRegExp rx,
int  index = 0
const
 

Finds the first match of the regular expression rx, starting from position index. If index is -1, the search starts at the last character; if -2, at the next to last character and so on. (See findRev() for searching backwards.)

Returns the position of the first match of rx or -1 if no match was found.

        QString string( "bananas" );
        int i = string.find( QRegExp("an"), 0 );    // i == 1

See also:
findRev() replace() contains()

Definition at line 15805 of file qstring.cpp.

References QRegExp::search().

int QString::find const QString str,
int  index = 0,
bool  cs = TRUE
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Finds the first occurrence of the string str, starting at position index. If index is -1, the search starts at the last character, if it is -2, at the next to last character and so on. (See findRev() for searching backwards.)

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

Returns the position of str or -1 if str could not be found.

Definition at line 14126 of file qstring.cpp.

References bm_find(), bm_init_skiptable(), end, find(), i, l, length(), lower(), REHASH, ucstrncmp(), ucstrnicmp(), QChar::unicode(), and unicode().

int QString::find char  c,
int  index = 0,
bool  cs = TRUE
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Find character c starting from position index.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

Definition at line 886 of file qstring.h.

References find().

int QString::find QChar  c,
int  index = 0,
bool  cs = TRUE
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Finds the first occurrence of the character c, starting at position index. If index is -1, the search starts at the last character; if -2, at the next to last character and so on. (See findRev() for searching backwards.)

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

Returns the position of c or -1 if c could not be found.

Definition at line 13989 of file qstring.cpp.

References end, l, length(), lower(), and unicode().

Referenced by _get_hhc(), ZSafe::addCategory(), LauncherIconView::addCatsAndMimes(), AddressList::addContact(), PIconView::addFiles(), CpuDevice::addInfo(), LibraryDialog::addItems(), WordGame::addPlayer(), Qt3::QStyleSheetItem::allowedInContext(), IRCServerTab::appendText(), IRCQueryTab::appendText(), IRCChannelTab::appendText(), auto_hostname(), ServerPI::backupRestoreGzip(), QFileInfo::baseName(), Gutenbrowser::BeginBtn(), Server::buildLocalPackages(), SearchDialog::byeBye(), Sheet::calculateFunction(), CategoryFilterImpl::CategoryFilterImpl(), QDir::cd(), FontDialog::changeText(), ConnectWidget::checkBuffers(), OpieFtp::connector(), IRCServerTab::containsPing(), OContactAccessBackend_VCard::convDateToVCardDate(), Opie::OPimContactAccessBackend_VCard::convDateToVCardDate(), OContactAccessBackend_VCard::convVCardDateToDate(), Opie::OPimContactAccessBackend_VCard::convVCardDateToDate(), AdvancedFm::copy(), ExtensionFactory::createInstance(), createMimedir(), createSymlinks(), HttpFactory::data(), DateBookDayWidget::DateBookDayWidget(), AdvancedFm::dealWithSymName(), Opie::Core::Internal::DebugBackend::debugSock(), Status::decodeHexOctString(), Painter::decodeHexOctString(), UnixMakefileGenerator::defaultInstall(), OpieFtp::deleteServer(), UserConfig::delUser(), MakefileGenerator::dependencyKey(), deQuote(), OipkgPackage::details(), DNSWidget::DNS_Edit_Changed(), QTReaderApp::do_settarget(), KateDocument::doComment(), AdvancedFm::doDelete(), AdvancedFm::doDirChange(), KeyHelperWidget::doEvent(), FormatterApp::doFormat(), NetworkDialog::doOk(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), doqcopimpl(), Gutenbrowser::doSearch(), Bartender::doSearchByIngredient(), LibraryDialog::download_Etext(), LibraryDialog::download_newEtext(), NetworkDialog::downloadFile(), MainWindow::downloadPackage(), WebStyle::drawPopupMenuItem(), OThemeStyle::drawPopupMenuItem(), PhaseStyle::drawPopupMenuItem(), FreshStyle::drawPopupMenuItem(), LiquidStyle::drawPopupMenuItem(), FlatStyle::drawPopupMenuItem(), ServerPI::dtpCompleted(), ZSafe::editCategory(), UserConfig::editUser(), SortDialog::exec(), QFileInfo::extension(), Status::fillArray(), Referee::fillArray(), Painter::fillArray(), ThemeDialog::fillBox(), CHM::FillBuffer(), FormatterApp::fillCombos(), OpieFtp::fillCombos(), CHM::FillContent(), CHM::FillHomeContent(), Status::fillStrList(), Referee::fillStrList(), Painter::fillStrList(), QCString::find(), find(), KateView::find(), Qt3::QTextDocument::find(), OpenEtext::FindTitle(), VcprojGenerator::fixFilename(), MetrowerksMakefileGenerator::fixifyToMacPath(), IRCPerson::fromMask(), QDate::fromString(), TimeConversion::fromString(), MakefileGenerator::generateDependencies(), Keymap::generateLabelStateMaps(), MainWindowImp::getAllInterfaces(), LibraryDialog::getAuthor(), striphtml::getch(), LoadInfo::getCpuInfo(), FormatterApp::getFileSystemType(), AdvancedFm::getFileSystemType(), UserConfig::getGroups(), WeatherPluginWidget::getIcon(), Interfaces::getInterfaceFamily(), Interfaces::getInterfaceList(), Interfaces::getInterfaceName(), Qsmb::getMount(), striphtml::getname(), Interfaces::getOption(), Utils::getPackageNameFromIpkFilename(), Utils::getPackageVersionFromIpkFilename(), Sheet::getParameter(), WeatherPluginWidget::getPressure(), WriteMail::getRecipients(), IMAPResponseParser::getResponseCode(), AddressList::getRightString(), Keymap::getStateByLabel(), QtRec::getStorage(), UserConfig::getUsers(), WeatherPluginWidget::getWind(), QRegExpEngine::goodStringMatch(), QIMPenInput::handleExtended(), KHUtil::hex2int(), Qsmb::hostSelected(), LibraryDialog::httpDownload(), PopClient::incomingData(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), MakefileGenerator::init(), Board::init(), Opie::Core::Internal::Zaurus::init(), Opie::Core::Internal::Jornada::init(), Konsole::init(), Gutenbrowser::initConfig(), MainWindow::initConfig(), striphtml::initentmap(), VcprojGenerator::initOld(), KateView::initSearch(), Qt3::QTextCursor::insert(), OIpkg::installedPackages(), Option::internalParseCommandLine(), IRCMessage::IRCMessage(), isCF(), Qsmb::isMounted(), StringParser::join(), KAstTopLevel::KAstTopLevel(), Opie::Core::OGenericPluginLoader::languageList(), QLibrary::library(), Gutenbrowser::LibraryBtn(), UnixMakefileGenerator::libtoolFileName(), AdvancedFm::ListClicked(), OpieTooth::RfCommConfHandler::load(), Categories::load(), OIpkg::loadConfiguration(), NetworkSettingsData::loadSettings(), OpieFtp::localListClicked(), main(), OTodo::match(), Task::match(), Event::match(), Opie::OPimTodo::match(), Qt3::QStyleSheet::mightBeRichText(), Server::mkdir(), NetworkSetup::NetworkSetup(), WavFile::newFile(), LibraryDialog::Newlibrary(), TextParser::nextLine(), LibraryDialog::onButtonSearch(), TinyKate::open(), LibTremorPlugin::open(), CReb::OpenFile(), PlayListWidget::openFile(), TextEdit::openFile(), DspMakefileGenerator::openOutput(), PlayListWidget::openURL(), Opie::Global::isAppLnkFileName(), OPopupMenu::keyPressEvent(), OipkgPackage::packageName(), QMakeProject::parse(), EmailHandler::parse(), KateConfig::parse(), Config::parse(), parseEmailFrom(), parseEmailTo(), ListViewItemConfFile::parseFile(), optionsDialog::parseFtpList(), DingWidget::parseInfo(), QSettingsHeading::parseLine(), ContactEditor::parseName(), parseName(), IRCMessageParser::parseNumericalServerProtocol(), OipkgPackage::parsePackage(), IMAPResponseParser::parseResponse(), WLANImp::parseSettingFile(), FormatterApp::parsetab(), AdvancedFm::parsetab(), OPackageManager::parseVersion(), Qt3::QTextEdit::pasteSubType(), Qt3::QTextEdit::pickSpecial(), UnixMakefileGenerator::pkgConfigFileName(), Qtopia::plainString(), UsbCategory::populate(), OpieFtp::populateLocalView(), OpieFtp::populateRemoteView(), AdvancedFm::populateView(), print_filter(), System::probeInterfaces(), ServerPI::process(), QCopBridgePI::process(), MakefileGenerator::processPrlFile(), QMyDialog::QMyDialog(), qt_makeFilterList(), QuickPrivate::PluginLoader::queryInterface(), quote(), QMakeProject::read(), DrinkData::read(), HelpBrowser::readBookmarks(), Opie::Core::OConfig::readColorEntry(), WordGame::readConfig(), PackageList::readFileEntries(), Highlight::readGlobalKeywordConfig(), PackageManagerSettings::readIpkgConfig(), Server::readLocalIpks(), Om3u::readM3u(), EmailClient::readMail(), Server::readPackageFile(), QCopWatcher::received(), VMemo::record(), Interface::refresh(), System::refreshStatistics(), OpieFtp::remoteListClicked(), remove(), CDrawBuffer::render(), KateView::replace(), TextLnk::replace(), AnyLnk::replaceText(), WriteMail::reply(), TypeCombo::reread(), Qsmb::runCommand(), AdvancedFm::runText(), AdvancedFm::runThis(), NotesControl::save(), TextEdit::saveAs(), DBCsv::saveSource(), Passwd::searchGroup(), optionsDialog::select_site(), Qt3::QTextDocument::selectedText(), DocumentList::sendAllDocLinks(), OpieFtp::serverComboSelected(), MainWindow::serverSelected(), DataManager::setAvailableCategories(), OipkgPackage::setDesc(), DateBook::setDocument(), AddressbookWindow::setDocument(), Konsole::setDocument(), PlayListWidget::setDocumentEx(), ListViewItemConfigEntry::setKey(), Qt3::QTextDocument::setPlainText(), InterfaceSetupImp::setProfile(), Qt3::QTextDocument::setRichTextInternal(), OipkgPackage::setSection(), SoundSettings::setSizeLimitButton(), Interfaces::setStanza(), Package::setStatus(), Gutenbrowser::setStatus(), LibraryDialog::setTitle(), MainWindow::slotBookmarkSelected(), PackageInfoDlg::slotFiles(), DateBookWeek::slotShowEvent(), MainWindow::slotTextRefClicked(), SoundSettings::SoundSettings(), QStringList::split(), StringParser::split(), ValueExplode::splitit(), IMAPResponseParser::splitTagData(), sprintf(), VMemo::startRecording(), FormatterApp::storageComboSelected(), AppLnk::storeLink(), ZkbXmlHandler::str2modifier(), QSettings::subkeyList(), OCompletion::substringCompletion(), Tile::Tile(), ConnectWidget::timerEvent(), OpenEtext::titleFromLibrary(), IRCOutput::toHTML(), TranInfo::TranInfo(), Opie::Core::OGenericPluginLoader::unlibify(), QComponentFactory::unregisterComponent(), MemoryInfo::updateData(), SoundSettings::updateStorageCombo(), TZCombo::updateZones(), QIMPenProfile::userConfig(), UserDialog::UserDialog(), CDrawBuffer::width(), HlManager::wildcardFind(), MakefileGenerator::write(), OpieFtp::writeConfig(), DspMakefileGenerator::writeDspParts(), PlayListWidget::writem3u(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeSubdirs(), XLessThanY(), and CityTime::~CityTime().

bool QString::findArg int &  pos,
int &  len
const [private]
 

Definition at line 13729 of file qstring.cpp.

References d, i, l, length(), and QStringData::unicode.

Referenced by arg().

int QString::findRev const char *  str,
int  index = -1
const [inline]
 

Equivalent to findRev(QString(str), index).

Definition at line 896 of file qstring.h.

References findRev(), and fromAscii().

int QString::findRev const QRegExp rx,
int  index = -1
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Finds the first match of the regexp rx, starting at position index and searching backwards. If the index is -1, the search starts at the last character, if it is -2, at the next to last character and so on. (See findRev() for searching backwards.)

Returns the position of the match or -1 if no match was found.

        QString string( "bananas" );
        int i = string.findRev( QRegExp("an") );      // i == 3

See also:
find()

Definition at line 15828 of file qstring.cpp.

int QString::findRev const QString str,
int  index = -1,
bool  cs = TRUE
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Finds the first occurrence of the string str, starting at position index and searching backwards. If the index is -1, the search starts at the last character, if it is -2, at the next to last character and so on.

Returns the position of str or -1 if str could not be found.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

    QString string("bananas");
    int i = string.findRev( "ana" );      // i == 3

Definition at line 14277 of file qstring.cpp.

References end, findRev(), i, l, length(), lower(), REHASH, ucstrncmp(), ucstrnicmp(), QChar::unicode(), and unicode().

int QString::findRev char  c,
int  index = -1,
bool  cs = TRUE
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Find character c starting from position index and working backwards.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

Definition at line 889 of file qstring.h.

References findRev().

int QString::findRev QChar  c,
int  index = -1,
bool  cs = TRUE
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Finds the first occurrence of the character c, starting at position index and searching backwards. If the index is -1, the search starts at the last character, if it is -2, at the next to last character and so on.

Returns the position of c or -1 if c could not be found.

If cs is TRUE, the search is case sensitive; otherwise the search is case insensitive.

        QString string( "bananas" );
        int i = string.findRev( 'a' );      // i == 5

Definition at line 14234 of file qstring.cpp.

References end, l, length(), lower(), QString(), and unicode().

Referenced by VCFilter::addUICstage(), OCompletion::addWeightedItem(), IRCChannelTab::appendText(), AppLauncher::AppLauncher(), AppLnk::AppLnk(), ScQtFileEditDlg::autoExtension(), ServerPI::backupRestoreGzip(), QFileInfo::baseName(), DspMakefileGenerator::beginGroupForFile(), QDir::cleanDirPath(), convert(), MakefileGenerator::createObjectList(), default_mode(), UnixMakefileGenerator::defaultInstall(), MakefileGenerator::dependencyKey(), QDir::dirName(), QFileInfo::dirPath(), KateDocument::doComment(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), Gutenbrowser::doSearch(), QMakeProject::doVariableReplace(), QuickLauncher::exec(), QFileInfo::extension(), MakefileGenerator::fileFixify(), QFileInfo::fileName(), Qt3::QTextDocument::find(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), QCString::findRev(), findRev(), VcprojGenerator::fixFilename(), MakefileGenerator::generateDependencies(), MakefileGenerator::generateMocList(), LibraryDialog::getAuthor(), striphtml::getch(), ZSafe::getDocPassword(), ScQtFileEditDlg::getFileName(), Utils::getPackageNameFromIpkFilename(), Utils::getPathfromIpkFilename(), Keymap::getStateByLabel(), DspMakefileGenerator::init(), UnixMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), DocLnk::init(), Opie::Core::Internal::MyPal::init(), Opie::Core::Internal::iPAQ::init(), Gutenbrowser::initConfig(), MHfolderItem::initName(), VcprojGenerator::initOld(), QMakeProject::isActiveConfig(), UnixMakefileGenerator::libtoolFileName(), ZSafe::loadDocument(), SyncDialog::loadPath(), MakefileGenerator::logicWarn(), main(), TabManager::moveApplication(), TabManager::newApplication(), ZSafe::newDocument(), TextEdit::openFile(), Modem::openLockfile(), DspMakefileGenerator::openOutput(), ProjectGenerator::openOutput(), OipkgPackage::packageName(), QMakeProject::parse(), Option::parseCommandLine(), OpieTooth::Manager::parseHCIOutput(), parseName(), OpieTooth::Parser::parseProtocol(), FileView::paste(), UnixMakefileGenerator::pkgConfigFileName(), QTReader::PreferredMarkup(), MakefileGenerator::processPrlFile(), proFileTagMap(), Opie::OPimContactAccessBackend_SQL::queryByExample(), QuickPrivate::PluginLoader::queryInterface(), QMakeProject::read(), CReb::readindex(), Om3u::readM3u(), PlayListWidget::readPls(), Om3u::readPls(), PlayListWidget::readpodcast(), IMAPviewItem::refreshFolders(), ZSafe::saveDocument(), ZSafe::saveDocumentAs(), Qt3::QTextDocument::selectedText(), ZSafe::setDocument(), QSettings::setPath(), OpenEtext::titleFromLibrary(), Opie::Core::OGenericPluginLoader::unlibify(), ImageViewer::updateCaption(), MakefileGenerator::usePlatformDir(), QIMPenProfile::userConfig(), QMakeProperty::value(), MakefileGenerator::write(), DspMakefileGenerator::writeDspParts(), MakefileGenerator::writeInstalls(), UnixMakefileGenerator::writeLibtoolFile(), PlayListWidget::writem3u(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), UnixMakefileGenerator::writePkgConfigFile(), MakefileGenerator::writePrlFile(), Win32MakefileGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), MakefileGenerator::writeUicSrc(), XLessThanY(), ZoneField::ZoneField(), and ZSafe::ZSafe().

QString QString::fromAscii const char *  ascii,
int  len = -1
[static]
 

Returns the Unicode string decoded from the first len characters of ascii, ignoring the rest of ascii. If len is -1 then the length of ascii is used. If len is bigger than the length of ascii then it will use the length of ascii.

If a codec has been set using QTextCodec::codecForCStrings(), it is used to convert Unicode to 8-bit char. Otherwise, this function does the same as fromLatin1().

This is the same as the QString(const char*) constructor, but you can make that constructor invisible if you compile with the define QT_NO_CAST_ASCII, in which case you can explicitly create a QString from 8-bit ASCII text using this function.

        QString str = QString::fromAscii( "123456789", 5 );
        // str == "12345"

Definition at line 16788 of file qstring.cpp.

References QTextCodec::codecForCStrings(), and fromLatin1().

Referenced by QCString::contains(), QCString::find(), find(), QCString::findRev(), findRev(), operator+(), operator+=(), QString(), QCString::replace(), setAscii(), and sprintf().

QString QString::fromLatin1 const char *  chars,
int  len = -1
[static]
 

Returns the Unicode string decoded from the first len characters of chars, ignoring the rest of chars. If len is -1 then the length of chars is used. If len is bigger than the length of chars then it will use the length of chars.

See also:
fromAscii()

Definition at line 16814 of file qstring.cpp.

References internalLatin1ToUnicode(), l, QString(), and TRUE.

Referenced by QDir::absPath(), Opie::Core::OGlobalSettings::activeTextColor(), Opie::Core::OGlobalSettings::activeTitleColor(), OPimNotifyManager::add(), Opie::OPimNotifyManager::add(), Opie::Core::OGlobalSettings::alternateBackgroundColor(), TabMainWindow::appName(), ImageViewer::appName(), MailItWindow::appName(), MainView::appName(), Converter::appName(), FormatterApp::appName(), CalculatorImpl::appName(), UserConfig::appName(), SystemInfo::appName(), SSHKeysApp::appName(), SoundSettings::appName(), NetworkSettings::appName(), MainWindowImp::appName(), DocTabSettings::appName(), BackupAndRestore::appName(), Appearance::appName(), OpieTooth::BlueBase::appName(), OpieTooth::PinDlg::appName(), OpieStumbler::appName(), OpieFtp::appName(), Qsmb::appName(), ViewMail::appName(), OpieMail::appName(), MainWidget::appName(), Powerchord::appName(), QtRec::appName(), DrawPad::appName(), ZSameWidget::appName(), KLines::appName(), WordGame::appName(), TicTacToe::appName(), QTetrix::appName(), CanvasCardWindow::appName(), SFCave::appName(), LanguageSettings::appName(), KAstTopLevel::appName(), SnakeGame::appName(), ParaShoot::appName(), OYatzee::appName(), MineSweep::appName(), MindBreaker::appName(), Kpacman::appName(), KCheckers::appName(), GoMainWidget::appName(), FifteenMainWindow::appName(), BuzzWord::appName(), KJezzball::appName(), BackGammon::appName(), KVNC::appName(), ZSafe::appName(), TinyKate::appName(), TableViewerWindow::appName(), Oxygen::appName(), Gutenbrowser::appName(), Bartender::appName(), ODict::appName(), AdvancedFm::appName(), StackExample::appName(), ListViews::appName(), OSplitterExample::appName(), Simple::appName(), PerformanceTest::appName(), MultiauthConfig::appName(), LightSettings::appName(), LauncherSettings::appName(), CityTime::appName(), ButtonSettings::appName(), Today::appName(), MediumMountSetting::MainWindow::appName(), PMainWindow::appName(), Todo::MainWindow::appName(), MainWindow::appName(), DateBook::appName(), AddressbookWindow::appName(), PlayListWidget::appName(), TextEdit::appName(), HelpBrowser::appName(), Konsole::appName(), Layout::appName(), Clock::appName(), PMainWindow::appTitle(), Opie::Core::OGlobalSettings::baseColor(), Skin::buttonMaskImage(), QRegExp::capturedTexts(), QDir::cd(), QDir::cdUp(), OpieObex::Receiver::checkFile(), QDir::cleanDirPath(), QRegExp::compile(), Opie::Core::OGlobalSettings::contrast(), Opie::Ui::Internal::createNewPath(), OpieTooth::Device::devName(), QFileInfo::dirPath(), OCompletion::doBeep(), Qt3::QTextParagraph::drawLabel(), PinPlugin::encrypt(), QRegExpEngine::error(), Modem::execpppd(), AppLauncher::execute(), QFileInfo::extension(), Opie::Core::OGlobalSettings::fixedFont(), EmulationHandler::font(), fromAscii(), fromLocal8Bit(), Opie::Core::OGlobalSettings::generalFont(), MagicTextBrowser::generateOpe(), VirtualModule::getPixmapName(), Opie::Core::OGlobalSettings::highlightColor(), Opie::Core::OGlobalSettings::highlightedTextColor(), Opie::DB::Internal::OSQLiteDriver::id(), MyPty::identifier(), Opie::Core::OGlobalSettings::inactiveTextColor(), Opie::Core::OGlobalSettings::inactiveTitleColor(), QLocalePrivate::infinity(), QDir::init(), Qt3::QStyleSheet::init(), ModPlugin::isFileSupported(), QDir::isRoot(), KateDocument::KateDocument(), KDatePicker::KDatePicker(), left(), Opie::Core::OGlobalSettings::linkColor(), OTodoAccessXML::load(), Opie::OPimTodoAccessXML::load(), OContactAccessBackend_XML::load(), Opie::OPimContactAccessBackend_XML::load(), Todo::TemplateManager::load(), DateBookDB::loadFile(), ODateBookAccessBackend_XML::loadFile(), Opie::ODateBookAccessBackend_XML::loadFile(), Opie::Core::OGlobalSettings::menuFont(), mid(), DocInterfaceInfo::name(), QLocalePrivate::nan(), Opie::Core::odBacktrace(), OJanusWidget::OJanusWidget(), operator+=(), kdbgstream::operator<<(), Opie::Core::odbgstream::operator<<(), QTextStream::operator>>(), Opie::Global::tempDir(), OPIE::opieDir(), OpieTooth::Manager::parseConnections(), Qt3::QTextDocument::parseOpenTag(), Qt3::QTextDocument::parseWord(), Qt3::QTextEdit::pasteSubType(), BallPainter::pixmap(), ExamplePlugin::pixmapNameWidget(), QDir::QDir(), QIMPenProfile::QIMPenProfile(), Opie::DB::OSQLManager::queryBackEnd(), OProcess::quote(), Opie::Core::OProcess::quote(), Score::read(), KateDocument::readConfig(), QDir::readDirEntries(), KLocale::readTime(), Wellenreiter::receivePacket(), remove(), OPimNotifyManager::remove(), Opie::OPimNotifyManager::remove(), OPimNotifyManager::replace(), Opie::OPimNotifyManager::replace(), OFileViewFileListView::reread(), Opie::Ui::Internal::OFileViewFileListView::reread(), right(), QDir::rootDirPath(), Opie::Core::Internal::MyPal::setDisplayBrightness(), Opie::Core::Internal::Jornada::setDisplayBrightness(), Opie::Core::Internal::iPAQ::setDisplayBrightness(), Opie::Core::Internal::MyPal::setDisplayStatus(), Opie::Core::Internal::Jornada::setDisplayStatus(), Opie::Core::Internal::iPAQ::setDisplayStatus(), OpieMail::setDocument(), KDateTable::setFontSize(), setLatin1(), QDir::setNameFilter(), QDir::setPath(), AppLauncher::sigStopped(), PMainWindow::slotConfig(), MainWindow::slotDesktopReceive(), Modem::slotModemDebug(), OpieTooth::Manager::slotProcessExited(), sprintf(), stripWhiteSpace(), Opie::Core::OGlobalSettings::taskbarFont(), Opie::Core::OGlobalSettings::textColor(), OEvent::timeZone(), Opie::OPimEvent::timeZone(), Opie::Core::OGlobalSettings::toolBarFont(), Opie::Core::OGlobalSettings::toolBarHighlightColor(), OTodo::type(), OEvent::type(), OContact::type(), OpieTooth::BTServiceItem::type(), OpieTooth::BTDeviceItem::type(), OpieTooth::BTConnectionItem::type(), Opie::OPimTodo::type(), OPimReminder::type(), OPimAlarm::type(), Opie::OPimReminder::type(), Opie::OPimAlarm::type(), Opie::OPimEvent::type(), Opie::OPimContact::type(), VirtualModule::type(), Todo::TextViewShow::type(), Todo::TableView::type(), PinPlugin::verify(), Opie::Core::OGlobalSettings::visitedLinkColor(), wc2rx(), Opie::Core::OGlobalSettings::windowTitleFont(), and AddressbookWindow::writeMail().

QString QString::fromLocal8Bit const char *  local8Bit,
int  len = -1
[static]
 

Returns the Unicode string decoded from the first len characters of local8Bit, ignoring the rest of local8Bit. If len is -1 then the length of local8Bit is used. If len is bigger than the length of local8Bit then it will use the length of local8Bit.

        QString str = QString::fromLocal8Bit( "123456789", 5 );
        // str == "12345"

local8Bit is assumed to be encoded in a locale-specific format.

See QTextCodec for more diverse coding/decoding of Unicode strings.

Definition at line 16885 of file qstring.cpp.

References QTextCodec::codecForLocale(), fromLatin1(), fromUtf8(), s, and QTextCodec::toUnicode().

Referenced by SyncAuthentication::checkPassword(), DateEntry::event(), Process::exec(), Picture::load(), MCursor::load(), locale_decoder(), SyncAuthentication::loginName(), QDate::longDayName(), QDate::longMonthName(), Opie::Core::perror(), QCopBridge::sendDesktopMessageOld(), Opie::setTimeZone(), QDate::shortDayName(), QDate::shortMonthName(), OpieObex::Receiver::tidyUp(), QDateTime::toString(), QTime::toString(), and QDate::toString().

QString QString::fromUcs2 const unsigned short *  str  )  [static]
 

Constructs a string that is a deep copy of str, interpreted as a UCS2 encoded, zero terminated, Unicode string.

If str is 0, then a null string is created.

See also:
isNull()

Definition at line 16971 of file qstring.cpp.

References length(), QString(), QT_ALLOC_QCHAR_VEC, and TRUE.

Referenced by QDate::longDayName(), QDate::longMonthName(), QSettingsPrivate::QSettingsPrivate(), QDate::shortDayName(), QDate::shortMonthName(), QLocalePrivate::systemLocaleName(), QDateTime::toString(), QTime::toString(), and QDate::toString().

QString QString::fromUtf8 const char *  utf8,
int  len = -1
[static]
 

Returns the Unicode string decoded from the first len characters of utf8, ignoring the rest of utf8. If len is -1 then the length of utf8 is used. If len is bigger than the length of utf8 then it will use the length of utf8.

        QString str = QString::fromUtf8( "123456789", 5 );
        // str == "12345"

See QTextCodec for more diverse coding/decoding of Unicode strings.

Definition at line 16722 of file qstring.cpp.

References i, QChar::replacement, setLength(), truncate(), and unicode().

Referenced by Opie::DB::Internal::OSQLiteDriver::call_back(), QDawg::createFromWords(), IMAPFolder::decodeFolderName(), fromLocal8Bit(), XINE::Lib::handleXineEvent(), Categories::load(), OTodoAccessXML::load(), Opie::OPimTodoAccessXML::load(), DateBookDB::loadFile(), ODateBookAccessBackend_XML::loadFile(), Opie::ODateBookAccessBackend_XML::loadFile(), QTReaderApp::msgHandler(), ZSafe::openDocument(), kdbgstream::operator<<(), Opie::Core::odbgstream::operator<<(), Opie::OPimContactAccessBackend_VCard::parseVObject(), Qtopia::plainString(), PowerchordBase::PowerchordBase(), qcrypt(), ZSafe::readAllEntries(), ProfileManager::save(), TextWidget::setText(), QPEApplication::showMainDocumentWidget(), sprintf(), and MetaTranslator::toUnicode().

QString & QString::insert uint  index,
char  c
[inline]
 

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

Definition at line 499 of file qstring.h.

QString & QString::insert uint  index,
QChar  c
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Insert c into the string at position index and returns a reference to the string.

If index is beyond the end of the string, the string is extended with spaces (ASCII 32) to length index and c is then appended.

Definition at line 15215 of file qstring.cpp.

References insert(), and s.

QString & QString::insert uint  index,
const QChar s,
uint  len
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Inserts the first len characters in s into the string at position index and returns a reference to the string.

Definition at line 15172 of file qstring.cpp.

References d, insert(), length(), QStringData::maxl, QT_ALLOC_QCHAR_VEC, QT_DELETE_QCHAR_VEC, setLength(), unicode(), and QStringData::unicode.

QString & QString::insert uint  index,
const QString s
 

Inserts s into the string at position index.

If index is beyond the end of the string, the string is extended with spaces to length index and s is then appended and returns a reference to the string.

        QString string( "I like fish" );
        str = string.insert( 2, "don't " );
        // str == "I don't like fish"

See also:
remove(), replace()

Definition at line 15159 of file qstring.cpp.

References length(), and unicode().

Referenced by arg(), QDir::cleanDirPath(), Status::confMisc(), Referee::confMisc(), Painter::confMisc(), KpacmanWidget::confMisc(), DateBookDayWidget::DateBookDayWidget(), decimalForm(), QRegExp::escape(), exponentForm(), Painter::fillScoreString(), WLANImp::formatKey(), insert(), KateDocument::insertChars(), QLocalePrivate::longLongToString(), MainView::MainView(), OPopupMenu::underlineText(), prepend(), KateDocument::recordReplace(), replace(), TextLine::replace(), WriteMail::reply(), NetworkSettings::SLOT_Disable(), NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_GenerateConfig(), NetworkSettings::SLOT_Up(), DateBookWeek::slotShowEvent(), KateDocument::text(), ConnectWidget::timerEvent(), IRCOutput::toHTML(), QLocalePrivate::unsLongLongToString(), and NetworkSettings::~NetworkSettings().

bool QString::isEmpty  )  const [inline]
 

Returns TRUE if the string is empty, i.e. if length() == 0; otherwise returns FALSE. Null strings are also empty.

        QString a( "" );
        a.isEmpty();        // TRUE
        a.isNull();         // FALSE

        QString b;
        b.isEmpty();        // TRUE
        b.isNull();         // TRUE

See also:
isNull(), length()

Definition at line 805 of file qstring.h.

References length().

Referenced by QDir::absFilePath(), EditNetworkSetup::accept(), Newmdirdlg::accept(), ComposeMail::accept(), AddressPicker::accept(), PPPEdit::acceptable(), ODateBookAccessBackend_SQL::add(), Opie::ODateBookAccessBackend_SQL::add(), add_domain(), HelpBrowser::addBookmark(), ZSafe::addCategory(), ProjectGenerator::addFile(), PlaylistView::addFile(), VCFilter::addIMGstage(), OCompletion::addItem(), LibraryDialog::addItems(), VCFilter::addMOCstage(), WordGame::addPlayer(), OHistoryCombo::addToHistory(), DemoApp::addTrigger(), VCFilter::addUICstage(), Qt3::QStyleSheetItem::allowedInContext(), OContact::anniversary(), Opie::OPimContact::anniversary(), Clock::applyDailyAlarm(), OThemeBase::applyMiscResourceGroup(), OThemeBase::applyResourceGroup(), PinPlugin::authenticate(), BluepingPlugin::authenticate(), Password::authenticate(), OIpkg::availablePackages(), DspMakefileGenerator::beginGroupForFile(), OContact::birthday(), Opie::OPimContact::birthday(), Bitfont::Bitfont(), BluepingConfigWidget::BluepingConfigWidget(), bm_find(), optionsDialog::BrowseSelected(), MakefileGenerator::build_args(), MakefileGenerator::buildArgs(), Zaurus::buzzer(), calcDlgUI::calc(), QTReaderApp::cancelbkmk(), NetworkSettingsData::canStart(), Server::cardInfoString(), QDir::cd(), PFileSystem::changed(), WellenreiterConfigWindow::changedDeviceType(), DBXmlHandler::characters(), RssParser::characters(), OpieObex::Receiver::checkFile(), SyncAuthentication::checkPassword(), SyncAuthentication::checkUser(), Network::choices(), QDir::cleanDirPath(), UserDialog::clickedPicture(), UnixMakefileGenerator::combineSetLFlags(), CommandEditDialog::CommandEditDialog(), GPRSEdit::commit(), ConfigDialog::ConfigDialog(), OMessageBox::confirmDelete(), KpacmanWidget::confMisc(), Contact::Contact(), Qt3::QTextEdit::contentsMouseReleaseEvent(), KateDocument::copy(), Qt3::QTextEdit::copy(), OipkgPackage::copyValues(), MakefileGenerator::create(), Generatemail::createImfFields(), QComponentFactory::createInstance(), QLibrary::createInstanceInternal(), Highlight::createItemData(), MakefileGenerator::createObjectList(), ReceiveLayer::currentDir(), Sheet::dataParser(), Opie::DB::OSQLResultItem::dataToDate(), DateBookDayWidget::DateBookDayWidget(), OConversion::dateFromString(), Opie::OPimDateConversion::dateFromString(), OConversion::dateTimeFromString(), Opie::OPimDateConversion::dateTimeFromString(), UnixMakefileGenerator::defaultInstall(), MimeTypeData::description(), TheNSResources::detectCurrentUser(), Opietooth2::OTIcons::deviceIcon(), OpieTooth::BTIconLoader::deviceIcon(), PMainWindow::dirChanged(), JezzGame::display(), OContact::displayAddress(), Contact::displayAddress(), Opie::OPimContact::displayAddress(), PackageListItem::displayDetails(), QTReaderApp::do_addbkmk(), QTReader::doinplacescroll(), NetworkDialog::doOk(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), QTReader::dorollingscroll(), KateDocument::doSearch(), QTReader::dostaticscroll(), StockTickerPluginWidget::doStocks(), QMakeProject::doVariableReplace(), MainWindow::downloadSelectedPackages(), ZSafe::editCategory(), TabManager::editItem(), IMAPResponseAddress::email(), OContact::emailList(), Contact::emailList(), Opie::OPimContact::emailList(), EmailHandler::encodeMime(), OEvent::endDateTimeInZone(), Opie::OPimEvent::endDateTimeInZone(), UiHandler::endElement(), DspMakefileGenerator::endGroups(), KMessageBox::error(), Qt3::QTextEdit::event(), System::execAsUser(), execAutoStart(), ConnectWidget::execppp(), AppLnk::execute(), AppLauncher::execute(), QDir::exists(), AddressbookWindow::exportvCard(), OCompletion::extractStringsFromNodeCI(), AppLnk::file(), MakefileGenerator::fileFixify(), ServerPI::fileListing(), WellenreiterMainWindow::fileLoadSession(), TextEdit::fileOpen(), QTReaderApp::fileOpen2(), QDir::filePath(), WellenreiterMainWindow::fileSaveLog(), WellenreiterMainWindow::fileSaveSession(), QIMPenEdit::fillCharList(), HandwritingTrainer::fillCharList(), Status::fillStrList(), Referee::fillStrList(), Painter::fillStrList(), Keymap::filter(), KateView::find(), KateView::findAgain(), OCompletion::findAllCompletions(), AppLnkSet::findChildren(), AbTable::findContactContact(), Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), MainWindow::findPackage(), ZSafe::findPwd(), QTReader::firstword(), ProjectBuilderMakefileGenerator::fixEnvsList(), MetrowerksMakefileGenerator::fixifyToMacPath(), fixPath(), ListEdit::fixTypes(), FKey::FKey(), kdbgstream::flush(), Opie::Core::odbgstream::flush(), UiHandler::flush(), fmtDateTime(), fontDir(), QTReaderApp::forceopen(), QTime::fromString(), QDate::fromString(), OContact::fullName(), Contact::fullName(), Opie::OPimContact::fullName(), g_insert_ldot(), MakefileGenerator::generateDependencies(), MakefileGenerator::generateMocList(), WellenreiterConfigWindow::getCaptureFileNameClicked(), striphtml::getch(), Opie::Ui::OFileDialog::getDirectory(), WellenreiterMainWindow::getFileName(), AdvancedFm::getFileSystemType(), getFmtString(), Sheet::getHeaderColumn(), Highlight::getItemDataList(), OFileDialog::getOpenFileName(), Opie::Ui::OFileDialog::getOpenFileName(), Password::getPassword(), PinPlugin::getPIN(), BatteryStatus::getProcApmStatusIpaq(), OFileDialog::getSaveFileName(), Opie::Ui::OFileDialog::getSaveFileName(), OpenEtext::getTitles(), TodolistPluginWidget::getTodo(), QTReaderApp::gotobkmk(), QTReader::gotoLink(), SyntaxDocument::groupItemData(), groupKey(), Gutenbrowser::Gutenbrowser(), Config::hasKey(), HelpWindow::HelpWindow(), CPlucker_base::hyperlink(), AddressbookWindow::importvCard(), KMessageBox::information(), VcprojGenerator::init(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), Board::init(), KDialogBase::init(), HelpBrowser::init(), UnixMakefileGenerator::init2(), VcprojGenerator::initCompilerTool(), Gutenbrowser::initConfig(), VcprojGenerator::initConfiguration(), initEnvironment(), VcprojGenerator::initLibrarianTool(), VcprojGenerator::initLinkerTool(), VcprojGenerator::initOld(), MakefileGenerator::initOutPaths(), VcprojGenerator::initPostBuildEventTools(), ScQtFileEditDlg::initTypeCombo(), ScQtFileEditDlg::insDirCombo(), OContact::insert(), KateDocument::insert(), Contact::insert(), Opie::OPimContact::insert(), KateDocument::insertChars(), OContact::insertEmail(), Contact::insertEmail(), Opie::OPimContact::insertEmail(), OHistoryCombo::insertItems(), OIpkg::installedPackages(), Server::installLocationsString(), PackageHandler::installPackage(), ScQtFileEditDlg::insTypeCombo(), NetworkInterface::isActive(), QMakeProject::isActiveConfig(), NetworkInterface::isAvailable(), IMAPHandler::iSearch(), QRegExp::isEmpty(), OpieTooth::RemoteDevice::isEmpty(), Opie::Core::OPluginItem::isEmpty(), Opie::Core::OKeyConfigItem::isEmpty(), ContactEditor::isEmpty(), AbEditor::isEmpty(), ListViewItemConfigEntry::isGroup(), ListViewItemConfigEntry::isKey(), OTimeZone::isValid(), Opie::OPimTimeZone::isValid(), ABOOK::NameLineEdit::keyPressEvent(), CurrentQPEUser::known(), LanguageSettings::LanguageSettings(), QProcess::launch(), left(), QLibrary::library(), Gutenbrowser::LibraryBtn(), NNTPwrapper::listAllNewsgroups(), QTReaderApp::listbkmk(), OpieTooth::DeviceHandler::load(), ModemConfigWidget::load(), FunctionKeyboardConfig::load(), FunctionKeyboard::load(), ConsoleConfigWidget::load(), BTConfigWidget::load(), CfgParser::load(), NotesControl::load(), Opie::Core::OPluginManager::load(), Opie::Core::OGenericPluginLoader::load(), Todo::TemplateManager::load(), load_image(), OIpkg::loadConfiguration(), QIMPenProfile::loadData(), ZSafe::loadDocument(), OContactFields::loadFromRecord(), Opie::OPimContactFields::loadFromRecord(), Opie::MM::OImageScrollView::loadJpeg(), SyncDialog::loadPath(), NetworkSettingsData::loadSettings(), localeAwareCompare(), NNTPwrapper::login(), LoginDialog::LoginDialog(), QLocalePrivate::longLongToString(), main(), OCompletion::makeCompletion(), Qt3::QTextFormat::makeFormatChangeTags(), Qt3::QTextFormat::makeFormatEndTags(), Qt3::QTextFormat::makeTextFormat(), OpieStumbler::manufacturer(), Opie::OPimContactAccessBackend_SQL::matchRegexp(), mid(), Qt3::QStyleSheet::mightBeRichText(), PPPData::modemGroup(), QTReader::mouseReleaseEvent(), striphtml::mygetch(), OipkgPackage::name(), Password::needToAuthenticate(), NetworkSetup::NetworkSetup(), KVNC::newConnection(), ZSafe::newDocument(), MetaFactory::newKeyboardPlugin(), MetaFactory::newTerminalPlugin(), OContact::OContact(), OContactAccessBackend_SQL::OContactAccessBackend_SQL(), OContactAccessBackend_XML::OContactAccessBackend_XML(), ODateBookAccessBackend_SQL::ODateBookAccessBackend_SQL(), Opie::ODateBookAccessBackend_SQL::ODateBookAccessBackend_SQL(), ODateBookAccessBackend_XML::ODateBookAccessBackend_XML(), Opie::ODateBookAccessBackend_XML::ODateBookAccessBackend_XML(), OFileSelector::OFileSelector(), Opie::Ui::OFileSelector::OFileSelector(), KeyLauncher::onKeyPress(), QTReaderApp::OnWordSelected(), OpenEtext::open(), IOBt::open(), LibTremorPlugin::open(), Gutenbrowser::OpenBtn(), PlayListWidget::openDirectory(), ZSafe::openDocument(), TextEdit::openDotFile(), CReb::OpenFile(), HelpWindow::openFile(), QTReaderApp::openfrombkmk(), WordGame::openGameSelector(), VcprojGenerator::openOutput(), DspMakefileGenerator::openOutput(), ProjectGenerator::openOutput(), MakefileGenerator::openOutput(), MetrowerksMakefileGenerator::openOutput(), QtRec::openPlayFile(), operator<<(), QTextOStreamIterator< T >::operator=(), Opie::OPimContact::OPimContact(), Opie::OPimContactAccessBackend_SQL::OPimContactAccessBackend_SQL(), Opie::OPimContactAccessBackend_XML::OPimContactAccessBackend_XML(), OPimRecurrenceWidget::OPimRecurrenceWidget(), Opie::OPimTodoAccessBackendSQL::OPimTodoAccessBackendSQL(), Opie::OPimTodoAccessXML::OPimTodoAccessXML(), InstallDlgImpl::optionsSelected(), ORecurranceWidget::ORecurranceWidget(), OTodoAccessBackendSQL::OTodoAccessBackendSQL(), OTodoAccessXML::OTodoAccessXML(), CameraMainWindow::outputToMenuItemClicked(), FunctionKeyboard::paintEvent(), FunctionKeyboard::paintKey(), QMakeProject::parse(), KateConfig::parse(), Config::parse(), Generatemail::parseAddresses(), Option::parseCommandLine(), IRCMessageParser::parseCTCPDCC(), parseEmailFrom(), IMAPResponseParser::parseFlagList(), QSettingsHeading::parseLine(), IRCMessageParser::parseNumerical(), Qt3::QTextDocument::parseOpenTag(), Qt3::QTextDocument::parseTable(), KateDocument::paste(), Qt3::QTextEdit::pasteSubType(), ProjectBuilderMakefileGenerator::pbuilderVersion(), ScreenshotControl::performGrab(), ComposeMail::pickAddress(), OpieTooth::PinDlg::PinDlg(), AppLnk::pixmap(), EmailClient::popError(), PcmciaManager::popUp(), CardMonitor::popUp(), ServerPI::process(), QTReader::processmousewordevent(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), MakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), HttpFactory::processResponse(), ProfileEdit::ProfileEdit(), project_builtin_regx(), QDir::QDir(), qpeDir(), qt_file_access(), qt_makeFilterList(), qt_verify_key(), Qt3::QTextImage::QTextImage(), Qt3::QTextTableCell::QTextTableCell(), Opie::DB::OSQLManager::queryBackEnd(), OContactAccessBackend_SQL::queryByExample(), Opie::OPimContactAccessBackend_SQL::queryByExample(), QMakeProject::read(), ZSafe::readAllEntries(), QSettings::readBoolEntry(), KateConfig::readBoolEntry(), Config::readBoolEntry(), Opie::Core::OConfig::readColorEntry(), OThemeBase::readConfig(), MineField::readConfig(), Proxies::readConfig(), QSettings::readDoubleEntry(), readElem(), KateConfig::readEntry(), Config::readEntry(), KateConfig::readEntryCrypt(), KMolCalc::readGroup(), CityTime::readInTimes(), KateConfig::readIntListEntry(), QMakeMetaInfo::readLibtoolFile(), QTextStream::readLine(), KateConfig::readListEntry(), Config::readListEntry(), QSettings::readNumEntry(), KateConfig::readNumEntry(), Config::readNumEntry(), OThemeBase::readResourceGroup(), IRCServer::realname(), NetworkServer::receive(), KateDocument::recordReplace(), ComposeMail::reject(), MyPty::reload(), OpenEtext::remFile(), remove(), QFile::remove(), QDir::remove(), Opie::OPimTodoAccessBackendSQL::removeAllCompleted(), OpenEtext::removeSelection(), QDir::rename(), FileItem::rename(), RepeatEntry::RepeatEntry(), OContact::replace(), KateView::replace(), KateCommands::replace(), Contact::replace(), Opie::OPimContact::replace(), WLANImp::rescanNeighbourhood(), LanguageSettings::reset(), QIMPenMatch::resetState(), right(), OIpkg::rootPath(), AdvancedFm::runThis(), safeAddPropValue(), OContactAccessBackend_VCard::safeAddPropValue(), Opie::OPimContactAccessBackend_VCard::safeAddPropValue(), safeFileName(), Opie::XMLElement::save(), OContact::save(), CfgParser::save(), NotesControl::save(), Event::save(), Contact::save(), Opie::OPimContact::save(), Opie::Core::XMLElement::save(), TextEdit::save(), TextEdit::saveAs(), ZSafe::saveDocument(), ZSafe::saveDocumentAs(), ContactEditor::saveEntry(), Qt3::QTextEdit::scrollToAnchor(), OpieTooth::Manager::searchDevices(), BackupAndRestore::selectLocation(), MultiauthConfig::selectNet(), Ir::send(), OpieObex::SendWidget::send(), OpieTooth::ObexDialog::sendData(), ServerPI::sendList(), SyncAuthentication::serverId(), Opietooth2::OTIcons::serviceIcon(), OpieTooth::BTIconLoader::serviceIcon(), LauncherView::setBackgroundType(), ZSafe::setCategoryDialogFields(), OLineEdit::setCompletedItems(), OContact::setDefaultEmail(), Contact::setDefaultEmail(), Opie::OPimContact::setDefaultEmail(), HelpBrowser::setDocument(), OContact::setEmails(), Opie::OPimContact::setEmails(), ContactEditor::setEntry(), OProcess::setExecutable(), Opie::Core::OProcess::setExecutable(), OContact::setFileAs(), Contact::setFileAs(), Opie::OPimContact::setFileAs(), Qt3::QTextFormat::setFont(), FifteenConfigDialog::setImageSrc(), QDir::setNameFilter(), Today::setOwnerField(), QDir::setPath(), QSettings::setPath(), Qt3::QTextDocument::setPlainText(), MediaPlayer::setPlaying(), InputMethods::setPreferedHandlers(), Qt3::QTextDocument::setRichText(), Qt3::QTextDocument::setRichTextInternal(), RuntimeInfo::setState(), NetworkSetup::setState(), TaskBar::setStatusMessage(), LauncherTabWidget::setTabAppearance(), LauncherTabWidget::setTabViewAppearance(), QTReaderApp::settarget(), OProcess::setupEnvironment(), Opie::Core::OProcess::setupEnvironment(), LnkProperties::setupLocations(), SyntaxDocument::setupModeList(), GPRSEdit::showData(), ZSafe::showInfo(), simplifyWhiteSpace(), NetworkSettings::SLOT_Disable(), NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_GenerateConfig(), Opietooth2::OTSniffing::SLOT_Load(), NetworkEdit::SLOT_NetmaskModified(), Opietooth2::OTScan::SLOT_RefreshServices(), Opietooth2::OTSniffing::SLOT_Save(), NetworkSettings::SLOT_Up(), PlaylistView::slotAppendDir(), PIconView::slotBeam(), NotesControl::slotBeamButton(), Clock::slotBrowseMp3File(), InstallDlg::slotBtnOptions(), MainWindow::slotCompose(), PiecesTable::slotCustomImage(), NotesControl::slotDeleteButton(), AbView::slotDoFind(), MainWindow::slotDownload(), MainWindow::slotFindChanged(), ViewMail::slotItemClicked(), AddressbookWindow::slotItemDelete(), FifteenConfigDialog::slotLoadImage(), OpieMail::slotMoveCopyMail(), DateBook::slotNewEntry(), TinyKate::slotOpen(), PlaylistView::slotOpenM3u(), TinyKate::slotSaveAs(), PlaylistView::slotSaveAsM3u(), PIconView::slotShowFirst(), PIconView::slotShowLast(), PIconView::slotShowNext(), PIconView::slotShowPrev(), ODict::slotStartQuery(), PIconView::slotTrash(), OpieMail::slotwriteMail(), EmailClient::smtpError(), KMessageBox::sorry(), MakefileGenerator::specdir(), StringParser::split(), split_value_list(), ValueExplode::splitit(), NetworkServer::start(), ZkbXmlHandler::start_event(), ZkbXmlHandler::start_map(), ZkbXmlHandler::start_state(), Wellenreiter::startClicked(), OEvent::startDateTimeInZone(), Opie::OPimEvent::startDateTimeInZone(), DBXmlHandler::startElement(), ZkbHandler::startStateElement(), NetworkServer::stop(), stripWhiteSpace(), OCompletion::substringCompletion(), QSettings::sync(), Server::systemMsg(), OpieTooth::PinDlg::test(), HelpWindow::textChanged(), Qsmb::TextViewClicked(), SlaveMaster::thumbNail(), Tile::Tile(), TextEdit::timerCrank(), ConnectWidget::timerEvent(), OContact::toMap(), Contact::toMap(), Opie::OPimContact::toMap(), OContact::toRichText(), Contact::toRichText(), Opie::OPimContact::toRichText(), IMAPResponseAddressList::toString(), OEditListBox::typedSomething(), QComponentFactory::unregisterComponent(), QLocalePrivate::unsLongLongToString(), PackageListRemote::update(), TextEdit::updateCaption(), Qt3::QTextEdit::updateCursor(), QTReaderApp::updatefileinfo(), MenuButton::updateLabel(), PackageList::updateSections(), updateTsFiles(), TZCombo::updateZones(), MakefileGenerator::usePlatformDir(), MakefileGenerator::valGlue(), VLog(), KMessageBox::warningContinueCancel(), KateConfig::write(), Config::write(), ZSafe::writeAllEntries(), BorlandMakefileGenerator::writeBorlandParts(), MediumMountSetting::MediumMountWidget::writeConfig(), OpieFtp::writeConfig(), DspMakefileGenerator::writeDspParts(), MakefileGenerator::writeInstalls(), MakefileGenerator::writeLexSrc(), UnixMakefileGenerator::writeLibtoolFile(), AddressbookWindow::writeMail(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MakefileGenerator::writeMakeQmake(), MingwMakefileGenerator::writeMingwParts(), MakefileGenerator::writeMocSrc(), NmakeMakefileGenerator::writeNmakeParts(), MakefileGenerator::writeObj(), UnixMakefileGenerator::writePkgConfigFile(), MakefileGenerator::writePrlFile(), Win32MakefileGenerator::writeSubDirs(), VcprojGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), ProjectBuilderMakefileGenerator::writeSubdirs(), MakefileGenerator::writeYaccSrc(), CityTime::~CityTime(), kdbgstream::~kdbgstream(), ModemWidget::~ModemWidget(), NetworkSettings::~NetworkSettings(), and Opie::Core::odbgstream::~odbgstream().

bool QString::isNull  )  const [inline]
 

Returns TRUE if the string is null; otherwise returns FALSE. A null string is always empty.

        QString a;          // a.unicode() == 0, a.length() == 0
        a.isNull();         // TRUE, because a.unicode() == 0
        a.isEmpty();        // TRUE

See also:
isEmpty(), length()

Definition at line 796 of file qstring.h.

References unicode().

Referenced by ConfigDlg::addMap(), AppLnk::AppLnk(), optionsDialog::BrowseSelected(), OCompletionBox::cancelled(), PinPlugin::changePIN(), QRegExp::compile(), contains(), QDir::currentDirPath(), derefEngine(), DocumentList::DiffAppLnks(), DocLnkSet::DocLnkSet(), QMakeProject::doProjectTest(), WebStyle::drawPopupMenuItem(), OThemeStyle::drawPopupMenuItem(), PhaseStyle::drawPopupMenuItem(), FreshStyle::drawPopupMenuItem(), LiquidStyle::drawPopupMenuItem(), FlatStyle::drawPopupMenuItem(), DateBook::duplicateEvent(), ZSafe::editCategory(), DateBook::editEvent(), TEWidget::emitSelection(), endsWith(), Qt3::QTextDocument::endsWith(), DateEntry::event(), Global::execute(), AppLauncher::executeBuiltin(), OIpkg::executeCommand(), AppLnk::file(), MakefileGenerator::fileFixify(), AppLnk::fileKnown(), FilterDlg::FilterDlg(), OPackageManager::filterPackages(), AppLnkSet::findChildren(), QMakeMetaInfo::findLib(), UnixMakefileGenerator::findLibraries(), FViewer::FViewer(), MakefileGenerator::generateDependencies(), KRFBLogin::getPassword(), VcprojGenerator::getProjectUUID(), QGDict::hashKeyString(), QDir::homeDirPath(), UnixMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), Board::init(), MimeType::init(), DateBookDB::init(), DocLnk::init(), MainWindow::initConfig(), initEnvironment(), FilterDlg::initItem(), InputDialog::InputDialog(), OIpkg::installedPackages(), AppLnk::isValid(), Qt3::QStyleSheet::item(), DocumentListPrivate::iterate(), Keys::keyPressEvent(), FileSelectorView::keyPressEvent(), OLineEdit::keyPressEvent(), DateBookDayView::keyPressEvent(), MultiKey::Keys::Keys(), QSettings::lastModificationTime(), Gutenbrowser::LibraryBtn(), DocumentList::linkChanged(), AppLnk::linkFile(), AppLnk::linkFileKnown(), OIpkg::linkPackageDir(), Categories::load(), ConfigMainWindow::loadConfig(), LoadInfo::LoadInfo(), MimeTypeData::loadPixmaps(), main(), OLineEdit::makeCompletion(), OCompletion::makeCompletion(), MBox::MBox(), Menu::InstEditDialog::InstEditDialog(), Menu::MenuWidget::updateBoxes(), Menu::ScaleEditDialog::ScaleEditDialog(), QFile::open(), ZSafe::openDocument(), MainWindow::openModule(), DBCsv::openSource(), operator!(), operator+=(), operator<<(), operator==(), PackageWindow::PackageWindow(), Opie::Ui::OPopupTitle::paintEvent(), Option::parseCommandLine(), WLANImp::parseKeyStr(), WLANImp::parseOpts(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), QPEApplication::qpeDir(), qt_cmp_si(), IMAPaccount::read(), ZSafe::readAllEntries(), QSettings::readBoolEntry(), QSettings::readDoubleEntry(), QSettings::readEntry(), KateConfig::readEntry(), Config::readEntry(), KateConfig::readEntryCrypt(), Config::readEntryCrypt(), CityTime::readInTimes(), QMakeMetaInfo::readLib(), QSettings::readNumEntry(), DocumentList::reloadAppLnks(), FirstUse::reloadLanguages(), QSettings::removeSearchPath(), replace(), TypeCombo::reread(), OLineEdit::rotateText(), ConfigMainWindow::saveConfigAs(), ContactEditor::saveEntry(), AbEditor::saveEntry(), PPPData::setAccname(), ZSafe::setCategoryDialogFields(), TEmulation::setSelection(), AbView::setShowByCategory(), ORecurranceWidget::setupRepeatLabel(), OPimRecurrenceWidget::setupRepeatLabel(), RepeatEntry::setupRepeatLabel(), CityTime::showTime(), MainWindow::slotEditCopy(), TransferDialog::slotFilename(), MainWindow::slotFilter(), FolderWidget::slotMenuActivated(), DateBook::slotNewEntry(), OIpkgConfigDlg::slotOptSelectSourceListsPath(), OIpkgDestDlg::slotSelectPath(), EntryDlg::slotSelectPath(), Composer::slotSendMail(), Composer::slotSendQueued(), TimeTabWidget::slotTZChanged(), ORecurranceWidget::slotWeekLabel(), OPimRecurrenceWidget::slotWeekLabel(), RepeatEntry::slotWeekLabel(), TextParser::splitLine(), ZkbHandler::startIncludeElement(), startsWith(), AppLnk::storeLink(), QSettings::subkeyList(), QSettings::sync(), NetworkServer::timerEvent(), IMAPResponseAddressList::toString(), IMAPResponseAddress::toString(), Opie::Net::OMacAddress::toString(), AppLnk::type(), TZCombo::TZCombo(), OIpkg::unlinkPackage(), TextEdit::updateCaption(), LauncherView::updateTools(), TZCombo::updateZones(), use_net2003_version(), QSettings::writeEntry(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), NmakeMakefileGenerator::writeNmakeParts(), and CityTime::~CityTime().

bool QString::isRightToLeft  )  const
 

For internal use only.

Definition at line 17218 of file qstring.cpp.

References d, QChar::DirAL, direction(), QChar::DirL, QChar::DirLRE, QChar::DirLRO, QChar::DirR, QChar::DirRLE, QChar::DirRLO, FALSE, length(), p, TRUE, and QStringData::unicode.

const char * QString::latin1  )  const
 

Returns a Latin-1 representation of the string. The returned value is undefined if the string contains non-Latin-1 characters. If you want to convert strings into formats other than Unicode, see the QTextCodec classes.

This function is mainly useful for boot-strapping legacy code to use Unicode.

The result remains valid so long as one unmodified copy of the source string exists.

See also:
fromLatin1(), ascii(), utf8(), local8Bit()

Definition at line 16641 of file qstring.cpp.

References QStringData::ascii, d, QStringData::islatin1, QStringData::len, TRUE, QStringData::unicode, and unicodeToLatin1().

Referenced by WriteMail::accept(), LoginDialog::accept(), ODateBookAccessBackend_SQL::add(), HlEditDialog::addContextItem(), Interfaces::addInterface(), KeyModifiers::addType(), UserDialog::addUser(), QRsync::applyDiff(), MainWindow::appMessage(), arg(), ascii(), OpieTooth::Device::attach(), ServerPI::backupRestoreGzip(), BackupAndRestore::backupUserData(), Generatemail::buildFilePart(), NetworkSettingsData::canStart(), ReceiveLayer::changeDir(), SettingsImpl::changeServerDetails(), Konsole::changeSession(), AdvancedFm::changeTo(), DrawPadCanvasXmlHandler::characters(), FileBrowser::cleanUp(), SystemFile::close(), NetworkSettingsData::collectPossible(), NetworkSettingsData::collectTriggered(), OPackageManager::compareVersions(), OpieTooth::RfCommHelper::connect(), OpieFtp::connector(), KRFBConnection::connectTo(), OContactAccessBackend_VCard::convVCardDateToDate(), FileManager::copyFile(), Interfaces::copyInterface(), NetworkSettingsData::couldBeTriggered(), MakefileGenerator::create(), MetrowerksMakefileGenerator::createFork(), Generatemail::createImfFields(), TheNSResources::createNodeInstance(), OContactAccessBackend_VCard::createVObject(), OpieFtp::currentPathComboActivated(), HttpFactory::data(), ConfigEx::decode(), OBackendFactory< T >::Default(), PPPData::deleteAccount(), PPPData::deleteDevice(), MBOXwrapper::deleteMail(), MBOXwrapper::deleteMails(), Server::desktopMessage(), TheNSResources::detectCurrentUser(), USBRun::detectState(), PPPData::devname(), OpieFtp::docButtonPushed(), AdvancedFm::doDelete(), InputDialog::doLookup(), Gutenbrowser::doOptions(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), doqcopimpl(), doqcopsyntax(), StockTickerPluginWidget::doStocks(), QMakeProject::doVariableReplace(), NetworkDialog::downloadFile(), PlayListWidget::downloadPodcast(), Categories::dump(), MiscFunctions::encodeBase64(), PinPlugin::encrypt(), ExtensionsHandler::endElement(), UiHandler::endElement(), QtRec::endRecording(), ErrorNNI::ErrorNNI(), QMakeProperty::exec(), System::execAsUser(), KateCommands::SedReplace::execCmd(), ConnectWidget::execppp(), TsHandler::fatalError(), UiHandler::fatalError(), POP3wrapper::fetchBody(), NNTPwrapper::fetchBody(), MBOXwrapper::fetchBody(), MBOXwrapper::fetchRawBody(), AppLnk::file(), MakefileGenerator::fileFixify(), IMAPwrapper::fillSingleBasicPart(), QMakeMetaInfo::findLib(), VcprojGenerator::findTemplate(), kdbgstream::flush(), Qt3::QTextFormatCollection::format(), TimeConversion::fromString(), MakefileGenerator::generateDependencies(), QRsync::generateDiff(), NetworkNetNode::generateFile(), MakefileGenerator::generateMocList(), NetworkSettingsData::generateSettings(), QRsync::generateSignature(), getButtons(), ButtonDialog::getButtons(), getCharFromString(), PPPData::getDevicesNamesList(), EmailHandler::getEnclosure(), LibraryDialog::getEtext(), OContactFields::getFieldOrder(), Highlight::getItemDataList(), PmIpkg::getList(), Expression::GetNext(), KRFBLogin::getPassword(), TheNSResources::getPixmap(), getStocks(), KRFBDecoder::gotDesktopName(), QIMPenInput::handleExtended(), BluetoothBNEPRun::hasFreePANNetworkSetup(), HighlightDialogPage::hlChanged(), OpieFtp::homeButtonPushed(), KRFBConnection::host(), LibMadPlugin::http_open(), MakefileGenerator::init(), MHwrapper::init_storage(), MainWindow::initConfig(), ANetNodeInstance::initialize(), MakefileGenerator::initOutPaths(), initVObjectEncoding(), PmIpkg::install(), Option::internalParseCommandLine(), Global::invoke(), OpieTooth::Manager::isAvailable(), WavPlugin::isFileSupported(), LibTremorPlugin::isFileSupported(), LibMpeg3Plugin::isFileSupported(), LibMadPlugin::isFileSupported(), PPPData::isUniqueAccname(), PPPData::isUniqueDevname(), QSettings::lastModificationTime(), NNTPwrapper::listAllNewsgroups(), AdvancedFm::ListClicked(), NNTPwrapper::listMessages(), MHwrapper::listMessages(), MBOXwrapper::listMessages(), KeycfgReader::load(), Categories::load(), ODateBookAccessBackend_SQL::load(), load_image(), LauncherView::loadBackgroundImage(), ConfigMainWindow::loadConfig(), OContactFields::loadFromRecord(), Opie::MM::OImageScrollView::loadJpeg(), QLibraryPrivate::loadLibrary(), MainWindowImp::loadModules(), MainWindowImp::loadPlugin(), local8Bit(), OpieFtp::localDelete(), OpieFtp::localListClicked(), OpieFtp::localRename(), OpieFtp::localUpload(), MakefileGenerator::logicWarn(), NNTPwrapper::login(), main(), metaQmFile(), MHwrapper::mvcpMail(), IMAPwrapper::mvcpMail(), NetworkSettingsData::NetworkSettingsData(), NetworkSetup::NetworkSetup(), PPPData::newaccount(), PPPData::newdevice(), Generatemail::newMailbox(), Konsole::newSession(), TaskSwitcher::onKeyPress(), OpenEtext::open(), LibTremorPlugin::open(), LibFlashPlugin::open(), KRFBCanvas::openConnection(), Modem::openLockfile(), QTextStream::operator<<(), operator<<(), operator<<(), Opietooth2::OTDeviceAddress::OTDeviceAddress(), QMakeProject::parse(), IMAPResponseParser::parse(), Config::parse(), Generatemail::parseAddresses(), Konsole::parseCommandLine(), ListViewItemConfFile::parseFile(), optionsDialog::parseFtpList(), OpieTooth::Manager::parseHCIOutput(), QSettingsHeading::parseLine(), Modem::parseModemSpeed(), OpieTooth::Parser::parseRecHandle(), IMAPResponseParser::parseResponse(), FormatterApp::parsetab(), AdvancedFm::parsetab(), KeytabReader::parseTo(), parseVObject(), OContactAccessBackend_VCard::parseVObject(), Opie::OPimContactAccessBackend_VCard::parseVObject(), ProjectBuilderMakefileGenerator::pbuilderVersion(), CameraMainWindow::performCapture(), ScreenshotControl::performGrab(), Qt3::QTextEdit::pickSpecial(), JpegSlave::pixmap(), AdvancedFm::populateView(), PackageHandler::prepareInstall(), System::probeInterfaces(), QCopBridgePI::process(), MakefileGenerator::processPrlFile(), OPimResolver::qcopChannel(), Opie::OPimResolver::qcopChannel(), qmake_error_msg(), OContactAccessBackend_SQL::queryByExample(), QMakeProject::read(), ConfigEx::read(), QSettings::readBoolEntry(), QSettings::readDoubleEntry(), QSettings::readEntry(), QMakeMetaInfo::readLib(), QSettings::readNumEntry(), QtRec::rec(), MainWindowImp::receive(), QCopWatcher::received(), Interface::refresh(), releaseQmFile(), FirstUse::reloadLanguages(), OpieFtp::remoteChDir(), OpieFtp::remoteDelete(), OpieFtp::remoteDirList(), OpieFtp::remoteDownload(), OpieFtp::remoteMakDir(), OpieFtp::remoteRename(), MainWindowImp::removeProfile(), QSettings::removeSearchPath(), KeytabReader::ReportToken(), OContactAccessBackend_SQL::requestNonCustom(), TimerReceiverObject::resetTimer(), BackupAndRestore::restore(), RecordDialog::retPressed(), MyPty::run(), safeAddPropValue(), OContactAccessBackend_VCard::safeAddPropValue(), OpieTooth::HciConfWrapper::save(), DateBookDB::save(), Categories::save(), OTodoAccessXML::save(), Opie::OPimTodoAccessXML::save(), OContactAccessBackend_XML::save(), Opie::OPimContactAccessBackend_XML::save(), QIMPenCharSet::save(), TextEdit::save(), InterfaceSetupImp::saveChanges(), ConfigMainWindow::saveConfigAs(), ScreenshotControl::savePixmap(), NetworkSettingsData::saveSettings(), OContactFields::saveToRecord(), OpieTooth::Manager::searchDevices(), IMAPwrapper::selectMbox(), Device::selectMicInput(), FileTransfer::sendFile(), RemoteTab::sendIR(), SmtpHandler::sendToSocket(), PPPData::setAccount(), ANetNodeInstance::setAttribute(), PPPData::setDevice(), Konsole::setDocument(), KeycfgErrorHandler::setErrorString(), OContactFields::setFieldOrder(), Interfaces::setInterfaceName(), Interfaces::setInterfaceOption(), TextWidget::setKey(), PPPData::setModemDevice(), USBRun::setMyState(), NetworkRun::setMyState(), InterfaceSetupImp::setProfile(), Qt3::QTextDocument::setRichTextInternal(), RuntimeInfo::setState(), Global::shellQuote(), MainWindow::slotCompose(), IMAPBase::slotDataAvailiable(), NotesControl::slotDeleteButton(), Composer::slotSendQueued(), MiscFunctions::smtpAuthCramMd5(), IMAPResponseParser::splitData(), sprintf(), MyPty::start(), VMemo::startRecording(), NetworkSetup::state(), MHwrapper::statusFolder(), MBOXwrapper::statusFolder(), IMAPwrapper::statusFolder(), CameraMainWindow::stopVideoCapture(), PPPData::storedPassword(), MHwrapper::storeMessage(), MBOXwrapper::storeMessage(), IMAPwrapper::storeMessage(), QLocalePrivate::stringToDouble(), QLocalePrivate::stringToLongLong(), QLocalePrivate::stringToUnsLongLong(), QSettings::subkeyList(), AdvancedFm::tabChanged(), to_Time_t(), OTimeZone::toDateTime(), toDouble(), MiscFunctions::uniqueString(), Gutenbrowser::UnZipIt(), PackageListRemote::update(), FileSystem::update(), ConfigItem::updateMenu(), updateTsFiles(), OpieFtp::upDir(), WellenreiterMainWindow::uploadSession(), utcTime(), QMakeProperty::value(), PinPlugin::verify(), VLog(), WExtensions::WExtensions(), KateConfig::write(), Config::write(), BorlandMakefileGenerator::writeBorlandParts(), DspMakefileGenerator::writeDspParts(), QSettings::writeEntry(), MakefileGenerator::writeInstalls(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), NmakeMakefileGenerator::writeNmakeParts(), VcprojGenerator::writeSubDirs(), and ProjectBuilderMakefileGenerator::writeSubdirs().

QChar * QString::latin1ToUnicode const QByteArray ba,
uint *  len
[static, private]
 

This utility function converts the 8-bit string ba to Unicode, returning the result.

The caller is responsible for deleting the return value with delete[].

Definition at line 12900 of file qstring.cpp.

References l, and str.

QChar * QString::latin1ToUnicode const char *  str,
uint *  len,
uint  maxlen = (uint)-1
[static, private]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This utility function converts the ''-terminated 8-bit string str to Unicode, returning the result and setting *len to the length of the Unicode string.

The caller is responsible for deleting the return value with delete[].

Definition at line 12949 of file qstring.cpp.

References i, and l.

QString QString::left uint  len  )  const
 

Returns a substring that contains the len leftmost characters of the string.

The whole string is returned if len exceeds the length of the string.

        QString s = "Pineapple";
        QString t = s.left( 4 );    // t == "Pine"

See also:
right(), mid(), isEmpty()

Definition at line 14823 of file qstring.cpp.

References d, fromLatin1(), isEmpty(), QStringData::len, length(), QString(), s, TRUE, and QStringData::unicode.

Referenced by HelpBrowser::addBookmark(), LauncherIconView::addCatsAndMimes(), ProjectGenerator::addFile(), PIconView::addFiles(), CpuDevice::addInfo(), WordGame::addPlayer(), VCFilter::addUICstage(), OCompletion::addWeightedItem(), AppLnk::AppLnk(), QFileInfo::baseName(), Sheet::calculateFunction(), WLANImp::changeAndSaveSettingFile(), SyncAuthentication::checkPassword(), QDir::cleanDirPath(), Ipkg::commandStderr(), Ipkg::commandStdout(), Output::commandStdout(), Status::confMisc(), Referee::confMisc(), Painter::confMisc(), KpacmanWidget::confMisc(), convert(), QDir::convertSeparators(), OContactAccessBackend_VCard::convVCardDateToDate(), Opie::OPimContactAccessBackend_VCard::convVCardDateToDate(), AdvancedFm::copy(), createMimedir(), MakefileGenerator::createObjectList(), Sheet::dataParserHelper(), Opie::Core::Internal::DebugBackend::debugSock(), UnixMakefileGenerator::defaultInstall(), UserConfig::delUser(), deQuote(), deviceTab(), QFileInfo::dirPath(), QTReaderApp::do_settarget(), AdvancedFm::doBeam(), AdvancedFm::doDelete(), FormatterApp::doFormat(), FormatterApp::doFsck(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), QMakeProject::doVariableReplace(), LibraryDialog::download_Etext(), WebStyle::drawPopupMenuItem(), PhaseStyle::drawPopupMenuItem(), UserConfig::editUser(), QtRec::endRecording(), KateCommands::Character::execCmd(), KateCommands::InsertTime::execCmd(), FontDialog::familyListBoxSlot(), AppLnk::file(), MakefileGenerator::fileFixify(), Status::fillArray(), Referee::fillArray(), Painter::fillArray(), ThemeDialog::fillBox(), OpieFtp::fillCombos(), CHM::FillHomeContent(), Referee::fillMapName(), Status::fillPixmapName(), Painter::fillPixmapName(), Status::fillStrList(), Referee::fillStrList(), Painter::fillStrList(), KateView::find(), Qt3::QTextDocument::find(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), OpenEtext::FindTitle(), IRCPerson::fromMask(), Opietooth2::OTUUID::fromString(), TimeConversion::fromString(), MakefileGenerator::generateDependencies(), Keymap::generateLabelStateMaps(), MakefileGenerator::generateMocList(), MainWindowImp::getAllInterfaces(), LibraryDialog::getAuthor(), striphtml::getch(), FileDialog::getCurrentDir(), LibraryDialog::getEtext(), AdvancedFm::getFileSystemType(), Sheet::getHeaderColumn(), Sheet::getParameter(), Utils::getPathfromIpkFilename(), WriteMail::getRecipients(), IMAPResponseParser::getResponseCode(), Keymap::getStateByLabel(), Swapfile::getStatusSd(), CardMonitor::getStatusSd(), ProjectGenerator::getWritableVar(), CPlucker_base::hyperlink(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), UnixMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), Konsole::init(), Gutenbrowser::initConfig(), MainWindow::initConfig(), striphtml::initentmap(), VcprojGenerator::initOld(), IRCMessage::IRCMessage(), LibMadPlugin::isFileSupported(), Opie::Core::OGenericPluginLoader::languageList(), leftJustify(), QGPluginManager::library(), UnixMakefileGenerator::libtoolFileName(), Ipkg::linkCommandStdout(), OIpkg::loadConfiguration(), NetworkSettingsData::loadSettings(), main(), MHwrapper::MHwrapper(), Qt3::QStyleSheet::mightBeRichText(), QDir::mkdir(), Server::mkdir(), AdvancedFm::mkSym(), NetworkSetup::NetworkSetup(), LibraryDialog::Newlibrary(), QTReaderApp::OnWordSelected(), OpenEtext::open(), LibTremorPlugin::open(), PlayListWidget::openDirectory(), CReb::OpenFile(), PlayListWidget::openFile(), PlayListWidget::openURL(), OPopupMenu::keyPressEvent(), OipkgPackage::packageName(), QMakeProject::parse(), EmailHandler::parse(), KateConfig::parse(), Config::parse(), parseDateTime(), parseEmailFrom(), OpieTooth::Manager::parseHCIOutput(), DingWidget::parseInfo(), QSettingsHeading::parseLine(), ContactEditor::parseName(), parseName(), OipkgPackage::parsePackage(), IMAPResponseParser::parseResponse(), LibraryDialog::parseSearchResults(), WLANImp::parseSettingFile(), ScreenshotControl::performGrab(), Qt3::QTextEdit::pickSpecial(), UnixMakefileGenerator::pkgConfigFileName(), FontDialog::populateLists(), QTReader::PreferredMarkup(), System::probeInterfaces(), ServerPI::process(), MakefileGenerator::processPrlFile(), MetrowerksMakefileGenerator::processPrlFiles(), Qt3::QTextTable::QTextTable(), Qt3::QTextTableCell::QTextTableCell(), OContactAccessBackend_SQL::queryByExample(), QuickPrivate::PluginLoader::queryInterface(), QMakeProject::read(), HelpBrowser::readBookmarks(), Opie::Core::OConfig::readColorEntry(), KMolCalc::readGroup(), CReb::readindex(), PackageManagerSettings::readIpkgConfig(), PlayListWidget::readListFromFile(), PlayListWidget::readm3u(), Om3u::readM3u(), PlayListWidget::readPls(), Om3u::readPls(), PlayListWidget::readpodcast(), IMAPviewItem::refreshFolders(), System::refreshStatistics(), KateView::replace(), TypeCombo::reread(), rightJustify(), PmIpkg::runIpkg(), DNSWidget::save(), NotesControl::save(), TextEdit::saveAs(), Qsmb::scan(), section(), optionsDialog::select_site(), DocumentList::sendAllDocLinks(), IRCConnection::sendLine(), OpieFtp::serverComboSelected(), OipkgPackage::setDesc(), ListViewItemConfigEntry::setKey(), QSettings::setPath(), OipkgPackage::setSection(), Gutenbrowser::setStatus(), MainWindow::slotBookmarkSelected(), StringParser::split(), IMAPResponseParser::splitTagData(), sprintf(), VMemo::startRecording(), FormatterApp::storageComboSelected(), ZkbXmlHandler::str2uint(), QSettings::subkeyList(), Tile::Tile(), OpenEtext::titleFromLibrary(), TranInfo::TranInfo(), Qsmb::umountIt(), Opie::Core::OGenericPluginLoader::unlibify(), Gutenbrowser::UnZipIt(), StorageInfo::update(), MemoryInfo::updateData(), LauncherView::updateTools(), MakefileGenerator::usePlatformDir(), ProxyValidator::validate(), QMakeProperty::value(), DateFormat::wordDate(), MakefileGenerator::write(), IMAPBase::writeCommands(), OpieFtp::writeConfig(), DspMakefileGenerator::writeDspParts(), MakefileGenerator::writeInstalls(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), Win32MakefileGenerator::writeSubDirs(), VcprojGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), and ZoneField::ZoneField().

QString QString::leftJustify uint  width,
QChar  fill = ' ',
bool  truncate = FALSE
const
 

Returns a string of length width that contains this string padded by the fill character.

If truncate is FALSE and the length of the string is more than width, then the returned string is a copy of the string.

If truncate is TRUE and the length of the string is more than width, then any characters in a copy of the string after length width are removed, and the copy is returned.

        QString s( "apple" );
        QString t = s.leftJustify( 8, '.' );        // t == "apple..."

See also:
rightJustify()

Definition at line 14926 of file qstring.cpp.

References d, left(), length(), setLength(), unicode(), and QStringData::unicode.

Referenced by ServerPI::fileListing(), main(), QTextStream::operator<<(), and sprintf().

uint QString::length  )  const [inline]
 

Returns the length of the string.

Null strings and empty strings have zero length.

See also:
isNull(), isEmpty()

Definition at line 802 of file qstring.h.

References d, and QStringData::len.

Referenced by QDir::absFilePath(), WriteMail::accept(), AddressPicker::accept(), SSHKeysApp::add_text_changed(), QTReaderApp::addAnno(), HelpBrowser::addBookmark(), ZSafe::addCategory(), ProjectGenerator::addFile(), VCFilter::addIMGstage(), CpuDevice::addInfo(), OCompletion::addItem(), OCompletion::addWeightedItem(), TextLine::append(), IRCServerTab::appendText(), IRCQueryTab::appendText(), IRCChannelTab::appendText(), arg(), QStringBuffer::at(), auto_hostname(), ScQtFileEditDlg::autoExtension(), KateCommands::backslashString(), QIMPenMatch::backspace(), ServerPI::backupRestoreGzip(), DspMakefileGenerator::beginGroupForFile(), bm_find(), bm_init_skiptable(), Generatemail::buildFilePart(), TaskSelector::buildMenu(), MHwrapper::buildPath(), Generatemail::buildTxtPart(), Sheet::calculateFunction(), Server::cardInfoString(), QRegExpEngine::Box::cat(), CategoryFilterImpl::CategoryFilterImpl(), WLANImp::changeAndSaveSettingFile(), BluepingConfigWidget::changeMAC(), SettingsImpl::changeServerDetails(), DrawPadCanvasXmlHandler::characters(), ConnectWidget::checkBuffers(), HlStringDetect::checkHgl(), ServerPI::checkReadFile(), Board::checkTurn(), Expression::chunk0(), QDir::cleanDirPath(), CleanString(), codeToLanguage(), Output::commandStdout(), Qtopia::compare(), compareSubstr(), compose(), ComposeMail::ComposeMail(), OpieFtp::connector(), contains(), Qt3::QStyleSheet::convertFromPlainText(), QDir::convertSeparators(), OContactAccessBackend_VCard::convVCardDateToDate(), Opie::OPimContactAccessBackend_VCard::convVCardDateToDate(), Generatemail::createImfFields(), createMimedir(), CScrollPrefs::CScrollPrefs(), TextLine::cursorX(), HttpFactory::data(), AdvancedFm::dealWithSymName(), Opie::Core::Internal::DebugBackend::debugSock(), decimalForm(), Status::decodeHexOctString(), Painter::decodeHexOctString(), MiscFunctions::decodeQPrintable(), default_mode(), UnixMakefileGenerator::defaultInstall(), Engine::del(), MakefileGenerator::dependencyKey(), deQuote(), derefEngine(), deviceTab(), DialWidget::DialWidget(), QDir::dirName(), QTReaderApp::do_addbkmk(), QTReaderApp::do_jump(), QTReaderApp::do_settarget(), AdvancedFm::doBeam(), KateDocument::doComment(), KeyHelperWidget::doEvent(), FormatterApp::doFormat(), FormatterApp::doFsck(), NetworkDialog::doOk(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), doqcopimpl(), KateDocument::doReplace(), KateView::doReplaceAction(), Gutenbrowser::doSearch(), QLocalePrivate::doubleToString(), QMakeProject::doVariableReplace(), LibraryDialog::download_newEtext(), NetworkDialog::downloadFile(), PlayListWidget::downloadPodcast(), Field::draw(), DateBookWeekView::drawContents(), TileItem::drawShape(), Qt3::QTextParagraph::drawString(), ZSafe::editCategory(), TabManager::editItem(), KVNCBookmarkDlg::encipher(), encipher(), encodeAttr(), MiscFunctions::encodeBase64(), QtRec::endRecording(), endsWith(), Qt3::QTextDocument::endsWith(), CalculatorImpl::enterNumber(), QRegExp::escape(), Qt3::QStyleSheet::escape(), Qtopia::escapeString(), QRegExp::exactMatch(), ConnectWidget::execppp(), OIpkg::executeCommand(), IRCServerTab::executeCommand(), exponentForm(), AddressbookWindow::exportvCard(), QFileInfo::extension(), FontDialog::familyListBoxSlot(), POP3wrapper::fetchBody(), NNTPwrapper::fetchBody(), AppLnk::file(), MakefileGenerator::fileFixify(), QDir::filePath(), fill(), Status::fillArray(), Referee::fillArray(), Painter::fillArray(), CHM::FillBuffer(), OpieFtp::fillCombos(), CHM::FillContent(), CHM::FillHomeContent(), Status::fillStrList(), Referee::fillStrList(), Painter::fillStrList(), find(), Qt3::QTextDocument::find(), OCompletion::findAllCompletions(), striphtml::findanchor(), findArg(), OCompletion::findCompletion(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), findRev(), TextLine::findSelected(), OpenEtext::FindTitle(), TextLine::findUnselected(), TextLine::firstChar(), MetrowerksMakefileGenerator::fixifyToMacPath(), SSHKeysApp::flush_sshadd_output(), fmtDateTime(), format(), KLocale::formatDate(), WLANImp::formatKey(), KLocale::formatTime(), IRCPerson::fromMask(), Opietooth2::OTUUID::fromString(), fromUcs2(), JpegSlave::fullImageInfo(), MakefileGenerator::generateDependencies(), Keymap::generateLabelStateMaps(), MakefileGenerator::generateMocList(), KeyboardInput::KeyboardConfig::generateText(), Dvorak::KeyboardConfig::generateText(), TextLine::getAttr(), LibraryDialog::getAuthor(), QStringBuffer::getch(), striphtml::getch(), CReb::getch(), CHM::getch(), tableLink::getch(), ErrorFilter::getch(), TextLine::getChar(), getCharFromString(), FileDialog::getCurrentDir(), ZSafe::getDocPassword(), EmailHandler::getEnclosure(), LibraryDialog::getEtext(), ScQtFileEditDlg::getFileName(), FormatterApp::getFileSystemType(), AdvancedFm::getFileSystemType(), Sheet::getHeaderColumn(), TEScreen::getHistory(), Interfaces::getInterfaceFamily(), Interfaces::getInterfaceList(), Interfaces::getInterfaceMethod(), Interfaces::getInterfaceName(), MenuLauncher::getMenuText(), striphtml::getname(), Expression::GetNext(), Interfaces::getOption(), striphtml::getpara(), TextLine::getRawAttr(), WriteMail::getRecipients(), Keymap::getStateByLabel(), InputDialog::getString(), striphtml::getTableAsHtml(), ProjectGenerator::getWritableVar(), groupKey(), Qtopia::hackString(), QGDict::hashKeyString(), Qt3::QTextDocument::hasPrefix(), QRegExpEngine::heuristicallyChooseHeuristic(), Highlight::Highlight(), CPlucker_base::hyperlink(), IMAPHandler::iAppend(), IMAPFolder::IMAPFolder(), PopClient::incomingData(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), Board::init(), TaskbarSettings::init(), Konsole::init(), Gutenbrowser::initConfig(), MainWindow::initConfig(), striphtml::initentmap(), MHfolderItem::initName(), VcprojGenerator::initOld(), MakefileGenerator::initOutPaths(), KateView::initSearch(), insert(), KateDocument::insert(), Qt3::QTextEdit::insert(), Qt3::QTextParagraph::insert(), Qt3::QTextString::insert(), Qt3::QTextCursor::insert(), KateDocument::insert_Line(), KateDocument::insertChars(), KWBuffer::insertFile(), QTrie::insertWord(), OIpkg::installedPackages(), Server::installLocationsString(), IRCMessage::IRCMessage(), IRCServerList::IRCServerList(), isEmpty(), Expression::isMathSymbol(), QDir::isRelativePath(), isRightToLeft(), TextLine::isSelected(), TextParser::isSeparator(), Expression::isSymbol(), Qt3::QTextEdit::keyPressEvent(), OLineEdit::keyPressEvent(), TextLine::lastChar(), left(), leftJustify(), TextLine::length(), LetterChoice::LetterChoice(), Gutenbrowser::LibraryBtn(), UnixMakefileGenerator::libtoolFileName(), TransactionDisplay::limitDisplay(), OIpkg::linkPackageDir(), MHwrapper::listFolders(), KeycfgReader::load(), KeyHelper::load(), Categories::load(), NHcfg::load(), OIpkg::loadConfiguration(), ZSafe::loadDocument(), ZkbWidget::loadKeymap(), PlayListWidget::loadList(), SyncDialog::loadPath(), WordGame::loadRules(), NetworkSettingsData::loadSettings(), localeAwareCompare(), OpieFtp::localListClicked(), MakefileGenerator::logicWarn(), QLocalePrivate::longLongToString(), lower(), main(), MainWindowImp::MainWindowImp(), Qt3::QTextFormat::makeTextFormat(), QLigature::match(), QRegExpEngine::match(), QIMPenMatch::matchWords(), MHFolder::MHFolder(), MHwrapper::MHwrapper(), mid(), Qt3::QStyleSheet::mightBeRichText(), QDir::mkdir(), AdvancedFm::mkSym(), LibraryDialog::moreInfo(), TabManager::moveApplication(), striphtml::mygetch(), NetworkSetup::NetworkSetup(), TabManager::newApplication(), ZSafe::newDocument(), LibraryDialog::Newlibrary(), KateDocument::newLine(), MainWindowImp::newProfileChanged(), FirstUse::newQcopChannel(), AppLauncher::newQcopChannel(), nextChar(), TextParser::nextLine(), TextLine::numSelected(), EmulationLayer::onRcvBlock(), TEmulation::onRcvBlock(), QTReaderApp::OnWordSelected(), QStringBuffer::open(), OpenEtext::open(), Gutenbrowser::OpenBtn(), PlayListWidget::openDirectory(), CReb::OpenFile(), Modem::openLockfile(), ProjectGenerator::openOutput(), ProjectBuilderMakefileGenerator::openOutput(), PlayListWidget::openURL(), operator+=(), operator<<(), kdbgstream::operator<<(), Opie::Core::odbgstream::operator<<(), operator==(), QtDasherPlugin::output(), OipkgPackage::packageName(), Qt3::QTextParagraph::paint(), QMakeProject::parse(), EmailHandler::parse(), KateConfig::parse(), Config::parse(), parse_color(), IMAPwrapper::parse_list_result(), KHUtil::parseArgs(), Option::parseCommandLine(), parseDateTime(), parseEmailFrom(), parseEmailTo(), ListViewItemConfFile::parseFile(), optionsDialog::parseFtpList(), DingWidget::parseInfo(), Genericwrapper::parseInreplies(), QSettingsHeading::parseLine(), parseName(), parseNextNumber(), IMAPResponseParser::parseResponse(), LibraryDialog::parseSearchResults(), WLANImp::parseSettingFile(), AnyLnk::parseText(), FileView::paste(), Qt3::QTextEdit::pasteSubType(), UnixMakefileGenerator::pkgConfigFileName(), Qt3::QTextDocument::plainText(), AudioWidget::playFile(), UsbCategory::populate(), FontDialog::populateLists(), QTReader::PreferredMarkup(), CRegExpFilt::prepreprocessing(), CRegExpFilt::preprocessing(), QCopBridgePI::process(), IRCQueryTab::processCommand(), IRCChannelTab::processCommand(), QIMPenMatch::processMatches(), QTReader::processmousewordevent(), MakefileGenerator::processPrlFile(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), proFileTagMap(), put_it_in(), QPEApplication::qpeDir(), Qt3::QTextTable::QTextTable(), Qt3::QTextTableCell::QTextTableCell(), OContactAccessBackend_SQL::queryByExample(), Opie::OPimContactAccessBackend_SQL::queryByExample(), QuickPrivate::PluginLoader::queryInterface(), QMakeProject::read(), Score::read(), DrinkData::read(), ZSafe::readAllEntries(), QStringBuffer::readBlock(), HelpBrowser::readBookmarks(), ModemTransfer::readChar(), Opie::Core::OConfig::readColorEntry(), GoWidget::readConfig(), KLocale::readDate(), readElem(), Highlight::readGlobalKeywordConfig(), KMolCalc::readGroup(), CReb::readindex(), readInt(), QMakeMetaInfo::readLibtoolFile(), QSettings::readListEntry(), Om3u::readM3u(), EmailClient::readMail(), Server::readPackageFile(), PlayListWidget::readPls(), Om3u::readPls(), PlayListWidget::readpodcast(), KLocale::readTime(), real_detach(), QCopWatcher::received(), Dir_DirLister::recFiles(), KateDocument::recordReplace(), Score::rect(), Painter::rect(), Interface::refresh(), mainWindowWidget::refreshList(), OpieFtp::remoteListClicked(), remove(), Om3u::remove(), ZSafe::removeAsciiFile(), QLocalePrivate::removeGroupSeparators(), IMAPResponseParser::removeLimiters(), TextLine::removeSpaces(), CDrawBuffer::render(), replace(), TextLine::replace(), KateCommands::replace(), TextLnk::replace(), AnyLnk::replaceDate(), AnyLnk::replaceText(), WriteMail::reply(), KeytabReader::ReportToken(), TimerReceiverObject::resetTimer(), right(), rightJustify(), ConfigFile::rot13(), PmIpkg::runIpkg(), runTests(), NotesControl::save(), TextEdit::saveAs(), ZSafe::saveDocument(), ZSafe::saveDocumentAs(), DateBookDB::saveJournalEntry(), SFCave::saveReplay(), Board::score(), QRegExp::search(), SConfig::search(), Gutenbrowser::search_slot(), QRegExp::searchRev(), section(), Qt3::QTextDocument::section(), KateCommands::SedReplace::sedMagic(), TextLine::select(), optionsDialog::select_site(), LibraryDialog::select_title(), Qt3::QTextDocument::selectedText(), TextLine::selectEol(), SelectMailType::SelectMailType(), MultiauthConfig::selectNet(), QCopBridge::sendDesktopMessageOld(), IRCConnection::sendLine(), SmtpHandler::sendToSocket(), OpieFtp::serverComboSelected(), serviceBinding(), TextLine::setAttribs(), ZSafe::setCategoryDialogFields(), OLineEdit::setCompletedText(), ZSafe::setDocument(), DateBook::setDocument(), AddressbookWindow::setDocument(), Konsole::setDocument(), Modem::setHostname(), ListViewItemConfigEntry::setKey(), MultiKey::Keys::setKeysFromFile(), Opie::Net::OWirelessNetworkInterface::setNickName(), QSettings::setPath(), Qt3::QTextDocument::setPlainText(), InterfaceSetupImp::setProfile(), Qt3::QTextDocument::setRichTextInternal(), Score::setScheme(), Interfaces::setStanza(), OTicker::setText(), Opie::Ui::OTicker::setText(), LnkProperties::setupLocations(), Global::shellQuote(), simplifyWhiteSpace(), QStringBuffer::size(), PackageInfoDlg::slotFiles(), OIpkgConfigDlg::slotOptSelectSourceListsPath(), InstallDlg::slotOutput(), SelectMailType::slotSelection(), OIpkgDestDlg::slotSelectPath(), EntryDlg::slotSelectPath(), ConfigureDlg::slotSelectSwordPath(), MiscFunctions::smtpAuthCramMd5(), OTodoAccessBackendSQL::sorted(), Opie::OPimContactAccessBackend_SQL::sorted(), MakefileGenerator::specdir(), Clock::spinBoxValid(), QStringList::split(), TextParser::split(), StringParser::split(), split_arg_list(), Qt3::QTextCursor::splitAndInsertEmptyParagraph(), IMAPResponseParser::splitData(), ValueExplode::splitit(), TextParser::splitLine(), IMAPResponseParser::splitTagData(), sprintf(), CHM::start2endSection(), VMemo::startRecording(), startsWith(), FormatterApp::storageComboSelected(), AppLnk::storeLink(), ZkbXmlHandler::str2modifier(), stripWhiteSpace(), stripWhiteSpaceInPlace(), QSettings::subkeyList(), Server::systemMsg(), Bitfont::text(), KateDocument::text(), BenchmarkInfo::textRendering(), Expression::Third(), ConnectWidget::timerEvent(), SysFileMonitor::timerEvent(), OpenEtext::titleFromLibrary(), TextLine::toggleSelect(), TextLine::toggleSelectEol(), toLong(), toULong(), TranInfo::TranInfo(), translationAttempt(), TextLine::truncate(), QTextStream::ts_getbuf(), QTextStream::ts_getline(), ucstrcmp(), MiscFunctions::uniqueString(), OIpkg::unlinkPackage(), QComponentFactory::unregisterComponent(), QLocalePrivate::unsLongLongToString(), MemoryInfo::updateData(), NewGame::updateRuleSets(), QTReaderApp::UpdateStatus(), QIMPenMatch::updateWordMatch(), WellenreiterMainWindow::uploadSession(), upper(), utf8(), ProxyValidator::validate(), QColIntValidator::validate(), wc2rx(), CDrawBuffer::width(), HlManager::wildcardFind(), TextLine::wrap(), MakefileGenerator::write(), Interfaces::write(), ZSafe::writeAllEntries(), MediumMountSetting::MediumMountWidget::writeConfig(), OpieFtp::writeConfig(), ConfigDialog::writeConfiguration(), DspMakefileGenerator::writeDspParts(), UnixMakefileGenerator::writeLibtoolFile(), PlayListWidget::writem3u(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), NmakeMakefileGenerator::writeNmakeParts(), UnixMakefileGenerator::writePkgConfigFile(), MakefileGenerator::writePrlFile(), Win32MakefileGenerator::writeSubDirs(), VcprojGenerator::writeSubDirs(), MingwMakefileGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), QProcess::writeToStdin(), MakefileGenerator::writeUicSrc(), and ZSafe::ZSafe().

QCString QString::local8Bit  )  const
 

Returns the string encoded in a locale-specific format. On X11, this is the QTextCodec::codecForLocale(). On Windows, it is a system-defined encoding. On Mac OS X, this always uses UTF-8 as the encoding.

See QTextCodec for more diverse coding/decoding of Unicode strings.

See also:
fromLocal8Bit(), ascii(), latin1(), utf8()

Definition at line 16843 of file qstring.cpp.

References QTextCodec::codecForLocale(), QTextCodec::fromUnicode(), latin1(), and utf8().

Referenced by add_domain(), ProtocolListView::addProtocol(), SyncAuthentication::checkPassword(), QUType_QString::convertTo(), Opie::Core::Internal::DebugBackend::debugShel(), Opie::Core::Internal::DebugBackend::debugSysl(), ModemTransfer::do_script(), LnkProperties::done(), TEWidget::drop_menu_activated(), TEWidget::dropEvent(), SSHKeysApp::get_list_keys_output(), Opie::Net::OWirelessNetworkInterface::hasPrivate(), ProtocolListView::isProtocolChecked(), Opie::Core::Internal::DebugBackend::line(), Resource::loadIconSet(), Resource::loadPixmap(), locale_encoder(), UsbCategory::populate(), ProtocolListView::protocolAction(), FontDatabase::readFonts(), removedns(), Opie::resetTimeZone(), Dialer::send(), KRFBDecoder::sendCutEvent(), Opie::setTimeZone(), vobjByEvent(), and QProcess::writeToStdin().

int QString::localeAwareCompare const QString s1,
const QString s2
[inline, static]
 

Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.

The comparison is performed in a locale- and also platform-dependent manner. Use this function to present sorted lists of strings to the user.

See also:
QString::compare() QTextCodec::locale()

Definition at line 627 of file qstring.h.

References localeAwareCompare().

int QString::localeAwareCompare const QString s  )  const
 

Definition at line 17300 of file qstring.cpp.

References compare(), isEmpty(), length(), and ucs2().

Referenced by localeAwareCompare().

QString QString::lower  )  const
 

Returns a lowercase copy of the string.

        QString string( "TROlltECH" );
        str = string.lower();   // str == "trolltech"

See also:
upper()

Definition at line 14998 of file qstring.cpp.

References d, l, length(), p, real_detach(), s, and QStringData::unicode.

Referenced by KeyMappings::assignModifier(), KeyMappings::assignUnicode(), Sheet::calculateFunction(), contains(), ExtensionFactory::createInstance(), AbstractMail::decode_String(), doqcopimpl(), QMakeProject::doVariableReplace(), QCopLnk::execute(), CHM::FillBuffer(), CHM::FillContent(), IMAPwrapper::fillMultiPart(), IMAPwrapper::fillSingleBasicPart(), IMAPwrapper::fillSingleTextPart(), find(), findRev(), striphtml::getpara(), ProjectGenerator::init(), MimeType::init(), Opie::OPimMainWindow::initBars(), MHfolderItem::initName(), IMAPwrapper::listFolders(), NetworkSettingsData::loadSettings(), Qt3::QStyleSheet::mightBeRichText(), NetworkSetup::NetworkSetup(), LibTremorPlugin::open(), QMakeProject::parse(), IRCMessageParser::parseCTCPAction(), IRCMessageParser::parseCTCPPing(), Qt3::QTextDocument::parseOpenTag(), Qt3::QTextDocument::parseWord(), CameraMainWindow::performCapture(), CpuCategory::populate(), Qt3::QStyleSheetItem::QStyleSheetItem(), Qt3::QTextTableCell::QTextTableCell(), QSettings::readBoolEntry(), QSettingsPrivate::readGroup(), QSettingsPrivate::removeGroup(), section(), Qt3::QTextDocument::setRichTextInternal(), QRegExpEngine::setupGoodStringHeuristic(), CameraMainWindow::stopVideoCapture(), ConnectWidget::timerEvent(), CameraMainWindow::updateCaption(), use_net2003_version(), and QSettingsPrivate::writeGroup().

QStringData * QString::makeSharedNull  )  [static, private]
 

Definition at line 13156 of file qstring.cpp.

References d.

Referenced by QString(), and setUnicode().

QString QString::mid uint  index,
uint  len = 0xffffffff
const
 

Returns a string that contains the len characters of this string, starting at position index.

Returns a null string if the string is empty or index is out of range. Returns the whole string from index if index + len exceeds the length of the string.

        QString s( "Five pineapples" );
        QString t = s.mid( 5, 4 );                  // t == "pine"

See also:
left(), right()

Definition at line 14887 of file qstring.cpp.

References d, fromLatin1(), isEmpty(), QStringData::len, length(), p, QString(), s, TRUE, QStringData::unicode, and unicode().

Referenced by ZSafe::addCategory(), PIconView::addFiles(), WordGame::addPlayer(), OCompletion::addWeightedItem(), AppLauncher::AppLauncher(), OIpkg::availablePackages(), DspMakefileGenerator::beginGroupForFile(), Sheet::calculateFunction(), QRegExp::capturedTexts(), CategoryFilterImpl::CategoryFilterImpl(), ConnectWidget::checkBuffers(), SyncAuthentication::checkPassword(), InputMethods::chooseKbd(), QDir::cleanDirPath(), UnixMakefileGenerator::combineSetLFlags(), convert(), OContactAccessBackend_VCard::convVCardDateToDate(), Opie::OPimContactAccessBackend_VCard::convVCardDateToDate(), CScrollPrefs::CScrollPrefs(), FileView::cut(), Sheet::dataParser(), Sheet::dataParserHelper(), OConversion::dateFromString(), Opie::OPimDateConversion::dateFromString(), OConversion::dateTimeFromString(), Opie::OPimDateConversion::dateTimeFromString(), Status::decodeHexOctString(), Painter::decodeHexOctString(), deQuote(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), doqcopimpl(), QMakeProject::doVariableReplace(), PlayListWidget::downloadPodcast(), KCheckers::drawNumeration(), WebStyle::drawPopupMenuItem(), OThemeStyle::drawPopupMenuItem(), PhaseStyle::drawPopupMenuItem(), FreshStyle::drawPopupMenuItem(), LiquidStyle::drawPopupMenuItem(), FlatStyle::drawPopupMenuItem(), Qt3::QTextParagraph::drawString(), ZSafe::editCategory(), TabManager::editItem(), CalculatorImpl::enterNumber(), SortDialog::exec(), QuickLauncher::exec(), OCompletion::extractStringsFromNodeCI(), MakefileGenerator::fileFixify(), QFileInfo::fileName(), CHM::FillHomeContent(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), OpenEtext::FindTitle(), MetrowerksMakefileGenerator::fixifyToMacPath(), IRCPerson::fromMask(), QTime::fromString(), QDate::fromString(), TimeConversion::fromString(), MakefileGenerator::generateMocList(), MagicTextBrowser::generateQpe(), striphtml::getch(), LoadInfo::getCpuInfo(), Utils::getFilenameFromIpkFilename(), Interfaces::getInterfaceFamily(), Interfaces::getInterfaceList(), Interfaces::getInterfaceMethod(), Interfaces::getInterfaceName(), MenuLauncher::getMenuText(), Interfaces::getOption(), Utils::getPackageNameFromIpkFilename(), Utils::getPackageVersionFromIpkFilename(), Sheet::getParameter(), WeatherPluginWidget::getPressure(), BatteryStatus::getProcApmStatusIpaq(), AddressList::getRightString(), Keymap::getStateByLabel(), CardMonitor::getStatusPcmcia(), TodolistPluginWidget::getTodo(), WeatherPluginWidget::getWind(), QIMPenInput::handleExtended(), KHUtil::hex2int(), LibraryDialog::httpDownload(), PopClient::incomingData(), NmakeMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), DocLnk::init(), Opie::Core::Internal::Zaurus::init(), Opie::Core::Internal::MyPal::init(), Opie::Core::Internal::Jornada::init(), Opie::Core::Internal::iPAQ::init(), VcprojGenerator::initOld(), OIpkg::installedPackages(), QMakeProject::isActiveConfig(), LibraryDialog::Library(), Opietooth2::OTPeer::load(), OpieTooth::RfCommConfHandler::load(), QIMPenCharSet::load(), OIpkg::loadConfiguration(), NetworkSettingsData::loadSettings(), main(), MainWindowImp::MainWindowImp(), Qt3::QTextFormat::makeTextFormat(), Qt3::QStyleSheet::mightBeRichText(), TabManager::moveApplication(), NetworkSetup::NetworkSetup(), TabManager::newApplication(), LibraryDialog::Newlibrary(), AppLauncher::newQcopChannel(), LibTremorPlugin::open(), TextEdit::openFile(), QMakeProject::parse(), KateConfig::parse(), Config::parse(), Generatemail::parseAddresses(), parseDateTime(), parseEmailFrom(), parseEmailTo(), ListViewItemConfFile::parseFile(), optionsDialog::parseFtpList(), Modem::parseModemSpeed(), OpieTooth::Parser::parseName(), ContactEditor::parseName(), parseName(), IRCMessageParser::parseNumericalServerProtocol(), OpieObex::Obex::parseOut(), OpieObex::BtObex::parseOut(), OipkgPackage::parsePackage(), OpieTooth::Parser::parseProtocol(), OpieTooth::Parser::parseRecHandle(), WLANImp::parseSettingFile(), OPackageManager::parseVersion(), FileView::paste(), Qt3::QTextEdit::pickSpecial(), UnixMakefileGenerator::pkgConfigFileName(), OpieFtp::populateRemoteView(), QCopBridgePI::process(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), proFileTagMap(), QMyDialog::QMyDialog(), QuickPrivate::PluginLoader::queryInterface(), QUuid::QUuid(), HelpBrowser::readBookmarks(), Opie::Core::OConfig::readColorEntry(), KLocale::readDate(), KMolCalc::readGroup(), CReb::readindex(), PackageManagerSettings::readIpkgConfig(), QMakeMetaInfo::readLibtoolFile(), Server::readLocalIpks(), EmailClient::readMail(), Server::readPackageFile(), KLocale::readTime(), QCopWatcher::received(), Interface::refresh(), System::refreshStatistics(), CDrawBuffer::render(), TypeCombo::reread(), DNSWidget::save(), NotesControl::save(), TextEdit::saveAs(), section(), Qt3::QTextDocument::selectedText(), DocumentList::sendAllDocLinks(), ZSafe::setCategoryDialogFields(), Opie::Core::Internal::setCS3Bit(), MailItWindow::setDocument(), OpieMail::setDocument(), QSettings::setPath(), Qt3::QTextDocument::setPlainText(), InterfaceSetupImp::setProfile(), Qt3::QTextDocument::setRichTextInternal(), OipkgPackage::setSection(), DCIM_DirLister::setStartPath(), Package::setStatus(), MainWindow::slotBookmarkSelected(), MainWindow::slotTextRefClicked(), QStringList::split(), StringParser::split(), split_arg_list(), ValueExplode::splitit(), sprintf(), TsHandler::startElement(), AppLnk::storeLink(), ZkbXmlHandler::str2modifier(), ZkbXmlHandler::str2uint(), Tile::Tile(), OpenEtext::titleFromLibrary(), TranInfo::TranInfo(), QTextStream::ts_getbuf(), QTextStream::ts_getline(), Opie::Core::OGenericPluginLoader::unlibify(), ImageViewer::updateCaption(), MemoryInfo::updateData(), LauncherView::updateTools(), TZCombo::updateZones(), MakefileGenerator::usePlatformDir(), QIMPenProfile::userConfig(), ProxyValidator::validate(), QMakeProperty::value(), varMap(), CDrawBuffer::width(), HlManager::wildcardFind(), DspMakefileGenerator::writeDspParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), Win32MakefileGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), MakefileGenerator::writeUicSrc(), XLessThanY(), ZoneField::ZoneField(), and CityTime::~CityTime().

QString QString::number double  n,
char  f = 'g',
int  prec = 6
[static]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Argument n is formatted according to the f format specified, which is g by default, and can be any of the following:

Format Meaning e format as [-]9.9e[+|-]999 E format as [-]9.9E[+|-]999 f format as [-]9.9 g use e or f format, whichever is the most concise G use E or f format, whichever is the most concise

With 'e', 'E', and 'f', prec is the number of digits after the decimal point. With 'g' and 'G', prec is the maximum number of significant digits (trailing zeroes are omitted).

    double d = 12.34;
    QString ds = QString( "'E' format, precision 3, gives %1" )
                    .arg( d, 0, 'E', 3 );
    // ds == "1.234E+001"

See also:
setNum()

Definition at line 16392 of file qstring.cpp.

References s, and setNum().

QString QString::number uint  n,
int  base = 10
[static]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. A convenience factory function that returns a string representation of the number n to the base base, which is 10 by default and must be between 2 and 36.

See also:
setNum()

Definition at line 16357 of file qstring.cpp.

References s, and setNum().

QString QString::number int  n,
int  base = 10
[static]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

See also:
setNum()

Definition at line 16341 of file qstring.cpp.

References s, and setNum().

QString QString::number ulong  n,
int  base = 10
[static]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

See also:
setNum()

Definition at line 16329 of file qstring.cpp.

References s, and setNum().

QString QString::number long  n,
int  base = 10
[static]
 

A convenience function that returns a string equivalent of the number n to base base, which is 10 by default and must be between 2 and 36.

        long a = 63;
        QString str = QString::number( a, 16 );             // str == "3f"
        QString str = QString::number( a, 16 ).upper();     // str == "3F"

See also:
setNum()

Definition at line 16317 of file qstring.cpp.

References s, and setNum().

Referenced by PacketView::_doSubPackets(), Sensor::accept(), TabsSettings::accept(), CommandEditDialog::accept(), PackageManagerSettings::activeDestinationChange(), ODateBookAccessBackend_SQL::add(), Opie::ODateBookAccessBackend_SQL::add(), AccountDisplay::addAccount(), OFileViewFileListView::addDir(), Opie::Ui::Internal::OFileViewFileListView::addDir(), OFileViewFileListView::addFile(), Opie::Ui::Internal::OFileViewFileListView::addFile(), Passwd::addGroup(), GroupDialog::addGroup(), Budget::addLineItem(), EKNumTabWidget::addTab(), UserDialog::addUser(), Passwd::addUser(), OPimNotifyManager::alarmsToString(), Opie::OPimNotifyManager::alarmsToString(), Clock::applyDailyAlarm(), DateBook::appMessage(), arg(), AttachViewItem::AttachViewItem(), Gutenbrowser::BackBtn(), BackupAndRestore::backupRootFs(), BackupAndRestore::backupUserData(), Sheet::calculateFunction(), Sheet::calculateVariable(), Server::cardInfoString(), Konsole::changeCommand(), Device::changedInVolume(), Device::changedOutVolume(), Konsole::changeSession(), AdvancedFm::checkDiskSpace(), Konsole::colorMenuSelected(), CommandEditDialog::CommandEditDialog(), QUType_QString::convertFrom(), LnkProperties::copyFile(), OHighscoreDialog::createHighscoreListView(), QComLibrary::createInstanceInternal(), MainWindow::createNewSheet(), CellFormat::createSizeCombo(), createVObject(), OContactAccessBackend_VCard::createVObject(), Opie::OPimContactAccessBackend_VCard::createVObject(), dataWidgetUI::dataWidgetUI(), DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(), EmailListItem::dateFromULCString(), OConversion::dateTimeToString(), Opie::OPimDateConversion::dateTimeToString(), OConversion::dateToString(), Opie::OPimDateConversion::dateToString(), Opie::Core::OGlobalSettings::debugOutput(), MScanListItem::decorateItem(), SettingsDialog::delayChanged(), Budget::deleteBudget(), Budget::deleteLineItem(), OpieFtp::deleteServer(), QtRec::deleteSound(), DatePicker::displayDays(), BudgetDisplay::displayLineItems(), Budget::displayLineItems(), DatePicker::displayMonths(), OpieStumbler::displayStations(), DatePicker::displayYears(), GpsLocation::dmsPosition(), QtRec::doBeam(), LnkProperties::done(), QMakeProject::doProjectTest(), KAstTopLevel::doStats(), QMakeProject::doVariableReplace(), DateBookWeekView::drawContents(), TileItem::drawShape(), GroupDialog::editGroup(), BudgetDisplay::editLineItem(), TransactionDisplay::editTransfer(), UserDialog::editUser(), KVNCBookmarkDlg::encipher(), encipher(), QtRec::endRecording(), CalculatorImpl::enterNumber(), IRCServerList::exec(), AppLauncher::execute(), SearchGroup::expand(), DrawPadCanvas::exportPage(), FontDialog::familyListBoxSlot(), AppLnk::file(), MakefileGenerator::fileFixify(), ServerPI::fileListing(), filesize(), SortDialog::fillFieldCombo(), ODateBookAccessBackend_SQL::find(), Opie::ODateBookAccessBackend_SQL::find(), Sheet::findCellName(), ExcelBook::FindCellName(), Win32MakefileGenerator::findLibraries(), OFontSelector::fontFamilyClicked(), Opie::Ui::OFontSelector::fontFamilyClicked(), AddressBookPluginWidget::getAddress(), NewTransaction::getBudgetIndex(), Budget::getBudgetTotal(), LoadInfo::getCpuInfo(), Preferences::getDate(), AdvancedFm::getDiskSpace(), QInputDialog::getDouble(), getFmtString(), ExcelBook::GetFormula(), UserConfig::getGroups(), Qt3::QTextFormat::getKey(), Budget::getLineItemAmount(), Budget::getLineItemIDs(), NewTransaction::getLineItemIndex(), Budget::getLineItems(), Budget::getLineItemTime(), OHighscore::getList(), Budget::getNumberOfLineItems(), WeatherPluginWidget::getPressure(), WeatherPluginWidget::getTemp(), UserConfig::getUsers(), WeatherPluginWidget::getWind(), Gutenbrowser::Gutenbrowser(), FontManager::hasUnicodeFont(), Qtopia::Record::idsToString(), UnixMakefileGenerator::init(), QtRec::init(), Konsole::init(), Konsole::initCommandList(), Todo::TableView::initConfig(), MainWindow::initConfig(), DateBookDayView::initHeader(), OHighscore::insertData(), Server::installLocationsString(), PSEWidget::inverseColor(), IRCServerEditor::IRCServerEditor(), IRCServerList::IRCServerList(), IRCServerTab::IRCServerTab(), Tile::key(), AppLnk::linkFile(), list_value_to_string(), FunctionKeyboardConfig::load(), FunctionKeyboard::load(), ConsoleConfigWidget::load(), Todo::TemplateManager::load(), AbConfig::load(), main(), Qt3::QTextFormat::makeFormatChangeTags(), margin_to_string(), OTodo::match(), Task::match(), Opie::OPimTodo::match(), PPPData::modemInitStr(), FunctionKeyboard::mousePressEvent(), FunctionKeyboard::mouseReleaseEvent(), OpieFtp::NewServer(), Konsole::newSession(), ProcessInvoker::notifyStatus(), numberPlacing(), EKNumTabBar::numberTabs(), Opie::Core::odBacktrace(), QtRec::okRename(), KHCWidget::onClick_Gen(), KHCWidget::onPress_Map(), KHCWidget::onPress_Org(), QtRec::openPlayFile(), Opie::Core::odbgstream::operator<<(), PageInformationDialog::PageInformationDialog(), Mine::paint(), DayItemMonth::paint(), Todo::TableView::paintCell(), MailApplet::paintEvent(), Resultboard::paintEvent(), FunctionKeyboard::paintEvent(), BatteryMeter::paintEvent(), FunctionKeyboard::paintKey(), IRCMessageParser::parse(), percent(), WellenreiterConfigWindow::performAction(), PlayListWidget::populateAudioView(), FontDialog::populateLists(), PlayListWidget::populateVideoView(), VTApplet::popup(), PredictTabWidget::PredictTabWidget(), ConWindow::prettyPrintVolume(), HelpWindow::print(), ServerPI::process(), PSEWidget::PSEWidget(), Opie::OPimContactAccessBackend_SQL::queryByExample(), QuickLauncher::QuickLauncher(), WordGame::readConfig(), QSettings::readDoubleEntry(), PackageManagerSettings::readInstallationSetting(), CityTime::readInTimes(), QSettings::readNumEntry(), EmailClient::readSettings(), SearchGroup::realSearch(), MScanListItem::receivedBeacon(), VMemo::record(), Opie::OPimTodo::recordField(), QComponentFactory::registerComponent(), MyPty::reload(), Opie::ODevice::reloadButtonMapping(), Opie::Core::ODevice::reloadButtonMapping(), Opie::ODevice::remapHeldAction(), Opie::Core::ODevice::remapHeldAction(), Opie::ODevice::remapPressedAction(), Opie::Core::ODevice::remapPressedAction(), OPimNotifyManager::remindersToString(), Opie::OPimNotifyManager::remindersToString(), PmIpkg::remove(), ODateBookAccessBackend_SQL::remove(), Opie::ODateBookAccessBackend_SQL::remove(), TimerReceiverObject::resetTimer(), Qt3::QTextDocument::richText(), Opie::Internal::RoHFeedback::RoHFeedback(), Ipkg::runIpkg(), OContact::save(), FunctionKeyboardConfig::save(), ConsoleConfigWidget::save(), CfgParser::save(), Task::save(), Event::save(), Contact::save(), Categories::save(), Opie::OPimContact::save(), save(), Opie::Core::OPluginManager::save(), Todo::TemplateManager::save(), AbConfig::save(), ContactEditor::saveEntry(), AbEditor::saveEntry(), DateBookDB::saveJournalEntry(), EmailClient::saveSettings(), SettingsTabWidget::saveSettings(), DateBook::saveSettings(), KateCommands::SedReplace::sedMagic(), Transaction::selectAllTransactions(), MultiauthConfig::selectNet(), IRCConnection::sendCTCPPing(), QCopBridge::sendDesktopMessageOld(), ServerPI::sendList(), OpieFtp::serverListClicked(), Gutenbrowser::setBookmark(), Konsole::setColor(), NewTransaction::setComboBoxes(), DateBookWeekLstHeader::setDate(), DateBookWeekHeader::setDate(), Opie::Core::Internal::SIMpad::setDisplayBrightness(), OxydataWidget::setElement(), KeycfgErrorHandler::setErrorString(), OContactFields::setFieldOrder(), Opie::OPimContactFields::setFieldOrder(), Konsole::setFont(), PPPData::setModemInitStr(), OFontSelector::setSelectedFont(), Opie::Ui::OFontSelector::setSelectedFont(), Clock::setSwatchLcd(), CellFormat::setTextFont(), OTimePickerDialog::setTime(), Opie::Ui::OTimePickerDialog::setTime(), SettingsTabWidget::SettingsTabWidget(), OContact::setUid(), Contact::setUid(), Opie::OPimContact::setUid(), QtRec::setupAudio(), ScoreInfo::showScores(), ScoreInfo::showTemporaryScore(), CityTime::showTime(), FileItem::sizeString(), OipkgPackage::sizeUnits(), CategoryEdit::slotAdd(), OpieObex::SendWidget::slotBtTry(), MailApplet::slotCheck(), PiecesTable::slotCustomImage(), OpieObex::SendWidget::slotIrTry(), FunctionKeyboardConfig::slotKeyPressed(), PredictTabWidget::slotPredictTime(), Composer::slotQueueMail(), Composer::slotSendQueued(), Composer::slotSendQueuedFinished(), OpieStumbler::slotShowDetails(), OTodoAccessBackendSQL::sorted(), OContactAccessBackend_XML::sorted(), Opie::OPimContactAccessBackend_SQL::sorted(), IMAPResponseParser::splitData(), Wellenreiter::startClicked(), ZkbHandler::startMapElement(), Server::systemMsg(), Todo::TableView::TableView(), OpieObex::OtherHandler::targetName(), TaskEditorOverView::TaskEditorOverView(), ConnectWidget::timerEvent(), TimeString::timeString(), OTodo::toMap(), ORecur::toMap(), OEvent::toMap(), Task::toMap(), Event::toMap(), Opie::OPimTodo::toMap(), Opie::OPimRecurrence::toMap(), Opie::OPimEvent::toMap(), OTodo::toRichText(), Opie::OPimTodo::toRichText(), DocLnkItem::toRichText(), OEvent::toShortText(), Opie::OPimEvent::toShortText(), QDate::toString(), TVVariant::toString(), QUuid::toString(), TimeConversion::toString(), OTodoAccessXML::toString(), Opie::OPimTodoAccessXML::toString(), TranInfo::TranInfo(), FontManager::unicodeFont(), QComponentFactory::unregisterComponent(), BudgetDisplay::updateBudgetInformation(), MStatWindow::updateCounter(), ProcessInfo::updateData(), ModulesInfo::updateData(), DemoApp::updateDebugOutput(), Passwd::updateGroup(), ImageViewer::updateImageInfo(), Keyview::updateItems(), OContactAccessBackend_XML::updateJournal(), Opie::OPimContactAccessBackend_XML::updateJournal(), Budget::updateLineItem(), Passwd::updateUser(), TZCombo::updateZones(), WellenreiterMainWindow::uploadSession(), vobjByEvent(), DateFormat::wordDate(), TranInfo::write(), write(), OpieFtp::writeConfig(), ScoreInfo::writeConfig(), WordGame::writeConfig(), PiecesTable::writeConfig(), PackageManagerSettings::writeCurrentInstallationSetting(), QSettings::writeEntry(), Profile::writeEntry(), CityTime::~CityTime(), and Todo::TableView::~TableView().

QString::operator const char *  )  const [inline]
 

Returns latin1(). Be sure to see the warnings documented in the latin1() function. Note that for new code which you wish to be strictly Unicode-clean, you can define the macro QT_NO_ASCII_CAST when compiling your code to hide this function so that automatic casts are not done. This has the added advantage that you catch the programming error described in operator!().

Definition at line 608 of file qstring.h.

QString::operator std::string  )  const [inline]
 

Returns ascii().

Definition at line 611 of file qstring.h.

References ascii().

bool QString::operator!  )  const [inline]
 

Returns TRUE if this is a null string; otherwise returns FALSE.

        QString name = getName();
        if ( !name )
            name = "Rodney";

Note that if you say

        QString name = getName();
        if ( name )
            doSomethingWith(name);

It will call "operator const char*()", which is inefficent; you may wish to define the macro QT_NO_ASCII_CAST when writing code which you wish to remain Unicode-clean.

When you want the above semantics, use:

        QString name = getName();
        if ( !name.isNull() )
            doSomethingWith(name);

See also:
isEmpty()

Definition at line 799 of file qstring.h.

References isNull().

QString & QString::operator+= char  c  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends c to the string and returns a reference to the string.

Definition at line 16592 of file qstring.cpp.

References QTextCodec::codecForCStrings(), d, fromAscii(), length(), operator+=(), setLength(), and QStringData::unicode.

QString & QString::operator+= QChar  c  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends c to the string and returns a reference to the string.

Definition at line 16579 of file qstring.cpp.

References d, length(), setLength(), and QStringData::unicode.

QString & QString::operator+= const std::string &  str  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends str to the string and returns a reference to the string.

Definition at line 853 of file qstring.h.

References operator+=().

QString & QString::operator+= const char *  str  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends str to the string and returns a reference to the string.

Definition at line 16549 of file qstring.cpp.

References QTextCodec::codecForCStrings(), d, fromAscii(), fromLatin1(), i, isNull(), length(), operator+=(), setLength(), and QStringData::unicode.

QString & QString::operator+= const QByteArray str  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Appends str to the string and returns a reference to the string.

Definition at line 831 of file qstring.h.

References operator+=(), and QString().

QString & QString::operator+= const QString str  ) 
 

Appends str to the string and returns a reference to the string.

Definition at line 16530 of file qstring.cpp.

References d, fromLatin1(), isNull(), length(), setLength(), unicode(), and QStringData::unicode.

Referenced by append(), and operator+=().

QString & QString::operator= char  c  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to contain just the single character c.

Definition at line 793 of file qstring.h.

References QString().

QString & QString::operator= QChar  c  )  [inline]
 

Sets the string to contain just the single character c.

Definition at line 790 of file qstring.h.

References QString().

QString & QString::operator= const QCString cs  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Assigns a deep copy of cs, interpreted as a classic C string, to this string and returns a reference to this string.

Definition at line 13398 of file qstring.cpp.

References setAscii().

QString & QString::operator= const std::string &  s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Makes a deep copy of s and returns a reference to the deep copy.

QString & QString::operator= const char *  str  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Assigns a deep copy of str, interpreted as a classic C string to this string and returns a reference to this string.

If str is 0, then a null string is created.

See also:
isNull()

Definition at line 13414 of file qstring.cpp.

References setAscii().

QString & QString::operator= const QString s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Assigns a shallow copy of s to this string and returns a reference to this string. This is very fast because the string isn't actually copied.

Definition at line 13384 of file qstring.cpp.

References d, deref(), and QShared::ref().

QCharRef QString::operator[] int  i  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. The function returns a reference to the character at index i. The resulting reference can then be assigned to, or used immediately, but it will become invalid once further modifications are made to the original string.

If i is beyond the length of the string then the string is expanded with QChar::nulls, so that the QCharRef references a valid (null) character in the string.

The QCharRef internal class can be used much like a constant QChar, but if you assign to it, you change the original string (which will detach itself because of QString's copy-on-write semantics). You will get compilation errors if you try to use the result as anything but a QChar.

Definition at line 733 of file qstring.h.

References at().

QChar QString::operator[] int  i  )  const [inline]
 

Returns the character at index i, or QChar::null if i is beyond the length of the string.

If the QString is not const (i.e., const QString) or const& (i.e., const QString&), then the non-const overload of operator[] will be used instead.

Definition at line 583 of file qstring.h.

References at().

QString & QString::prepend const std::string &  s  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Inserts s at the beginning of the string and returns a reference to the string.

Equivalent to insert(0, s).

See also:
insert()

Definition at line 826 of file qstring.h.

References insert().

QString & QString::prepend const char *  s  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Inserts s at the beginning of the string and returns a reference to the string.

Equivalent to insert(0, s).

See also:
insert()

Definition at line 15301 of file qstring.cpp.

References insert(), and QString().

QString & QString::prepend const QByteArray s  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Inserts s at the beginning of the string and returns a reference to the string.

Equivalent to insert(0, s).

See also:
insert()

Definition at line 821 of file qstring.h.

References insert(), and QString().

QString & QString::prepend const QString s  )  [inline]
 

Inserts s at the beginning of the string and returns a reference to the string.

Equivalent to insert(0, s).

        QString string = "42";
        string.prepend( "The answer is " );
        // string == "The answer is 42"

See also:
insert()

Definition at line 811 of file qstring.h.

References insert().

QString & QString::prepend QChar  ch  )  [inline]
 

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 beginning of the string and returns a reference to the string.

Equivalent to insert(0, ch).

See also:
insert()

Definition at line 814 of file qstring.h.

References insert().

QString & QString::prepend char  ch  )  [inline]
 

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 beginning of the string and returns a reference to the string.

Equivalent to insert(0, ch).

See also:
insert()

Definition at line 817 of file qstring.h.

References insert().

Referenced by MainWindow::addCheckbook(), TransactionDisplay::addTransaction(), Checkbook::adjustBalance(), QashMoney::changeTabDisplay(), QDir::convertSeparators(), HttpFactory::data(), decimalForm(), UnixMakefileGenerator::defaultInstall(), TransactionDisplay::deleteTransaction(), QashMoney::displayDatePreferencesDialog(), QashMoney::displayTransactionPreferencesDialog(), Transfer::displayTransfers(), QMakeProject::doProjectCheckReqs(), QLocalePrivate::doubleToString(), DateBookWeekView::drawContents(), EmailClient::enqueMail(), MakefileGenerator::fileFixify(), Win32MakefileGenerator::findLibraries(), Preferences::getDate(), BatteryStatus::getProcApmStatusIpaq(), QSettings::group(), HlRegExpr::HlRegExpr(), UnixMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), ANetNodeInstance::initialize(), UnixMakefileGenerator::libtoolFileName(), TransactionDisplay::limitDisplay(), OIpkg::linkPackageDir(), Checkbook::loadCheckbook(), OIpkg::loadConfiguration(), QLocalePrivate::longLongToString(), main(), metaQmFile(), MainWindow::openBook(), MakefileGenerator::openOutput(), UnixMakefileGenerator::pkgConfigFileName(), ProfileEdit::ProfileEdit(), OProcess::quote(), Opie::Core::OProcess::quote(), QMakeMetaInfo::readLibtoolFile(), DBCsv::saveSource(), Board::score(), OIpkg::setConfigItems(), Checkbook::slotEditTran(), Checkbook::slotNewTran(), ORecurranceWidget::slotWeekLabel(), OPimRecurrenceWidget::slotWeekLabel(), RepeatEntry::slotWeekLabel(), TimeString::timeString(), TransactionDisplay::toggleTransaction(), QTextStream::ts_ungetc(), OIpkg::unlinkPackage(), QLocalePrivate::unsLongLongToString(), TransactionDisplay::updateAndDisplay(), BudgetDisplay::updateBudgetInformation(), MakefileGenerator::write(), DspMakefileGenerator::writeDspParts(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), Win32MakefileGenerator::writeSubDirs(), and UnixMakefileGenerator::writeSubdirs().

void QString::real_detach  )  [private]
 

Deallocates any space reserved solely by this QString.

If the string does not share its data with another QString instance, nothing happens; otherwise the function creates a new, unique copy of this string. This function is called whenever the string is modified.

Definition at line 13335 of file qstring.cpp.

References length(), and setLength().

Referenced by detach(), lower(), remove(), replace(), subat(), and upper().

QChar & QString::ref uint  i  )  [inline]
 

Returns the QChar at index i by reference, expanding the string with QChar::null if necessary. The resulting reference can be assigned to, or otherwise used immediately, but becomes invalid once furher modifications are made to the string.

        QString string("ABCDEF");
        QChar ch = string.ref( 3 );         // ch == 'D'

See also:
constref()

Definition at line 589 of file qstring.h.

References d.

Referenced by QLocalePrivate::doubleToString(), and LauncherView::setBackgroundType().

QString & QString::remove const char *  str  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Removes every occurrence of str in the string. Returns a reference to the string.

Definition at line 15426 of file qstring.cpp.

References fromLatin1(), and remove().

QString & QString::remove const QRegExp rx  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Removes every occurrence of the regular expression rx in the string. Returns a reference to the string.

This is the same as replace(rx, "").

Definition at line 15414 of file qstring.cpp.

References replace().

QString & QString::remove const QString str  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Removes every occurrence of str in the string. Returns a reference to the string.

This is the same as replace(str, "").

Definition at line 15376 of file qstring.cpp.

References find(), isEmpty(), length(), and remove().

QString & QString::remove char  c  )  [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Removes every occurrence of the character c in the string. Returns a reference to the string.

This is the same as replace(c, "").

Definition at line 522 of file qstring.h.

References remove().

QString & QString::remove QChar  c  ) 
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Removes every occurrence of the character c in the string. Returns a reference to the string.

This is the same as replace(c, "").

Definition at line 15346 of file qstring.cpp.

References constref(), i, length(), and remove().

QString & QString::remove uint  index,
uint  len
 

Removes len characters from the string starting at position index, and returns a reference to the string.

If index is beyond the length of the string, nothing happens. If index is within the string, but index + len is beyond the end of the string, the string is truncated at position index.

        QString string( "Montreal" );
        string.remove( 1, 4 );      // string == "Meal"

See also:
insert(), replace()

Definition at line 15323 of file qstring.cpp.

References d, length(), real_detach(), setLength(), and QStringData::unicode.

Referenced by auto_hostname(), CalculatorImpl::CalculatorImpl(), ConnectWidget::checkBuffers(), QDir::cleanDirPath(), CleanString(), Generatemail::createImfFields(), HttpFactory::data(), Sheet::dataParser(), DateBookDayWidget::DateBookDayWidget(), KateDocument::doComment(), KeyHelperWidget::doEvent(), LibraryDialog::download_Etext(), LibraryDialog::download_newEtext(), Qt3::QTextParagraph::drawString(), Status::fillArray(), Referee::fillArray(), Painter::fillArray(), Status::fillStrList(), Referee::fillStrList(), Painter::fillStrList(), g_insert_ldot(), Preferences::getDate(), Qt3::QTextCursor::insert(), OIpkg::loadConfiguration(), KateConfig::parse(), Config::parse(), IMAPwrapper::parse_list_result(), OpieTooth::Manager::parseHCIOutput(), Genericwrapper::parseInreplies(), QSettingsHeading::parseLine(), parseNextNumber(), OpieObex::Obex::parseOut(), OpieObex::BtObex::parseOut(), Qt3::QTextEdit::pasteSubType(), Qt3::QTextDocument::plainText(), AppLauncher::processExited(), HttpFactory::processResponse(), Opie::OPimContactAccessBackend_SQL::queryByExample(), Highlight::readGlobalKeywordConfig(), remove(), QLocalePrivate::removeGroupSeparators(), replace(), TextLine::replace(), Qt3::QTextDocument::setPlainText(), DateBookWeek::slotShowEvent(), OTodoAccessBackendSQL::sorted(), Opie::OPimContactAccessBackend_SQL::sorted(), stripWhiteSpaceInPlace(), QSettings::subkeyList(), ConnectWidget::timerEvent(), IRCOutput::toHTML(), and NmakeMakefileGenerator::var().

QString & QString::replace QChar  c1,
QChar  c2
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces every occurrence of c1 with the char c2. Returns a reference to the string.

Definition at line 15391 of file qstring.cpp.

References d, i, real_detach(), and QStringData::unicode.

QString & QString::replace const QRegExp rx,
const QString str
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces every occurrence of the regexp rx in the string with str. Returns a reference to the string. For example:

    QString s = "banana";
    s.replace( QRegExp("an"), "" );
    // s == "ba"

For regexps containing capturing parentheses , occurrences of \1, \2, ..., in str are replaced with {rx}.cap(1), cap(2), ...

    QString t = "A <i>bon mot</i>.";
    t.replace( QRegExp("<i>([^<]*)</i>"), "\\emph{\\1}" );
    // t == "A \\emph{bon mot}."

See also:
find(), findRev(), QRegExp::cap()

Definition at line 15652 of file qstring.cpp.

References QRegExp::cap(), QRegExp::CaretAtZero, QRegExp::CaretWontMatch, d, QChar::digitValue(), i, isNull(), QStringData::len, length(), QRegExp::matchedLength(), QStringData::maxl, no, QRegExp::numCaptures(), pos, QT_ALLOC_QCHAR_VEC, QT_DELETE_QCHAR_VEC, real_detach(), replace(), QRegExp::search(), QStringData::setDirty(), size, QStringData::unicode, and unicode().

QString & QString::replace const QString before,
const QString after
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces every occurrence of the string before in the string with the string after. Returns a reference to the string.

Example:

    QString s = "Greek is Greek";
    s.replace( "Greek", "English" );
    // s == "English is English"

Definition at line 15535 of file qstring.cpp.

References bm_find(), bm_init_skiptable(), d, isNull(), QStringData::len, length(), pos, real_detach(), setLength(), TRUE, QStringData::unicode, and unicode().

QString & QString::replace char  c,
const QString after
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Replaces every occurrence of the character c in the string with after. Returns a reference to the string.

Definition at line 536 of file qstring.h.

References KateCommands::replace().

QString & QString::replace QChar  c,
const QString after
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces every occurrence of the character c in the string with after. Returns a reference to the string.

Example:

    QString s = "a,b,c";
    s.replace( QChar(','), " or " );
    // s == "a or b or c"

Definition at line 15511 of file qstring.cpp.

References QString(), and replace().

QString & QString::replace uint  index,
uint  len,
char  c
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

This is the same as replace(index, len, QChar(c)).

Definition at line 533 of file qstring.h.

References KateCommands::replace().

QString & QString::replace uint  index,
uint  len,
QChar  c
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This is the same as replace(index, len, QString(c)).

Definition at line 15459 of file qstring.cpp.

References replace().

QString & QString::replace uint  index,
uint  len,
const QChar s,
uint  slen
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Replaces len characters with slen characters of QChar data from s, starting at position index, and returns a reference to the string.

See also:
insert(), remove()

Definition at line 15480 of file qstring.cpp.

References d, insert(), length(), QStringData::maxl, QT_ALLOC_QCHAR_VEC, QT_DELETE_QCHAR_VEC, real_detach(), remove(), replace(), and QStringData::unicode.

QString & QString::replace uint  index,
uint  len,
const QString s
 

Replaces len characters from the string with s, starting at position index, and returns a reference to the string.

If index is beyond the length of the string, nothing is deleted and s is appended at the end of the string. If index is valid, but index + len is beyond the end of the string, the string is truncated at position index, then s is appended at the end.

        QString string( "Say yes!" );
        string = string.replace( 4, 3, "NO" );
        // string == "Say NO!"

See also:
insert(), remove()

Definition at line 15450 of file qstring.cpp.

References length(), and unicode().

Referenced by OIpkgDestDlg::accept(), OIpkgServerDlg::accept(), AddressPicker::accept(), Interfaces::addInterface(), FileView::addToDocuments(), arg(), Gutenbrowser::BackBtn(), Base::Base(), Cannon::Cannon(), TsHandler::characters(), compose(), KpacmanWidget::confScheme(), OpieFtp::connector(), OContactAccessBackend_VCard::convDateToVCardDate(), Opie::OPimContactAccessBackend_VCard::convDateToVCardDate(), convert(), LnkProperties::copyFile(), Snake::createSnake(), createSymlinks(), Sheet::dataParser(), DatebookAlldayDisp::DatebookAlldayDisp(), Painter::decodeHexOctString(), ViewMail::deHtml(), deQuote(), DatebookEventDesc::disp_event(), QMakeProject::doProjectTest(), StockTickerPluginWidget::doStocks(), QMakeProject::doVariableReplace(), LibraryDialog::download_Etext(), PlayListWidget::downloadPodcast(), ZSafe::editPwd(), TEWidget::emitSelection(), encodeAttr(), PPPData::encodeWord(), KPPPWidget::encodeWord(), UiHandler::endElement(), IMAPHandler::escape(), Qtopia::escapeString(), KateCommands::Character::execCmd(), KateView::find(), Win32MakefileGenerator::findDependency(), UnixMakefileGenerator::findDependency(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), VcprojGenerator::fixFilename(), MetrowerksMakefileGenerator::fixifyToMacPath(), Option::fixPathToLocalOS(), Option::fixPathToTargetOS(), ProjectBuilderMakefileGenerator::fixQuotes(), Score::formatDate(), Gutenbrowser::ForwardBtn(), Opietooth2::OTUUID::fromString(), LibraryDialog::getEtext(), XineControl::getMetaInfo(), getStocks(), ProjectGenerator::getWritableVar(), Helicopter::Helicopter(), PopClient::incomingData(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), MakefileGenerator::init(), Board::init(), DocLnk::init(), MHfolderItem::initName(), VcprojGenerator::initOld(), VcprojGenerator::initPostBuildEventTools(), IRCMessage::IRCMessage(), IRCOutput::IRCOutput(), StringParser::join(), MHwrapper::listFolders(), Gutenbrowser::load(), NotesControl::load(), SyncDialog::loadPath(), Status::loadPixmap(), Painter::loadPixmap(), OpieFtp::localUpload(), MagicTextBrowser::magicOpe(), MagicTextBrowser::magicQpe(), Man::Man(), Kpacman::menu(), LibraryDialog::moreInfo(), WavFile::newFile(), ZSafe::newPwd(), OpenEtext::open(), DspMakefileGenerator::openOutput(), OPopupMenu::keyPressEvent(), QMakeProject::parse(), DingWidget::parseInfo(), WLANImp::parseOpts(), Qt3::QTextEdit::pasteSubType(), ProjectBuilderMakefileGenerator::pbuilderVersion(), WellenreiterConfigWindow::performAction(), UnixMakefileGenerator::pkgConfigFixPath(), Qtopia::plainString(), print_filter(), QCopBridgePI::process(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), proFileTagMap(), OContactAccessBackend_SQL::queryByExample(), Opie::OPimContactAccessBackend_SQL::queryByExample(), quote(), OProcess::quote(), Opie::Core::OProcess::quote(), ZSafe::readAllEntries(), Om3u::readM3u(), Om3u::readPls(), KLocale::readTime(), ModemTransfer::readtty(), SmtpHandler::readyRead(), releaseQmFile(), OpieFtp::remoteChDir(), OpieFtp::remoteDelete(), OpieFtp::remoteDirList(), OpieFtp::remoteDownload(), OpieFtp::remoteListClicked(), OpieFtp::remoteMakDir(), OpieFtp::remoteRename(), remove(), IMAPResponseParser::removeLimiters(), removeSpaces(), replace(), QCString::replace(), KateView::replace(), TextLnk::replace(), AnyLnk::replaceText(), safeFileName(), NotesControl::save(), TextEdit::saveAs(), ScreenshotControl::savePixmap(), DBCsv::saveSource(), Gutenbrowser::searchGoogle(), KateCommands::SedReplace::sedMagic(), SelectMailType::SelectMailType(), Dialer::send(), ConnectWidget::setExpect(), Interfaces::setInterfaceName(), MultiKey::Keys::setKeysFromFile(), Interfaces::setMapping(), NoticeConfigWidget::setNoticeText(), LibraryDialog::setTitle(), OpieTooth::HciConfWrapper::setValue(), ZoneMap::showCity(), ZSafe::showInfo(), ScoreInfo::showScores(), imageinfo::slot_fullInfo(), MainWindow::slotNavKeyChanged(), CityTime::slotNewTz(), SelectMailType::slotSelection(), SmtpHandler::SmtpHandler(), MakefileGenerator::specdir(), StringParser::split(), VMemo::startRecording(), Opie::Core::ODirNotification::subdirCreated(), QSettings::sync(), ConnectWidget::timerEvent(), IRCOutput::toHTML(), Gutenbrowser::TopBtn(), OpieFtp::upDir(), NmakeMakefileGenerator::var(), Interfaces::write(), ZSafe::writeAllEntries(), QStringBuffer::writeBlock(), BorlandMakefileGenerator::writeBorlandParts(), DspMakefileGenerator::writeDspParts(), QSettings::writeEntry(), MakefileGenerator::writeImageObj(), MakefileGenerator::writeLexSrc(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MingwMakefileGenerator::writeMingwParts(), MakefileGenerator::writeMocObj(), NmakeMakefileGenerator::writeNmakeParts(), MakefileGenerator::writeObj(), UnixMakefileGenerator::writePkgConfigFile(), Win32MakefileGenerator::writeSubDirs(), MingwMakefileGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), MakefileGenerator::writeUicSrc(), and MakefileGenerator::writeYaccSrc().

QString QString::right uint  len  )  const
 

Returns a string that contains the len rightmost characters of the string.

If len is greater than the length of the string then the whole string is returned.

        QString string( "Pineapple" );
        QString t = string.right( 5 );   // t == "apple"

See also:
left(), mid(), isEmpty()

Definition at line 14854 of file qstring.cpp.

References d, fromLatin1(), isEmpty(), l, QStringData::len, length(), QString(), s, TRUE, and QStringData::unicode.

Referenced by QDir::absFilePath(), QDir::absPath(), ZSafe::addCategory(), CpuDevice::addInfo(), PackageHandler::addPackageFiles(), IRCServerTab::appendText(), IRCQueryTab::appendText(), IRCChannelTab::appendText(), ScQtFileEditDlg::autoExtension(), BackupAndRestore::backupRootFs(), DspMakefileGenerator::beginGroupForFile(), Sheet::calculateFunction(), ConnectWidget::checkBuffers(), OpieObex::Receiver::checkFile(), OpieFtp::cleanUp(), AdvancedFm::cleanUp(), PackageHandler::cleanupPackageFiles(), Status::confMisc(), Referee::confMisc(), Painter::confMisc(), KpacmanWidget::confMisc(), OpieFtp::connector(), QDir::convertSeparators(), StartMenu::createAppEntry(), createMimedir(), createSymlinks(), OpieFtp::currentPathComboChanged(), Sheet::dataParserHelper(), AdvancedFm::dealWithSymName(), Opie::Core::Internal::DebugBackend::debugSock(), default_mode(), UnixMakefileGenerator::defaultInstall(), MakefileGenerator::dependencyKey(), QDir::dirName(), QTReaderApp::do_settarget(), AdvancedFm::doBeam(), AdvancedFm::doDelete(), FormatterApp::doFormat(), Gutenbrowser::doOptions(), QMakeProject::doProjectCheckReqs(), QMakeProject::doProjectTest(), QMakeProject::doVariableReplace(), LibraryDialog::download_Etext(), NetworkDialog::downloadFile(), ServerPI::dtpCompleted(), ZSafe::editCategory(), TabManager::editItem(), TextLine::endingWith(), IRCServerTab::executeCommand(), QFileInfo::extension(), AppLnk::file(), MakefileGenerator::fileFixify(), ThemeDialog::fillBox(), OpieFtp::fillCombos(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), MetrowerksMakefileGenerator::fixifyToMacPath(), fixPath(), IRCPerson::fromMask(), QDate::fromString(), Opietooth2::OTUUID::fromString(), Opie::Net::OMacAddress::fromString(), MakefileGenerator::generateDependencies(), MakefileGenerator::generateMocList(), LibraryDialog::getAuthor(), striphtml::getch(), FileDialog::getCurrentDir(), ZSafe::getDocPassword(), LibraryDialog::getEtext(), ScQtFileEditDlg::getFileName(), FormatterApp::getFileSystemType(), AdvancedFm::getFileSystemType(), getFmtString(), WriteMail::getRecipients(), IMAPFolder::IMAPFolder(), PopClient::incomingData(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), Konsole::init(), Gutenbrowser::initConfig(), MainWindow::initConfig(), striphtml::initentmap(), VcprojGenerator::initOld(), MakefileGenerator::initOutPaths(), OIpkg::installedPackages(), IRCMessage::IRCMessage(), QMakeProject::isActiveConfig(), LibFlashPlugin::isFileSupported(), DocumentListPrivate::iterate(), UnixMakefileGenerator::libtoolFileName(), OIpkg::linkPackageDir(), OIpkg::loadConfiguration(), ZSafe::loadDocument(), OpieFtp::localListClicked(), MakefileGenerator::logicWarn(), main(), Multikey::message(), AdvancedFm::mkSym(), AdvancedFm::move(), striphtml::mygetch(), ZSafe::newDocument(), WavFile::newFile(), OpenEtext::open(), PlayListWidget::openDirectory(), CReb::OpenFile(), PlayListWidget::openFile(), TextEdit::openFile(), Modem::openLockfile(), ProjectGenerator::openOutput(), PlayListWidget::openURL(), Opie::Global::isAppLnkFileName(), OipkgPackage::packageName(), QMakeProject::parse(), EmailHandler::parse(), Option::parseCommandLine(), parseEmailFrom(), parseEmailTo(), optionsDialog::parseFtpList(), DingWidget::parseInfo(), IMAPResponseParser::parseResponse(), LibraryDialog::parseSearchResults(), WLANImp::parseSettingFile(), OPackageManager::parseVersion(), UnixMakefileGenerator::pkgConfigFileName(), UsbCategory::populate(), OpieFtp::populateRemoteView(), QTReader::PreferredMarkup(), IRCQueryTab::processCommand(), IRCChannelTab::processCommand(), MakefileGenerator::processPrlFile(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), QMakeProject::read(), DrinkData::read(), Opie::Core::OConfig::readColorEntry(), CReb::readindex(), PlayListWidget::readm3u(), Om3u::readM3u(), PlayListWidget::readPls(), Om3u::readPls(), PlayListWidget::readpodcast(), Server::readStatusFile(), OpieFtp::remoteDelete(), OpieFtp::remoteDirList(), OpieFtp::remoteDownload(), OpieFtp::remoteListClicked(), Ipkg::removeStatusEntry(), CDrawBuffer::render(), ZSafe::saveDocument(), ZSafe::saveDocumentAs(), Output::saveOutput(), ScreenshotControl::savePixmap(), optionsDialog::select_site(), IRCConnection::sendLine(), OpieFtp::serverComboSelected(), KStandardDirs::setAppDir(), ZSafe::setCategoryDialogFields(), ZSafe::setDocument(), Konsole::setDocument(), ListViewItemConfigEntry::setKey(), QSettings::setPath(), Clock::setSwatchLcd(), PackageInfoDlg::slotFiles(), IMAPResponseParser::splitTagData(), VMemo::startRecording(), FormatterApp::storageComboSelected(), OpenEtext::titleFromLibrary(), TranInfo::TranInfo(), OIpkg::unlinkPackage(), QComponentFactory::unregisterComponent(), OpieFtp::upDir(), CDrawBuffer::width(), MakefileGenerator::write(), MediumMountSetting::MediumMountWidget::writeConfig(), DspMakefileGenerator::writeDspParts(), MakefileGenerator::writeInstalls(), MakefileGenerator::writeLexSrc(), PlayListWidget::writem3u(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), MakefileGenerator::writePrlFile(), Win32MakefileGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), MakefileGenerator::writeUicSrc(), MakefileGenerator::writeYaccSrc(), and ZSafe::ZSafe().

QString QString::rightJustify uint  width,
QChar  fill = ' ',
bool  truncate = FALSE
const
 

Returns a string of length width that contains the fill character followed by the string.

If truncate is FALSE and the length of the string is more than width, then the returned string is a copy of the string.

If truncate is TRUE and the length of the string is more than width, then the resulting string is truncated at position width.

        QString string( "apple" );
        QString t = string.rightJustify( 8, '.' );  // t == "...apple"

See also:
leftJustify()

Definition at line 14966 of file qstring.cpp.

References d, left(), length(), setLength(), unicode(), and QStringData::unicode.

Referenced by BackupAndRestore::backupRootFs(), BackupAndRestore::backupUserData(), EmailListItem::dateFromULCString(), OConversion::dateTimeToString(), Opie::OPimDateConversion::dateTimeToString(), OConversion::dateToString(), Opie::OPimDateConversion::dateToString(), ServerPI::fileListing(), getFmtString(), DateBookDayView::initHeader(), main(), QTextStream::operator<<(), Opie::OPimContactAccessBackend_SQL::queryByExample(), sprintf(), and ProcessInfo::updateData().

QString QString::section const QRegExp reg,
int  start,
int  end = 0xffffffff,
int  flags = SectionDefault
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function returns a section of the string.

This string is treated as a sequence of fields separated by the regular expression, reg. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behaviour, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see {SectionFlags}.

    QString line( "forename\tmiddlename  surname \t \t phone" );
    QRegExp sep( "\s+" );
    QString s = line.section( sep, 2, 2 ); // s == "surname"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

    QString line( "forename\tmiddlename  surname \t \t phone" );
    QRegExp sep( "\\s+" );
    QString s = line.section( sep, -3, -2 ); // s == "middlename  surname"

Warning:
Using this QRegExp version is much more expensive than the overloaded string and character versions.
See also:
QStringList::split() simplifyWhiteSpace()

Definition at line 14630 of file qstring.cpp.

References QPtrList< type >::append(), QPtrList< type >::count(), QPtrList< type >::first(), i, l, left(), length(), QRegExp::matchedLength(), mid(), QPtrList< type >::next(), QString(), QRegExp::search(), SectionCaseInsensitiveSeps, SectionIncludeLeadingSep, SectionIncludeTrailingSep, SectionSkipEmpty, QPtrCollection::setAutoDelete(), QRegExp::setCaseSensitive(), TRUE, and unicode().

QString QString::section const QString sep,
int  start,
int  end = 0xffffffff,
int  flags = SectionDefault
const
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function returns a section of the string.

This string is treated as a sequence of fields separated by the string, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behaviour, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see {SectionFlags}.

    QString data( "forename**middlename**surname**phone" );
    QString s = data.section( "**", 2, 2 ); // s == "surname"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

    QString data( "forename**middlename**surname**phone" );
    QString s = data.section( "**", -3, -2 ); // s == "middlename**surname"

See also:
QStringList::split()

Definition at line 14443 of file qstring.cpp.

References begin, FALSE, length(), lower(), match(), QString(), SectionCaseInsensitiveSeps, SectionIncludeLeadingSep, SectionIncludeTrailingSep, SectionSkipEmpty, TRUE, and unicode().

QString QString::section const char *  sep,
int  start,
int  end = 0xffffffff,
int  flags = SectionDefault
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 786 of file qstring.h.

References QString(), and section().

QString QString::section char  sep,
int  start,
int  end = 0xffffffff,
int  flags = SectionDefault
const [inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 782 of file qstring.h.

References section().

QString QString::section QChar  sep,
int  start,
int  end = 0xffffffff,
int  flags = SectionDefault
const [inline]
 

This function returns a section of the string.

This string is treated as a sequence of fields separated by the character, sep. The returned string consists of the fields from position start to position end inclusive. If end is not specified, all fields from position start to the end of the string are included. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.

The flags argument can be used to affect some aspects of the function's behaviour, e.g. whether to be case sensitive, whether to skip empty fields and how to deal with leading and trailing separators; see {SectionFlags}.

    QString csv( "forename,middlename,surname,phone" );
    QString s = csv.section( ',', 2, 2 );   // s == "surname"

    QString path( "/usr/local/bin/myapp" ); // First field is empty
    QString s = path.section( '/', 3, 4 );  // s == "bin/myapp"
    QString s = path.section( '/', 3, 3, SectionSkipEmpty ); // s == "myapp"

If start or end is negative, we count fields from the right of the string, the right-most field being -1, the one from right-most field being -2, and so on.

    QString csv( "forename,middlename,surname,phone" );
    QString s = csv.section( ',', -3, -2 );  // s == "middlename,surname"

    QString path( "/usr/local/bin/myapp" ); // First field is empty
    QString s = path.section( '/', -1 ); // s == "myapp"

See also:
QStringList::split()

Definition at line 779 of file qstring.h.

References QString().

Referenced by VCFilter::addUICstage(), DspMakefileGenerator::beginGroupForFile(), MakefileGenerator::generateDependencies(), ProjectBuilderMakefileGenerator::openOutput(), section(), UnixMakefileGenerator::writeMakeParts(), NmakeMakefileGenerator::writeNmakeParts(), VcprojGenerator::writeSubDirs(), UnixMakefileGenerator::writeSubdirs(), and MakefileGenerator::writeUicSrc().

QString & QString::setAscii const char *  str,
int  len = -1
 

Sets this string to str, interpreted as a classic 8-bit ASCII C string. If len is -1 (the default), then it is set to strlen(str).

If str is 0 a null string is created. If str is "", an empty string is created.

See also:
isNull(), isEmpty()

Definition at line 17155 of file qstring.cpp.

References QTextCodec::codecForCStrings(), fromAscii(), and setLatin1().

Referenced by operator=().

void QString::setExpand uint  index,
QChar  c
 

Sets the character at position index to c and expands the string if necessary, filling with spaces.

This method is redundant in Qt 3.x, because operator[] will expand the string as necessary.

Definition at line 16409 of file qstring.cpp.

References at(), d, QStringData::len, and QStringData::unicode.

Referenced by Score::Score().

QString & QString::setLatin1 const char *  str,
int  len = -1
 

Sets this string to str, interpreted as a classic Latin1 C string. If len is -1 (the default), then it is set to strlen(str).

If str is 0 a null string is created. If str is "", an empty string is created.

See also:
isNull(), isEmpty()

Definition at line 17177 of file qstring.cpp.

References d, fromLatin1(), p, setUnicode(), and QStringData::unicode.

Referenced by setAscii(), and setNum().

void QString::setLength uint  newLen  ) 
 

Ensures that at least newLen characters are allocated to the string, and sets the length of the string to newLen. Any new space allocated contains arbitrary data.

If newLen is 0, then the string becomes empty (non-null).

If it is not possible to allocate enough memory, the string remains unchanged.

This function always detaches the string from other references to the same data.

This function is useful for code that needs to build up a long string and wants to avoid repeated reallocation. In this example, we want to add to the string until some condition is true, and we're fairly sure that size is big enough:

        QString result;
        int len = 0;
        result.setLength( maxLen );     // allocate some space
        while ( ... ) {
            result[len++] = ...         // fill part of the space
        }
        result.truncate( len );         // and get rid of the rest

If newLen is an underestimate, the worst that will happen is that the loop will slow down.

See also:
truncate(), isNull(), isEmpty(), length()

Definition at line 13516 of file qstring.cpp.

References computeNewMax(), QShared::count, d, deref(), QStringData::len, QStringData::maxl, QT_ALLOC_QCHAR_VEC, QStringData::setDirty(), and QStringData::unicode.

Referenced by countryToCode(), fromUtf8(), insert(), languageToCode(), leftJustify(), operator+=(), real_detach(), remove(), replace(), rightJustify(), simplifyWhiteSpace(), subat(), and truncate().

QString & QString::setNum double  n,
char  f = 'g',
int  prec = 6
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n, formatted in format f with precision prec, and returns a reference to the string.

The format f can be 'f', 'F', 'e', 'E', 'g' or 'G'. See arg () for an explanation of the formats.

Definition at line 16255 of file qstring.cpp.

References buf, format(), qWarning(), setLatin1(), and sprintf().

QString & QString::setNum float  n,
char  f = 'g',
int  prec = 6
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n, formatted in format f with precision prec, and returns a reference to the string.

The format f can be 'f', 'F', 'e', 'E', 'g' or 'G'. See arg () for an explanation of the formats.

Definition at line 871 of file qstring.h.

References setNum().

QString & QString::setNum ulong  n,
int  base = 10
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n in base base and returns a reference to the string.

The base is 10 by default and must be between 2 and 36.

Definition at line 16180 of file qstring.cpp.

References buf, p, qWarning(), and setUnicode().

QString & QString::setNum long  n,
int  base = 10
 

Sets the string to the printed value of n in base base and returns a reference to the string.

The base is 10 by default and must be between 2 and 36.

        QString string;
        string = string.setNum( 1234 );     // string == "1234"

Definition at line 16132 of file qstring.cpp.

References buf, FALSE, p, qWarning(), setNum(), setUnicode(), and TRUE.

QString & QString::setNum uint  n,
int  base = 10
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n in base base and returns a reference to the string.

The base is 10 by default and must be between 2 and 36.

Definition at line 868 of file qstring.h.

References setNum().

QString & QString::setNum int  n,
int  base = 10
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n in base base and returns a reference to the string.

The base is 10 by default and must be between 2 and 36.

Definition at line 865 of file qstring.h.

References setNum().

QString & QString::setNum ushort  n,
int  base = 10
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n in base base and returns a reference to the string.

The base is 10 by default and must be between 2 and 36.

Definition at line 862 of file qstring.h.

References setNum().

QString & QString::setNum short  n,
int  base = 10
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets the string to the printed value of n in base base and returns a reference to the string.

The base is 10 by default and must be between 2 and 36.

Definition at line 859 of file qstring.h.

Referenced by calcDlgUI::calc(), Gutenbrowser::ChangeFont(), Opietooth2::OTDevice::checkAttach(), OpenEtext::checkConf(), OpieFtp::deleteServer(), Engine::displayData(), Qt3::QTextParagraph::drawLabel(), OpenEtext::editTitle(), OCompletion::extractStringsFromNode(), OpieFtp::fillCombos(), Gutenbrowser::fillWithTitles(), OpenEtext::FindTitle(), SnakeGame::gameOver(), KJezzball::gameOverNow(), Transaction::getActualTotal(), Budget::getBudgetTotal(), Transaction::getBudgetTotal(), striphtml::getch(), ElementList::getEA(), ElementList::getEmpFormula(), CPlucker_base::getTableAsHtml(), Gutenbrowser::getTitle(), OpenEtext::getTitles(), NNTPaccount::getUniqueFileName(), SMTPaccount::getUniqueFileName(), POP3account::getUniqueFileName(), IMAPaccount::getUniqueFileName(), SmtpClient::incomingData(), PopClient::incomingData(), QtRec::init(), Gutenbrowser::listClickedSlot(), Picture::load(), Checkbook::loadCheckbook(), BackGammon::loadgame(), EmailClient::mailArrived(), Gutenbrowser::menuEditTitle(), MailList::moveFront(), number(), kdbgstream::operator<<(), Opie::Core::odbgstream::operator<<(), KDateTable::paintCell(), Modem::parseModemSpeed(), LibraryDialog::parseSearchResults(), PeerLBI::PeerLBI(), OpenEtext::remFile(), MailList::remove(), OpenEtext::removeSelection(), BackGammon::savegame(), OpenEtext::select_title(), OpieFtp::serverComboSelected(), KDatePicker::setDate(), setNum(), QColNumLineEdit::setNum(), Gutenbrowser::setStatus(), LibraryDialog::setTitle(), Gutenbrowser::setTitle(), KDateInternalYearSelector::setYear(), ProfileEdit::SLOT_Refresh(), KJezzball::switchLevel(), ReadMail::updateView(), QColIntValidator::validate(), WLanEdit::WLanEdit(), CBInfo::write(), OpieFtp::writeConfig(), KateConfig::writeEntry(), Config::writeEntry(), Element::writeOut(), and ElementList::writeOut().

QString & QString::setUnicode const QChar unicode,
uint  len
 

Resizes the string to len characters and copies unicode into the string. If unicode is 0, nothing is copied, but the string is still resized to len. If len is zero, then the string becomes a null string.

See also:
setLatin1(), isNull()

Definition at line 17101 of file qstring.cpp.

References computeNewMax(), QShared::count, d, deref(), QStringData::len, makeSharedNull(), QStringData::maxl, QT_ALLOC_QCHAR_VEC, QShared::ref(), QStringData::setDirty(), shared_null, and QStringData::unicode.

Referenced by Qt3::QTextFormatter::bidiReorderLine(), setLatin1(), setNum(), setUnicodeCodes(), and Qt3::QTextString::toString().

QString & QString::setUnicodeCodes const ushort *  unicode_as_ushorts,
uint  len
 

Resizes the string to len characters and copies unicode_as_ushorts into the string (on some X11 client platforms this will involve a byte-swapping pass).

If unicode_as_ushorts is 0, nothing is copied, but the string is still resized to len. If len is zero, the string becomes a null string.

See also:
setLatin1(), isNull()

Definition at line 17138 of file qstring.cpp.

References setUnicode().

Referenced by QDir::absFilePath().

bool QString::simpleText  )  const [inline]
 

For internal use only.

Definition at line 645 of file qstring.h.

References d.

QString QString::simplifyWhiteSpace  )  const
 

Returns a string that has whitespace removed from the start and the end, and which has each sequence of internal whitespace replaced with a single space.

Whitespace means any character for which QChar::isSpace() returns TRUE. This includes Unicode characters with decimal values 9 (TAB), 10 (LF), 11 (VT), 12 (FF), 13 (CR), and 32 (Space).

        QString string = "  lots\t of\nwhite    space ";
        QString t = string.simplifyWhiteSpace();
        // t == "lots of white space"

See also:
stripWhiteSpace()

Definition at line 15116 of file qstring.cpp.

References d, isEmpty(), QChar::isSpace(), length(), setLength(), truncate(), QStringData::unicode, and unicode().

Referenced by Interfaces::addInterface(), Qt3::QTextEdit::copy(), WeatherPluginWidget::displayWeather(), OContact::fullName(), Contact::fullName(), Opie::OPimContact::fullName(), Interfaces::getInterfaceFamily(), Interfaces::getInterfaceList(), Interfaces::getInterfaceMethod(), Interfaces::getInterfaceName(), OContact::insertEmail(), Contact::insertEmail(), Opie::OPimContact::insertEmail(), OIpkg::loadConfiguration(), QMakeProject::parse(), ContactEditor::parseName(), proFileTagMap(), KLocale::readDate(), KLocale::readTime(), OpieFtp::remoteListClicked(), OContact::removeEmail(), Contact::removeEmail(), Opie::OPimContact::removeEmail(), removeSpaces(), NotesControl::save(), TextEdit::saveAs(), Interfaces::setInterfaceName(), Interfaces::setMapping(), Package::setStatus(), OpieTooth::HciConfWrapper::setValue(), Qtopia::simplifyMultiLineSpace(), Modem::slotModemDebug(), ContactEditor::slotName(), TextParser::splitLine(), and ModemWidget::~ModemWidget().

QString & QString::sprintf const char *  cformat,
  ...
 

Safely builds a formatted string from the format string cformat and an arbitrary list of arguments. The format string supports all the escape sequences of printf() in the standard C library.

The s escape sequence expects a utf8() encoded string. The format string cformat is expected to be in latin1. If you need a Unicode format string, use arg() instead. For typesafe string building, with full Unicode support, you can use QTextOStream like this:

        QString str;
        QString s = ...;
        int x = ...;
        QTextOStream( &str ) << s << " : " << x;

For translations, especially if the strings contains more than one escape sequence, you should consider using the arg() function instead. This allows the order of the replacements to be controlled by the translator, and has Unicode support.

See also:
arg()

Definition at line 13777 of file qstring.cpp.

References f, find(), format(), fromAscii(), fromLatin1(), fromUtf8(), in, latin1(), left(), leftJustify(), length(), QRegExp::matchedLength(), mid(), out, p, pos, rightJustify(), s, QRegExp::search(), and width.

Referenced by MainWindow::addCheckbook(), PlaylistView::addFile(), UserDialog::addUser(), Checkbook::adjustBalance(), DateBookEvent::ampmTime(), WExtensions::ap(), Clock::appMessage(), BacDialog::calculate(), LauncherClock::changeTime(), QtRec::changeTimeSlider(), Status::confScheme(), Score::confScheme(), Referee::confScheme(), Painter::confScheme(), KpacmanWidget::confScheme(), OpieFtp::connector(), mainWindowWidget::create(), DateBookWeekLstEvent::DateBookWeekLstEvent(), TranInfo::datestr(), MScanListItem::decorateItem(), TheNSResources::detectCurrentUser(), FormatterApp::deviceComboSelected(), SFCave::displayMenu(), ModemTransfer::do_script(), QtRec::doPlay(), QMakeProject::doVariableReplace(), NetworkDialog::downloadFile(), SFCave::draw(), UniScrollview::drawContents(), QtRec::endRecording(), ZkbConfig::error(), CfgParser::error(), NHcfg::error(), ZkbConfig::fatalError(), CfgParser::fatalError(), TsHandler::fatalError(), UiHandler::fatalError(), NHcfg::fatalError(), filePermissions::filePermissions(), PlayListFileView::fileSize(), ListEdit::fixTypes(), Score::formatDate(), QtRec::forwardTimerTimeout(), WLanNetNode::genNic(), PPPNetNode::genNic(), LanCardNetNode::genNic(), BluetoothBNEPNetNode::genNic(), Cfg::getCategories(), TranInfo::getIdStr(), KeyNames::getName(), getStocks(), NmakeMakefileGenerator::init(), DspMakefileGenerator::init(), MingwMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), Gutenbrowser::initConfig(), MainWindow::initConfig(), ANetNodeInstance::initialize(), QtRec::initIconView(), VcprojGenerator::initOld(), Referee::introPaint(), FileItem::key(), MailListViewItem::key(), Checkbook::loadCheckbook(), editWindowWidget::loadFile(), Resource::loadIconSet(), Resource::loadPixmap(), OpieFtp::localUpload(), Kpacman::lookupSchemes(), mainWindowWidget::mainWindowWidget(), ModemInfo::ModemInfo(), NetworkSettingsData::NetworkSettingsData(), PPPData::newaccount(), PPPData::newdevice(), FileView::newFolder(), LibraryDialog::onButtonSearch(), MainWindow::openBook(), OTimePicker::OTimePicker(), OVersatileViewDemo::OVersatileViewDemo(), filePermissions::ownReadCheck(), Score::paintEvent(), Modem::parseModemSpeed(), FileView::paste(), CameraMainWindow::performCapture(), NotesControl::populateBox(), fileBrowser::populateList(), OpieFtp::populateLocalView(), AdvancedFm::populateView(), CameraMainWindow::postProcessVideo(), Opie::MM::ExifData::ProcessExifDir(), qtMD5(), TeeclubCardGame::readConfig(), PatienceCardGame::readConfig(), HarpCardGame::readConfig(), FreecellCardGame::readConfig(), ChicaneCardGame::readConfig(), PlayListWidget::readConfig(), CanvasCardGame::readPile(), Cfg::readStringList(), QtRec::rec(), VMemo::record(), mainWindowWidget::refreshList(), OpieFtp::remoteChDir(), OpieFtp::remoteDelete(), OpieFtp::remoteDirList(), OpieFtp::remoteDownload(), OpieFtp::remoteListClicked(), OpieFtp::remoteMakDir(), OpieFtp::remoteRename(), WirelessApplet::renewDHCP(), VUMeter::resize(), QtRec::rewindTimerTimeout(), NotesControl::save(), SFCave::saveReplay(), SearchResultsDlg::SearchResultsDlg(), AudioWidget::secToString(), Device::selectMicInput(), MultiauthConfig::selectNet(), OpieFtp::serverComboSelected(), Score::set(), Opie::Net::OWlanNGMonitoringInterface::setChannel(), RecMail::setDate(), Opie::Net::OWlanNGMonitoringInterface::setEnabled(), Opie::Net::OCiscoMonitoringInterface::setEnabled(), OTimePicker::setHour(), Opie::Ui::OTimePicker::setHour(), Highlight::setItemDataList(), OTimePicker::setMinute(), Opie::Ui::OTimePicker::setMinute(), setNum(), MediaPlayer::setPlaying(), Qt3::QTextDocument::setRichTextInternal(), Gutenbrowser::setStatus(), NotesControl::slotDeleteButton(), MainWindow::slotEditCopy(), Checkbook::slotEditTran(), mainWindowWidget::slotItemDuplicate(), Checkbook::slotNewTran(), ScQtFileEditDlg::slotShowDir(), VMemo::startRecording(), CameraMainWindow::stopVideoCapture(), QtRec::timerEvent(), DataElem::toSortableQString(), QTime::toString(), QDate::toString(), Opietooth2::OTUUID::toString(), Opietooth2::OTSDPAttribute::toString(), TranInfo::toString(), Opie::Net::OMacAddress::toString(), UI::update_scorebox(), Clock::updateClock(), WirelessControl::updateDelayChange(), ConfigItem::updateMenu(), WirelessApplet::updatePopupWindow(), DateEntry::updateTimeEdit(), OpieFtp::upDir(), ZkbConfig::warning(), CfgParser::warning(), NHcfg::warning(), WirelessControl::WirelessControl(), TeeclubCardGame::writeConfig(), PatienceCardGame::writeConfig(), HarpCardGame::writeConfig(), FreecellCardGame::writeConfig(), ChicaneCardGame::writeConfig(), CardPile::writeConfig(), MultiauthConfig::writeConfig(), PlayListWidget::writeConfig(), and Cfg::writeStringList().

bool QString::startsWith const QString s  )  const
 

Returns TRUE if the string starts with s; otherwise returns FALSE.

        QString string("Bananas");
        bool a = string.startsWith("Ban");      //  a == TRUE

See also:
endsWith()

Definition at line 17846 of file qstring.cpp.

References d, FALSE, i, isNull(), length(), TRUE, and QStringData::unicode.

Referenced by BackupAndRestore::backupRootFs(), DspMakefileGenerator::beginGroupForFile(), Generatemail::buildFilePart(), MHwrapper::buildPath(), TVVariant::close(), TVVariant::closer(), HttpFactory::data(), IRCConnection::dataReady(), QMakeProject::doProjectTest(), QMakeProject::doVariableReplace(), DataElem::endsWith(), QMakeProperty::exec(), MakefileGenerator::fileFixify(), StorageInfo::fileSystemOf(), Win32MakefileGenerator::findLibraries(), UnixMakefileGenerator::findLibraries(), MetrowerksMakefileGenerator::fixifyToMacPath(), ListEdit::fixTypes(), Opietooth2::OTUUID::fromString(), groupKey(), HlRegExpr::HlRegExpr(), IMAPFolder::IMAPFolder(), NmakeMakefileGenerator::init(), BorlandMakefileGenerator::init(), UnixMakefileGenerator::init(), Opie::Core::Internal::Zaurus::init(), MHfolderItem::initName(), VcprojGenerator::initOld(), Opie::Core::ODevice::inst(), IRCChannel::isValid(), OpieTooth::RfCommConfHandler::load(), OIpkg::loadConfiguration(), DataManager::loadServers(), NetworkSettingsData::loadSettings(), MainView::MainView(), Qt3::QTextFormat::makeTextFormat(), MHFolder::MHFolder(), AppLauncher::newQcopChannel(), Config::parse(), IRCMessageParser::parseCTCPAction(), IRCMessageParser::parseCTCPPing(), OpieTooth::Parser::parseName(), OpieTooth::Parser::parseRecHandle(), Qt3::QTextEdit::pasteSubType(), ProjectBuilderMakefileGenerator::pbuilderVersion(), UnixMakefileGenerator::pkgConfigFileName(), UnixMakefileGenerator::pkgConfigFixPath(), UsbCategory::populate(), IRCServerTab::processCommand(), IRCQueryTab::processCommand(), IRCChannelTab::processCommand(), MakefileGenerator::processPrlFile(), Win32MakefileGenerator::processPrlFiles(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), HttpFactory::processResponse(), QMakeProject::read(), QMakeMetaInfo::readLibtoolFile(), NotesControl::save(), TextEdit::saveAs(), OFileViewFileSystem::selectedName(), Opie::Ui::Internal::OFileViewFileSystem::selectedName(), OIpkg::setConfigItems(), Opie::Core::Internal::setCS3Bit(), FileView::setDir(), MailItWindow::setDocument(), OpieMail::setDocument(), Qt3::QTextDocument::setRichTextInternal(), APPP::setSpecificAttribute(), OpieTooth::HciConfWrapper::setValue(), PackageInfoDlg::slotFiles(), MakefileGenerator::specdir(), TsHandler::startElement(), TextLine::startingWith(), DataElem::startsWith(), Opie::Core::ODirNotification::subdirCreated(), varMap(), MediumMountSetting::MediumMountWidget::writeConfig(), DspMakefileGenerator::writeDspParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), and VcprojGenerator::writeSubDirs().

QString QString::stripWhiteSpace  )  const
 

Returns a string that has whitespace removed from the start and the end.

Whitespace means any character for which QChar::isSpace() returns TRUE. This includes Unicode characters with decimal values 9 (TAB), 10 (LF), 11 (VT), 12 (FF), 13 (CR) and 32 (Space), and may also include other Unicode characters.

        QString string = "   white space   ";
        QString s = string.stripWhiteSpace();       // s == "white space"

See also:
simplifyWhiteSpace()

Definition at line 15071 of file qstring.cpp.

References d, end, fromLatin1(), isEmpty(), isSpace(), QChar::isSpace(), l, QStringData::len, length(), s, start, TRUE, QStringData::unicode, and unicode().

Referenced by OpieMail::appMessage(), ConnectWidget::checkBuffers(), LibraryDialog::cleanStrings(), OpieFtp::connector(), HttpFactory::data(), QTReaderApp::do_jump(), Qsmb::DoIt(), doqcopimpl(), OpenEtext::FindTitle(), ListEdit::fixTypes(), LibraryDialog::getAuthor(), WriteMail::getRecipients(), CardMonitor::getStatusPcmcia(), getStocks(), Qsmb::hostSelected(), MakefileGenerator::init(), Gutenbrowser::initConfig(), MainWindowImp::initHostname(), OContact::insert(), Contact::insert(), Opie::OPimContact::insert(), fileBrowser::listClicked(), AdvancedFm::ListClicked(), NetworkSettingsData::loadSettings(), OpieFtp::localListClicked(), Qt3::QTextFormat::makeTextFormat(), Multikey::message(), NetworkSetup::NetworkSetup(), QMakeProject::parse(), EmailHandler::parse(), Konsole::parseCommandLine(), parseEmailFrom(), parseEmailTo(), OpieTooth::Manager::parseHCIOutput(), OpieObex::Obex::parseOut(), OpieObex::BtObex::parseOut(), LibraryDialog::parseSearchResults(), XINE::Lib::play(), ContactEditor::populateDefaultEmailCmb(), OpieFtp::populateRemoteView(), QCopBridgePI::process(), Qt3::QTextTable::QTextTable(), Qt3::QTextTableCell::QTextTableCell(), MultiauthConfig::readConfig(), readElem(), QMakeMetaInfo::readLibtoolFile(), Server::readPackageFile(), ModemTransfer::readtty(), SmtpHandler::readyRead(), MyPty::reload(), OpieFtp::remoteListClicked(), OpenEtext::remove(), Ipkg::removeStatusEntry(), OContact::replace(), Contact::replace(), Opie::OPimContact::replace(), runTests(), Opie::MM::ExifData::scan(), SmtpHandler::sendToSocket(), XINE::Lib::setfile(), MainWindowImp::setHostname(), Interfaces::setInterfaceOption(), ListViewItemConfigEntry::setKey(), ZkbXmlHandler::str2modifier(), OpenEtext::titleFromLibrary(), Qsmb::umountIt(), MemoryInfo::updateData(), and StocktickerPluginConfig::writeConfig().

void QString::subat uint   )  [private]
 

Definition at line 17078 of file qstring.cpp.

References d, QStringData::len, real_detach(), setLength(), and QStringData::unicode.

double QString::toDouble bool *  ok = 0  )  const
 

Returns the string converted to a double value.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

        QString string( "1234.56" );
        double a = string.toDouble();   // a == 1234.56

See also:
number()

Definition at line 16094 of file qstring.cpp.

References end, latin1(), and val.

Referenced by Sheet::calculateFunction(), CalculatorImpl::CalculatorImpl(), QUType_QString::convertTo(), Engine::del(), LoadInfo::getCpuInfo(), PackageListItem::key(), SubUnit::makeSubUnit(), Engine::pushValue(), QSettings::readDoubleEntry(), and toFloat().

float QString::toFloat bool *  ok = 0  )  const
 

Returns the string converted to a float value.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

See also:
number()

Definition at line 16114 of file qstring.cpp.

References toDouble().

Referenced by Budget::displayLineItems(), Transaction::getActualTotal(), Budget::getBudgetTotal(), Transaction::getBudgetTotal(), Checkbook::slotStartingBalanceChanged(), and TranInfo::TranInfo().

int QString::toInt bool *  ok = 0,
int  base = 10
const
 

Returns the string converted to an int value to the base base, which is 10 by default and must be between 2 and 36.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

        QString str( "FF" );
        bool ok;
        int hex = str.toInt( &ok, 16 );     // hex == 255, ok == TRUE
        int dec = str.toInt( &ok, 10 );     // dec == 0, ok == FALSE

See also:
number()

Definition at line 16050 of file qstring.cpp.

References FALSE, toLong(), and v.

Referenced by AccountDisplay::addAccount(), FontDialog::changeText(), DrawPadCanvasXmlHandler::characters(), OpenEtext::checkConf(), Contact::Contact(), convert(), HttpFactory::data(), Opie::Core::Internal::DebugBackend::debugSock(), KVNCBookmarkDlg::decipher(), decipher(), MiscFunctions::decodeQPrintable(), Engine::del(), Transaction::displayTransactions(), Transfer::displayTransfers(), TextEdit::doGoto(), doqcopimpl(), LibraryDialog::download_Etext(), OpenEtext::editTitle(), SortDialog::exec(), QCopLnk::execute(), AppLnk::execute(), Status::fillArray(), Referee::fillArray(), Painter::fillArray(), OpieFtp::fillCombos(), OpenEtext::FindTitle(), Transaction::getBudgetID(), Transaction::getCleared(), Transaction::getDay(), Transaction::getLineItemID(), Transaction::getMonth(), BatteryStatus::getProcApmStatusIpaq(), Gutenbrowser::getTitle(), OpenEtext::getTitles(), Transaction::getYear(), Gutenbrowser::Gutenbrowser(), KHUtil::hex2int(), PopClient::incomingData(), KeyModifiers::init(), Gutenbrowser::initConfig(), striphtml::initentmap(), PSEWidget::inverseColor(), IRCMessage::IRCMessage(), OpieTooth::RfCommConfHandler::load(), Highlight::makeContextList(), Qt3::QTextFormat::makeTextFormat(), Gutenbrowser::menuEditTitle(), LibraryDialog::Newlibrary(), OContact::OContact(), Opie::OPimContact::OPimContact(), parseDateTime(), Modem::parseModemSpeed(), IMAPResponseParser::parseResponse(), LibraryDialog::parseSearchResults(), WLANImp::parseSettingFile(), ProjectBuilderMakefileGenerator::pbuilderVersion(), Opie::Core::OGenericPluginLoader::plugins(), FontDialog::populateLists(), ServerPI::process(), HttpFactory::processResponse(), Engine::pushValue(), QMyDialog::QMyDialog(), Qt3::QTextTable::QTextTable(), Qt3::QTextTableCell::QTextTableCell(), KVNCBookmarkDlg::readBookmarks(), KateConfig::readBoolEntry(), Config::readBoolEntry(), Opie::Core::OConfig::readColorEntry(), CReb::readindex(), QSettings::readNumEntry(), KateConfig::readNumEntry(), Config::readNumEntry(), SmtpHandler::readyRead(), HttpFactory::recieveChunked(), Interface::refresh(), OpenEtext::remFile(), OpenEtext::removeSelection(), OpieFtp::serverComboSelected(), ContactEditor::setEntry(), AbEditor::setEntry(), OTimePickerDialog::setMinute(), Opie::Ui::OTimePickerDialog::setMinute(), Qt3::QTextDocument::setRichTextInternal(), LibraryDialog::setTitle(), Gutenbrowser::setTitle(), OipkgPackage::sizeUnits(), MailTable::slotIMAPSelect(), Clock::spinBoxValid(), ZkbXmlHandler::start_keymap(), ZkbXmlHandler::str2uint(), ConnectWidget::timerEvent(), TempScreenSaverMonitor::timerValue(), OpenEtext::titleFromLibrary(), OTodoAccessXML::todo(), Opie::OPimTodoAccessXML::todo(), OContact::toRichText(), Contact::toRichText(), Opie::OPimContact::toRichText(), QDateTime::toString(), TranInfo::TranInfo(), QComponentFactory::unregisterComponent(), and ZoneField::ZoneField().

long QString::toLong bool *  ok = 0,
int  base = 10
const
 

Returns the string converted to a long value to the base base, which is 10 by default and must be between 2 and 36.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

See also:
number()

Definition at line 15886 of file qstring.cpp.

References FALSE, QChar::isSpace(), l, length(), ok_in_base(), p, TRUE, unicode(), and val.

Referenced by QUType_QString::convertTo(), NetworkSetup::NetworkSetup(), WLanNetNode::setSpecificAttribute(), LanCardNetNode::setSpecificAttribute(), ACable::setSpecificAttribute(), ABluetoothRFCOMM::setSpecificAttribute(), BluetoothBNEPNetNode::setSpecificAttribute(), ProfileEdit::SLOT_Refresh(), ProfileEdit::SLOT_ResetODO(), toInt(), toShort(), and QColIntValidator::validate().

short QString::toShort bool *  ok = 0,
int  base = 10
const
 

Returns the string converted to a short value to the base base, which is 10 by default and must be between 2 and 36.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

Definition at line 16003 of file qstring.cpp.

References FALSE, toLong(), and v.

Referenced by VcprojGenerator::initConfiguration(), AWLan::setSpecificAttribute(), APPP::setSpecificAttribute(), AGPRSDevice::setSpecificAttribute(), and ACable::setSpecificAttribute().

uint QString::toUInt bool *  ok = 0,
int  base = 10
const
 

Returns the string converted to an {unsigned int} value to the base base, which is 10 by default and must be between 2 and 36.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

See also:
number()

Definition at line 16070 of file qstring.cpp.

References FALSE, toULong(), and v.

Referenced by Opietooth2::OTUUID::fromString(), striphtml::getch(), PSEWidget::inverseColor(), PackageHandler::prepareInstall(), FunctionKeyboardConfig::slotChangeUnicode(), ProcessInfo::slotSendClicked(), PPPData::speed(), and TsHandler::startElement().

ulong QString::toULong bool *  ok = 0,
int  base = 10
const
 

Returns the string converted to an {unsigned long} value to the base base, which is 10 by default and must be between 2 and 36.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

See also:
number()

Definition at line 15949 of file qstring.cpp.

References FALSE, QChar::isSpace(), l, length(), ok_in_base(), p, TRUE, unicode(), and val.

Referenced by GPRSRun::detectState(), QTReaderApp::do_jump(), AGPRSDevice::setSpecificAttribute(), toUInt(), toUShort(), and MemoryInfo::updateData().

ushort QString::toUShort bool *  ok = 0,
int  base = 10
const
 

Returns the string converted to an {unsigned short} value to the base base, which is 10 by default and must be between 2 and 36.

If ok is not 0: if a conversion error occurs, *ok is set to FALSE; otherwise *ok is set to TRUE.

Definition at line 16022 of file qstring.cpp.

References FALSE, toULong(), and v.

Referenced by KateCommands::Character::execCmd().

void QString::truncate uint  newLen  ) 
 

If newLen is less than the length of the string, then the string is truncated at position newLen. Otherwise nothing happens.

        QString s = "truncate me";
        s.truncate( 5 );            // s == "trunc"

See also:
setLength()

Definition at line 13477 of file qstring.cpp.

References setLength().

Referenced by WriteMail::accept(), ZSafe::addCategory(), VCFilter::addUICstage(), QIMPenMatch::backspace(), KateView::bookmarkMenuAboutToShow(), HttpFactory::data(), Engine::del(), doqcopimpl(), QLocalePrivate::doubleToString(), MainWindow::downloadPackage(), ZSafe::editCategory(), CHM::FillBuffer(), CHM::FillContent(), UiHandler::flush(), Opie::Net::OMacAddress::fromString(), fromUtf8(), TEScreen::getHistory(), InputDialog::getString(), CPlucker_base::hyperlink(), PopClient::incomingData(), DspMakefileGenerator::init(), KateDocument::insert(), KateDocument::insertFile(), WordGame::loadRules(), Opie::Core::odbgstream::odbgstream(), QStringBuffer::open(), QMakeProject::parse(), EmailHandler::parse(), QCopBridgePI::process(), QIMPenMatch::processMatches(), Engine::pushValue(), QMakeProject::read(), ZSafe::readAllEntries(), SmtpHandler::readyRead(), QCopWatcher::received(), IMAPResponseParser::removeLimiters(), TextLine::removeSpaces(), WriteMail::reply(), QCopBridge::sendDesktopMessageOld(), simplifyWhiteSpace(), OIpkgConfigDlg::slotOptSelectSourceListsPath(), InstallDlg::slotOutput(), OIpkgDestDlg::slotSelectPath(), EntryDlg::slotSelectPath(), ConfigureDlg::slotSelectSwordPath(), ProcessInfo::slotSendClicked(), MakefileGenerator::specdir(), split_arg_list(), TsHandler::startElement(), UiHandler::startElement(), stripWhiteSpaceInPlace(), QSettings::subkeyList(), Opie::Net::ONetwork::synchronize(), translationAttempt(), TextLine::truncate(), NewGame::updateRuleSets(), QIMPenMatch::updateWordMatch(), QIMPenProfile::userConfig(), and NmakeMakefileGenerator::writeNmakeParts().

const unsigned short * QString::ucs2  )  const
 

Returns the QString as a zero terminated array of unsigned shorts if the string is not null; otherwise returns zero.

The result remains valid so long as one unmodified copy of the source string exists.

Definition at line 16943 of file qstring.cpp.

References computeNewMax(), d, QStringData::len, QStringData::maxl, QT_ALLOC_QCHAR_VEC, and QStringData::unicode.

Referenced by localeAwareCompare().

const QChar * QString::unicode  )  const [inline]
 

Returns the Unicode representation of the string. The result remains valid until the string is modified.

Definition at line 597 of file qstring.h.

References d.

Referenced by QTReaderApp::addAnno(), KeyMappings::assignUnicode(), Qt3::QTextFormatter::bidiReorderLine(), bm_find(), bm_init_skiptable(), HlStringDetect::checkHgl(), codeToLanguage(), Qtopia::compare(), compareSubstr(), contains(), QTReaderApp::do_addbkmk(), KeyHelperWidget::doEvent(), KateDocument::doReplace(), QLocalePrivate::doubleToString(), Qt3::QTextDocument::endsWith(), Qtopia::escapeString(), find(), findRev(), fromUtf8(), QStringBuffer::getch(), striphtml::getch(), CReb::getch(), tableLink::getch(), ErrorFilter::getch(), TextLine::getText(), Qtopia::hackString(), QGDict::hashKeyString(), Highlight::Highlight(), insert(), Qt3::QTextParagraph::insert(), Qt3::QTextString::insert(), Qt3::QTextCursor::insert(), KateDocument::insert_Line(), KWBuffer::insertFile(), isNull(), QCharRef::isNull(), Qt3::QTextEdit::keyPressEvent(), OLineEdit::keyPressEvent(), leftJustify(), Categories::load(), QLocalePrivate::longLongToString(), QRegExpEngine::match(), mid(), striphtml::mygetch(), nextChar(), operator+=(), operator<<(), operator==(), Qt3::QTextParagraph::paint(), CRegExpFilt::prepreprocessing(), CRegExpFilt::preprocessing(), prevChar(), QStringBuffer::readBlock(), Highlight::readGlobalKeywordConfig(), KateDocument::recordReplace(), QLocalePrivate::removeGroupSeparators(), replace(), rightJustify(), section(), Qt3::QTextDocument::section(), Qt3::QTextDocument::selectedText(), QIMPenInputCharDlg::setCharacter(), Qt3::QTextDocument::setRichTextInternal(), simplifyWhiteSpace(), stripWhiteSpace(), stripWhiteSpaceInPlace(), toLong(), Qt3::QTextString::toString(), toULong(), ucstrcmp(), QLocalePrivate::unsLongLongToString(), wc2rx(), and TextLine::wrap().

char * QString::unicodeToLatin1 const QChar uc,
uint  l
[static, private]
 

This utility function converts l 16-bit characters from uc to ASCII, returning a ''-terminated string.

The caller is responsible for deleting the resultant string with delete[].

Definition at line 13003 of file qstring.cpp.

Referenced by latin1(), and QTextStream::writeBlock().

QString QString::upper  )  const
 

Returns an uppercase copy of the string.

        QString string( "TeXt" );
        str = string.upper();     // t == "TEXT"

See also:
lower()

Definition at line 15031 of file qstring.cpp.

References d, l, length(), p, real_detach(), s, and QStringData::unicode.

Referenced by QDir::absFilePath(), MenuLauncher::buildMenu(), Sheet::calculateFunction(), DictFilterConfig::capitalize(), MainWindowImp::configureClicked(), Sheet::dataFindReplace(), QMakeProject::doProjectTest(), QLocalePrivate::doubleToString(), QMakeProject::doVariableReplace(), IRCServerTab::executeCommand(), TextParser::find(), Win32MakefileGenerator::findHighestVersion(), MagicTextBrowser::generateQpe(), EmailHandler::getEnclosure(), Konsole::init(), IRCMessage::IRCMessage(), ABOOK::NameLineEdit::keyPressEvent(), QLocalePrivate::longLongToString(), Opie::Net::OManufacturerDB::lookup(), Opie::Net::OManufacturerDB::lookupExt(), MenuLnk::name(), KeyLauncher::onKeyPress(), QTReader::PreferredMarkup(), ServerPI::process(), QUuid::QUuid(), TypeCombo::reread(), MenuLauncher::select(), QLocalePrivate::unsLongLongToString(), and LauncherView::updateTools().

QCString QString::utf8  )  const
 

Returns the string encoded in UTF-8 format.

See QTextCodec for more diverse coding/decoding of Unicode strings.

See also:
fromUtf8(), ascii(), latin1(), local8Bit()

Definition at line 16683 of file qstring.cpp.

References d, i, l, length(), QCString::truncate(), u, QChar::unicode(), and QStringData::unicode.

Referenced by PlaylistView::addFile(), TsHandler::endElement(), UiHandler::flush(), forAll(), VcprojGenerator::getProjectUUID(), ProjectBuilderMakefileGenerator::keyFor(), local8Bit(), Opie::DB::Internal::OSQLiteDriver::open(), Score::paintEvent(), XINE::Lib::play(), qcrypt(), ZSafe::readAllEntries(), Task::readVCalendar(), Event::readVCalendar(), Contact::readVCard(), Opie::OPimContactAccessBackend_VCard::safeAddPropValue(), CfgParser::save(), DateBookDB::save(), Categories::save(), OTodoAccessXML::save(), Opie::OPimTodoAccessXML::save(), ODateBookAccessBackend_XML::save(), Opie::ODateBookAccessBackend_XML::save(), OContactAccessBackend_XML::save(), Opie::OPimContactAccessBackend_XML::save(), TextEdit::save(), saveEachEvent(), FileManager::saveFile(), Keymap::setCurrentState(), XINE::Lib::setfile(), OContactAccessBackend_XML::updateJournal(), Opie::OPimContactAccessBackend_XML::updateJournal(), KateConfig::write(), Config::write(), Task::writeVCalendar(), Event::writeVCalendar(), and Contact::writeVCard().


Friends And Related Function Documentation

bool operator!= const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is not equal to s2; otherwise returns FALSE. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) != 0.

See also:
isNull(), isEmpty()

bool operator!= const QString s1,
const char *  s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is not equal to s2; otherwise returns FALSE. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) != 0.

See also:
isNull(), isEmpty()

bool operator!= const QString s1,
const QString s2
[related]
 

Returns TRUE if s1 is not equal to s2; otherwise returns FALSE. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) != 0.

See also:
isNull(), isEmpty()

const QString operator+ char  c,
const QString s
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns a string which is the result of concatenating the character c and string s.

Equivalent to {s}.prepend(c).

Definition at line 971 of file qstring.h.

const QString operator+ const QString s,
char  c
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns a string which is the result of concatenating the string s and character c.

Equivalent to {s}.append(c).

Definition at line 956 of file qstring.h.

const QString operator+ const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns a string which is the result of concatenating the character s1 and string s2.

Definition at line 941 of file qstring.h.

const QString operator+ const QString s1,
const char *  s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns a string which is the result of concatenating the string s1 and character s2.

Equivalent to {s1}.append(s2).

Definition at line 934 of file qstring.h.

const QString operator+ const QString s1,
const QString s2
[related]
 

Returns a string which is the result of concatenating the string s1 and the string s2.

Equivalent to {s1}.append(s2).

Definition at line 926 of file qstring.h.

bool operator< const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is lexically less than s2; otherwise returns FALSE. The comparison is case sensitive.

Equivalent to compare(s1, s2) < 0.

bool operator< const QString s1,
const char *  s2
[related]
 

Returns TRUE if s1 is lexically less than s2; otherwise returns FALSE. The comparison is case sensitive.

Equivalent to compare(s1, s2) < 0.

QDataStream & operator<< QDataStream s,
const QString str
[related]
 

Writes the string str to the stream s.

See also Format of the QDataStream operators

Definition at line 17679 of file qstring.cpp.

References QDataStream::BigEndian, QDataStream::byteOrder(), QChar::cell(), l, latin1(), length(), QChar::row(), t, unicode(), QDataStream::version(), and QDataStream::writeBytes().

bool operator<= const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is lexically less than or equal to s2; otherwise returns FALSE. The comparison is case sensitive. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) <= 0.

See also:
isNull(), isEmpty()

bool operator<= const QString s1,
const char *  s2
[related]
 

Returns TRUE if s1 is lexically less than or equal to s2; otherwise returns FALSE. The comparison is case sensitive. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1,s2) <= 0.

See also:
isNull(), isEmpty()

bool operator== const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is equal to s2; otherwise returns FALSE. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) == 0.

See also:
isNull(), isEmpty()

bool operator== const QString s1,
const char *  s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is equal to s2; otherwise returns FALSE. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) == 0.

See also:
isNull(), isEmpty()

bool operator== const QString s1,
const QString s2
[related]
 

Returns TRUE if s1 is equal to s2; otherwise returns FALSE. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) != 0.

See also:
isNull(), isEmpty()

bool operator> const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is lexically greater than s2; otherwise returns FALSE. The comparison is case sensitive.

Equivalent to compare(s1, s2) > 0.

Definition at line 17403 of file qstring.cpp.

bool operator> const QString s1,
const char *  s2
[related]
 

Returns TRUE if s1 is lexically greater than s2; otherwise returns FALSE. The comparison is case sensitive.

Equivalent to compare(s1, s2) > 0.

bool operator>= const char *  s1,
const QString s2
[related]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Returns TRUE if s1 is lexically greater than or equal to s2; otherwise returns FALSE. The comparison is case sensitive. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) >= 0.

See also:
isNull(), isEmpty()

bool operator>= const QString s1,
const char *  s2
[related]
 

Returns TRUE if s1 is lexically greater than or equal to s2; otherwise returns FALSE. The comparison is case sensitive. Note that a null string is not equal to a not-null empty string.

Equivalent to compare(s1, s2) >= 0.

See also:
isNull(), isEmpty()

QDataStream & operator>> QDataStream s,
QString str
[friend]
 

Reads a string from the stream s into string str.

See also Format of the QDataStream operators

Definition at line 17728 of file qstring.cpp.

friend class QConstString [friend]
 

Definition at line 667 of file qstring.h.

friend class QDeepCopy< QString > [friend]
 

Definition at line 673 of file qstring.h.

friend class QTextStream [friend]
 

Definition at line 668 of file qstring.h.


Member Data Documentation

QStringData* QString::d [private]
 

Definition at line 663 of file qstring.h.

Referenced by ascii(), checkSimpleText(), deref(), endsWith(), fill(), findArg(), insert(), isRightToLeft(), latin1(), left(), leftJustify(), length(), lower(), makeSharedNull(), mid(), operator+=(), operator=(), QIMPenChar::operator=(), QIMPenChar::QIMPenChar(), QString(), remove(), replace(), right(), rightJustify(), setExpand(), setLatin1(), setLength(), setUnicode(), simplifyWhiteSpace(), startsWith(), stripWhiteSpace(), subat(), ucs2(), upper(), utf8(), QConstString::~QConstString(), and ~QString().

QT_STATIC_CONST_IMPL QString QString::null
 

Definition at line 13149 of file qstring.cpp.

Referenced by OIpkgServerDlg::accept(), OIpkgConfigDlg::accept(), TabsSettings::accept(), Categories::addGlobalCategory(), OCompletion::addItem(), OJanusWidget::addPageWidget(), AddressbookWindow::AddressbookWindow(), OTabWidget::addTab(), Opie::Ui::OTabWidget::addTab(), QTReaderApp::addtoolbars(), align_to_string(), Qt3::QTextStringChar::anchorHref(), Qt3::QTextStringChar::anchorName(), ServerApplication::apmTimeout(), Global::applicationFileName(), AppLnk::AppLnk(), AppLnkSet::AppLnkSet(), AddressbookWindow::appMessage(), ExamplePlugin::appName(), Opie::XMLElement::attribute(), Opie::Core::XMLElement::attribute(), OIpkg::availablePackages(), TabDialog::bgImageClicked(), optionsDialog::BrowseSelected(), TaskSelector::buildMenu(), KateView::canDiscard(), QRegExp::cap(), QRegExp::capturedTexts(), CBInfo::CBInfo(), DateBook::checkEvent(), SyncAuthentication::checkPassword(), CalculatorImpl::clear(), Qt3::QTextDocument::clear(), OLineEdit::clear(), OCompletion::clear(), QIMPenChar::clear(), UserDialog::clickedPicture(), ClipboardApplet::ClipboardApplet(), QTReaderApp::closeEvent(), CalculatorImpl::command_buttons(), ConfigureDlg::ConfigureDlg(), OMessageBox::confirmDelete(), Qt3::QTextEdit::contentsMousePressEvent(), convert(), KLocale::country(), countryToCode(), Opie::OPimAccessFactory< T >::create(), TabDialog::createIconTab(), QComponentFactory::createInstance(), KHUtil::currentApp(), PIconView::currentFileName(), Doc_DirLister::currentPath(), InputMethods::currentShown(), Qtopia::Record::customField(), Opie::DB::OSQLResultItem::data(), DateBook::DateBook(), DateBookDayView::DateBookDayView(), DatebookSearch::DatebookSearch(), OConversion::dateTimeToString(), Opie::OPimDateConversion::dateTimeToString(), OConversion::dateToString(), Opie::OPimDateConversion::dateToString(), Opie::Core::OGlobalSettings::debugOutput(), QChar::decomposition(), Doc_DirLister::defaultPath(), DCIM_DirLister::defaultPath(), MHfolderItem::deleteFolder(), IMAPfolderItem::deleteFolder(), TimerReceiverObject::deleteTimer(), MimeType::description(), FilterDlg::destination(), Dialer::dial(), DingWidget::DingWidget(), direction_to_string(), OFileViewFileSystem::directory(), Opie::Ui::Internal::OFileViewFileSystem::directory(), WeatherPluginWidget::displayWeather(), DocLnkSearch::DocLnkSearch(), Qt3::QTextEdit::doKeyboardAction(), DrawPad::DrawPad(), ModifiersHandler::endElement(), ExtensionsHandler::endElement(), TsHandler::endElement(), EntryDlg::EntryDlg(), SmtpClient::errorHandling(), PopClient::errorHandling(), WExtensions::essid(), Qt3::QTextEdit::event(), DocLnk::exec(), ExportDialog::ExportDialog(), AddressbookWindow::exportvCard(), MetaFactory::external(), POP3wrapper::fetchBody(), fetchtr_inlined_cpp(), FifteenMainWindow::FifteenMainWindow(), AppLnk::file(), ModPlugin::fileInfo(), ServerPI::fileListing(), DCCTransfer::filename(), TextEdit::fileOpen(), FilterDlg::FilterDlg(), OCompletion::findAllCompletions(), OCompletion::findCompletion(), QMakeMetaInfo::findLib(), UnixMakefileGenerator::findLibraries(), KStandardDirs::findResourceDir(), kdbgstream::flush(), KateDocument::flush(), Opie::Core::odbgstream::flush(), UiHandler::flush(), fmtDateTime(), Qt3::QTextDocument::focusNextPrevChild(), OFontSelector::fontCharSet(), Opie::Ui::OFontSelector::fontCharSet(), OFontSelector::fontFamily(), Opie::Ui::OFontSelector::fontFamily(), OFontSelector::fontStyle(), Opie::Ui::OFontSelector::fontStyle(), JpegSlave::fullImageInfo(), AbstractMail::gen_attachment_id(), MakefileGenerator::generateDependencies(), MagicTextBrowser::generateOpe(), Opie::Core::OGlobal::generateUuid(), MainWindowImp::getAllInterfaces(), AddressList::getEmailByName(), BackupAndRestore::getExcludeFile(), WellenreiterMainWindow::getFileName(), getFmtString(), QGCacheIterator::getKeyString(), QGDictIterator::getKeyString(), PacketView::getLog(), KeyNames::getName(), AddressList::getNameByEmail(), KFileDialog::getOpenFileName(), Password::getPassword(), PinPlugin::getPIN(), PackageListItem::getPopupMenu(), KFileDialog::getSaveFileName(), Screen::getSelText(), TEScreen::getSelText(), KEMailSettings::getSetting(), Swapfile::getStatusPcmcia(), CardMonitor::getStatusPcmcia(), Swapfile::getStatusSd(), CardMonitor::getStatusSd(), InputDialog::getString(), Opie::Core::OInputDevice::globalKeyMask(), Opie::Core::OInputDevice::globalSwitchMask(), GoMainWidget::GoMainWidget(), QTReaderApp::gotobkmk(), WellenreiterConfigWindow::gpsHost(), QFileInfo::group(), QSettings::group(), SyntaxDocument::groupData(), SyntaxDocument::groupItemData(), AudioWidget::guiInfo(), XINE::Lib::handleXineEvent(), HelpWindow::HelpWindow(), OCompletionBox::hide(), KIconLoader::iconPath(), JpegSlave::iconViewName(), FifteenConfigDialog::imageSrc(), ImageViewer::ImageViewer(), ImportDialog::ImportDialog(), UnixMakefileGenerator::init(), ProjectGenerator::init(), MakefileGenerator::init(), WriteMail::init(), ReadMail::init(), EmailClient::init(), FileBrowser::init(), Qt3::QTextEdit::init(), Qt3::QTextDocument::init(), HelpBrowser::init(), Konsole::init(), Opie::OPimMainWindow::initBars(), MainWindow::initConfig(), OIpkgConfigDlg::initOptionsWidget(), MakefileGenerator::initOutPaths(), Opie::Core::OGlobalSettings::initStatic(), MainWindow::initUI(), Datebook::MainWindow::initUI(), Qt3::QTextEdit::insert(), KWBuffer::insertFile(), OIpkg::installedPackages(), PackageHandler::iProcessExited(), IRCTab::IRCTab(), KateDocument::KateDocument(), KVNC::KVNC(), ColorListItem::label(), Categories::label(), CategoryGroup::label(), lastUsedDir(), LauncherView::LauncherView(), list_style_to_string(), list_value_to_string(), OpieTooth::DeviceHandler::load(), EmulationHandler::load(), Categories::load(), Todo::TemplateManager::load(), ODict::loadConfig(), OIpkg::loadConfiguration(), ZSafe::loadDocument(), ZkbWidget::loadKeymap(), StartMenu::loadMenu(), ConfigDlg::loadSearchMethodNames(), CBInfo::loadTransactions(), QDate::longDayName(), QDate::longMonthName(), main(), OCompletion::makeCompletion(), OpieTooth::PinDlg::makeMacFromArgs(), MainWindow::makeMenu(), OpieTooth::PinDlg::makeTextFromArgs(), makeThumbDir(), Opie::Net::Internal::DebugMapper::map(), margin_to_string(), OFileDialog::mimetype(), Opie::Ui::OFileDialog::mimetype(), VCFilter::modifyPCHstage(), KLocale::monthName(), FilterDlg::name(), KTempFile::name(), NavBar::NavBar(), LauncherTabWidget::newView(), DocumentListPrivate::nextFile(), PIconView::nextFileName(), IRCChannelPerson::nick(), Opie::OPimTodoAccessBackend::occurrences(), ODateBookAccess::ODateBookAccess(), Opie::ODateBookAccess::ODateBookAccess(), ODict::ODict(), OIpkgDestDlg::OIpkgDestDlg(), KHCWidget::onClick_Gen(), Opie::Core::ondBacktrace(), KeyLauncher::onKeyPress(), KHCWidget::onPress_Map(), KHCWidget::onPress_Org(), OpenEtext::open(), PlayListWidget::openDirectory(), QPdfDlg::openFile(), QTReaderApp::openFile(), HelpWindow::openFile(), Modem::openLockfile(), OpenTextDlg::OpenTextDlg(), QSafeDataStream::operator>>(), QDir::operator[](), Opie::Global::uuid(), OPIE::opieDir(), Opie::OPimTodoAccess::OPimTodoAccess(), OPopupMenu::resetKeyboardVars(), OPopupMenu::title(), QRegExpEngine::Box::opt(), QRegExpEngine::Box::orx(), OSplitterExample::OSplitterExample(), OTodoAccess::OTodoAccess(), CameraMainWindow::outputToMenuItemClicked(), QFileInfo::owner(), SyncAuthentication::ownerName(), PackageInfoDlg::PackageInfoDlg(), PackageWindow::PackageWindow(), MenuTitle::paint(), SampleView::paletteChange(), LauncherView::paletteChange(), parse(), IRCMessageParser::parseCTCPDCC(), WLANImp::parseKeyStr(), QSettingsHeading::parseLine(), ContactEditor::parseName(), Qt3::QTextDocument::parseOpenTag(), AnyLnk::parseText(), OPackageManager::parseVersion(), Password::Password(), Qt3::QTextEdit::pasteSubType(), KJezzball::pauseGame(), PlayListWidget::PlayListWidget(), ConWindow::prettyPrintVolume(), PIconView::prevFileName(), System::probeInterfaces(), ServerPI::process(), AppLauncher::processExited(), UnixMakefileGenerator::processPrlFiles(), MetrowerksMakefileGenerator::processPrlFiles(), AppLnk::property(), QPdfDlg::QPdfDlg(), QTReaderApp::QTReaderApp(), QuickEditImpl::QuickEditImpl(), QTextStream::read(), ZSafe::readAllEntries(), PiecesTable::readConfig(), KateConfig::readEntryCrypt(), CityTime::readInTimes(), QTextStream::readLine(), QSettings::readListEntry(), Server::readPackageFile(), KLocale::readTime(), Dialer::receive(), OpieObex::Obex::receive(), OpieObex::BtObex::receive(), AppLauncher::received(), KeyHelperWidget::receiveMessage(), KateDocument::recordDelete(), OTodo::recordField(), OEvent::recordField(), Opie::OPimTodo::recordField(), Opie::OPimEvent::recordField(), System::refreshStatistics(), QComponentFactory::registerComponent(), ComposeMail::reject(), ZSafe::removeAsciiFile(), Categories::removeGlobalCategory(), OCompletion::removeItem(), Qt3::QTextEdit::removeSelectedText(), Categories::renameGlobalCategory(), QPEApplication::reset(), QSettings::resetGroup(), MultiauthConfig::restoreDefaults(), Qt3::QTextCustomItem::richText(), Qt3::QTextParagraph::richText(), Qt3::QTextDocument::richText(), PackageHandler::rmProcessExited(), MainWindow::runIpkg(), SampleView::SampleView(), OTodoAccessXML::save(), Opie::OPimTodoAccessXML::save(), Opie::Core::OPluginManager::save(), MainWindow::saveCurrentFile(), SearchBar::SearchBar(), OpieTooth::Manager::searchConnections(), MenuLauncher::select(), OFontSelector::selectedFont(), Opie::Ui::OFontSelector::selectedFont(), OFileViewFileSystem::selectedName(), ODocumentFileView::selectedName(), Opie::Ui::Internal::OFileViewFileSystem::selectedName(), Opie::Ui::Internal::ODocumentFileView::selectedName(), OFileViewFileSystem::selectedPath(), Opie::Ui::Internal::OFileViewFileSystem::selectedPath(), Qt3::QTextDocument::selectedText(), OTabWidget::selectTab(), Opie::Ui::OTabWidget::selectTab(), EmailHandler::sendMail(), Opie::Ui::OListView::serializeFrom(), FilterDlg::server(), OContact::setAnniversary(), Opie::OPimContact::setAnniversary(), OContact::setBirthday(), Opie::OPimContact::setBirthday(), ConfigEx::setConfig(), OpieMail::setDocument(), AddressbookWindow::setDocument(), OContact::setEmails(), Contact::setEmails(), Opie::OPimContact::setEmails(), Qt3::QTextDocument::setRichTextInternal(), Doc_DirLister::setStartPath(), OTabWidget::setTabStyle(), Opie::Ui::OTabWidget::setTabStyle(), LauncherTabWidget::setTabViewAppearance(), Qt3::QTextEdit::setText(), KVNC::setupActions(), ODict::setupMenus(), QDate::shortDayName(), QDate::shortMonthName(), AbView::showPersonal(), AppLauncher::sigStopped(), Opietooth2::OTSniffing::SLOT_Load(), Opietooth2::OTSniffing::SLOT_Save(), Datebook::StringManagerDialog::slotAdd(), MainWindow::slotBookmarkAdd(), Clock::slotBrowseMp3File(), PackageInfoDlg::slotBtnFileScan(), PiecesTable::slotCustomImage(), IMAPBase::slotDataAvailiable(), MainWindow::slotEditCopy(), FileReceive::slotExec(), MainWindow::slotFileSaveAs(), AddressbookWindow::slotItemBeam(), FifteenConfigDialog::slotLoadImage(), TinyKate::slotOpen(), InstallDlg::slotOutput(), Checkbook::slotPasswordClicked(), TinyKate::slotSaveAs(), AddressbookWindow::slotSetCategory(), MainWindow::slotTextClose(), QStringList::split(), IMAPResponseParser::splitData(), StackExample::StackExample(), NetworkServer::start(), ModifiersHandler::startElement(), ExtensionsHandler::startElement(), WExtensions::station(), NetworkServer::stop(), Opie::Core::OFileNotification::stop(), Datebook::StringManagerDialog::StringManagerDialog(), Node::subData(), OCompletion::substringCompletion(), TableViewerWindow::TableViewerWindow(), OpieTooth::PinDlg::test(), ExceptListItem::text(), Qt3::QTextDocument::text(), CharStringConfig::text(), CharConfig::text(), DictFilterConfig::text(), HelpWindow::textChanged(), TextEdit::TextEdit(), AppLauncher::timerEvent(), TinyKate::TinyKate(), OpieTooth::Manager::toDevice(), TodoSearch::TodoSearch(), OpieTooth::Manager::toMac(), QDateTime::toString(), QTime::toString(), QDate::toString(), TVVariant::toString(), MultiauthGeneralConfig::tryAuth(), AppLnkSet::typeName(), QComponentFactory::unregisterComponent(), Qt3::QTextEdit::updateCursor(), TZCombo::updateZones(), QTReaderApp::usefilebrowser(), QMakeProperty::value(), ViewAtt::ViewAtt(), KLocale::weekDayName(), MakefileGenerator::writeInstalls(), UnixMakefileGenerator::writeMakeParts(), ProjectBuilderMakefileGenerator::writeMakeParts(), MetrowerksMakefileGenerator::writeMakeParts(), NmakeMakefileGenerator::writeNmakeParts(), ZSafe::ZSafe(), ZSameWidget::ZSameWidget(), and ZSafe::zsaveDialog().

Q_EXPORT QStringData * QString::shared_null = 0 [static, private]
 

Definition at line 13148 of file qstring.cpp.

Referenced by deref(), QString(), setUnicode(), and ~QString().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:49:01 2005 for OPIE by  doxygen 1.4.2