Qt 4.8
|
#include "qstringlist.h"
#include "qregexp.h"
#include "qunicodetables_p.h"
#include <qtextcodec.h>
#include <private/qutfcodec_p.h>
#include "qsimd_p.h"
#include <qdatastream.h>
#include <qlist.h>
#include "qlocale.h"
#include "qlocale_p.h"
#include "qstringmatcher.h"
#include "qvarlengtharray.h"
#include "qtools_p.h"
#include "qhash.h"
#include "qdebug.h"
#include "qendian.h"
#include "qmutex.h"
#include <private/qcore_mac_p.h>
#include <private/qfunctions_p.h>
#include <windows.h>
#include <winnls.h>
#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "qchar.cpp"
#include "qstringmatcher.cpp"
#include "qt_windows.h"
Go to the source code of this file.
Classes | |
struct | ArgEscapeData |
struct | QStringCapture |
class | qt_section_chunk |
Macros | |
#define | CSTR_EQUAL 2 |
#define | CSTR_GREATER_THAN 3 |
#define | CSTR_LESS_THAN 1 |
#define | LLONG_MAX qint64_C(9223372036854775807) |
#define | LLONG_MIN (-LLONG_MAX - qint64_C(1)) |
#define | QT_MAX_FLOAT 3.4028234663852886e+38 |
Returns the string converted to a float value. More... | |
#define | REHASH(a) |
#define | ULLONG_MAX quint64_C(18446744073709551615) |
Functions | |
static ArgEscapeData | findArgEscapes (const QString &s) |
static int | findChar (const QChar *str, int len, QChar ch, int from, Qt::CaseSensitivity cs) |
Returns the index position of the first occurrence of the character ch in the string given by str and len, searching forward from index position from. More... | |
static int | getEscape (const QChar *uc, int *pos, int len, int maxNumber=999) |
static bool | isStringRightToLeft (const ushort *p, const ushort *end) |
static int | lastIndexOfHelper (const ushort *haystack, int from, const ushort *needle, int sl, Qt::CaseSensitivity cs) |
QDataStream & | operator<< (QDataStream &out, const QString &str) |
QDataStream & | operator>> (QDataStream &in, QString &str) |
int | qFindString (const QChar *haystack, int haystackLen, int from, const QChar *needle, int needleLen, Qt::CaseSensitivity cs) |
int | qFindStringBoyerMoore (const QChar *haystack, int haystackLen, int from, const QChar *needle, int needleLen, Qt::CaseSensitivity cs) |
bool | qIsDigit (char ch) |
bool | qIsUpper (char ch) |
static bool | qMemEquals (const quint16 *a, const quint16 *b, int length) |
static bool | qt_ends_with (const QChar *haystack, int haystackLen, const QChar *needle, int needleLen, Qt::CaseSensitivity cs) |
static bool | qt_ends_with (const QChar *haystack, int haystackLen, const QLatin1String &needle, Qt::CaseSensitivity cs) |
static int | qt_find_latin1_string (const QChar *hay, int size, const QLatin1String &needle, int from, Qt::CaseSensitivity cs) |
static int | qt_last_index_of (const QChar *haystack, int haystackLen, const QChar &needle, int from, Qt::CaseSensitivity cs) |
static bool | qt_starts_with (const QChar *haystack, int haystackLen, const QChar *needle, int needleLen, Qt::CaseSensitivity cs) |
static bool | qt_starts_with (const QChar *haystack, int haystackLen, const QLatin1String &needle, Qt::CaseSensitivity cs) |
static int | qt_string_count (const QChar *haystack, int haystackLen, const QChar *needle, int needleLen, Qt::CaseSensitivity cs) |
static int | qt_string_count (const QChar *haystack, int haystackLen, const QChar &needle, Qt::CaseSensitivity cs) |
void | qt_string_normalize (QString *data, QString::NormalizationForm mode, QChar::UnicodeVersion version, int from) |
char | qToLower (char ch) |
static QString | replaceArgEscapes (const QString &s, const ArgEscapeData &d, int field_width, const QString &arg, const QString &larg, const QChar &fillChar=QLatin1Char(' ')) |
static QByteArray | toLatin1_helper (const QChar *data, int length) |
template<typename T > | |
int | toUcs4_helper (const unsigned short *uc, int length, T *out) |
static int | ucstrcmp (const QChar *a, int alen, const QChar *b, int blen) |
static int | ucstricmp (const ushort *a, const ushort *ae, const ushort *b, const ushort *be) |
static int | ucstricmp (const ushort *a, const ushort *ae, const uchar *b) |
static int | ucstrncmp (const QChar *a, const QChar *b, int l) |
static int | ucstrnicmp (const ushort *a, const ushort *b, int l) |
#define CSTR_EQUAL 2 |
Definition at line 5180 of file qstring.cpp.
#define CSTR_GREATER_THAN 3 |
Definition at line 5181 of file qstring.cpp.
Referenced by QString::localeAwareCompare_helper().
#define CSTR_LESS_THAN 1 |
Definition at line 5179 of file qstring.cpp.
Referenced by QString::localeAwareCompare_helper().
#define LLONG_MAX qint64_C(9223372036854775807) |
Definition at line 91 of file qstring.cpp.
#define LLONG_MIN (-LLONG_MAX - qint64_C(1)) |
Definition at line 94 of file qstring.cpp.
#define QT_MAX_FLOAT 3.4028234663852886e+38 |
Returns the string converted to a float
value.
If a conversion error occurs, *{ok} is set to false; otherwise {ok} is set to true. Returns 0.0 if the conversion fails.
Example:
Definition at line 6255 of file qstring.cpp.
Referenced by QString::toFloat().
#define REHASH | ( | a | ) |
Definition at line 357 of file qstring.cpp.
Referenced by lastIndexOfHelper(), and qFindString().
#define ULLONG_MAX quint64_C(18446744073709551615) |
Definition at line 97 of file qstring.cpp.
|
static |
Definition at line 6780 of file qstring.cpp.
Referenced by QString::arg().
|
static |
Returns the index position of the first occurrence of the character ch in the string given by str and len, searching forward from index position from.
Returns -1 if ch could not be found.
Definition at line 333 of file qstring.cpp.
Referenced by QString::indexOf(), QStringRef::indexOf(), and qFindString().
|
static |
Definition at line 7408 of file qstring.cpp.
Referenced by QString::multiArg().
Definition at line 7487 of file qstring.cpp.
Referenced by QString::isRightToLeft(), and QString::updateProperties().
|
static |
Definition at line 2863 of file qstring.cpp.
Referenced by QString::lastIndexOf(), and QStringRef::lastIndexOf().
|
related |
Definition at line 8034 of file qstring.cpp.
|
related |
Definition at line 8071 of file qstring.cpp.
int qFindString | ( | const QChar * | haystack, |
int | haystackLen, | ||
int | from, | ||
const QChar * | needle, | ||
int | needleLen, | ||
Qt::CaseSensitivity | cs | ||
) |
Definition at line 2753 of file qstring.cpp.
Referenced by QString::indexOf(), QStringRef::indexOf(), QRegExpMatchState::match(), qt_find_latin1_string(), and qt_string_count().
int qFindStringBoyerMoore | ( | const QChar * | haystack, |
int | haystackLen, | ||
int | haystackOffset, | ||
const QChar * | needle, | ||
int | needleLen, | ||
Qt::CaseSensitivity | cs | ||
) |
Definition at line 322 of file qstringmatcher.cpp.
Referenced by qFindString().
|
inline |
Definition at line 367 of file qstring.cpp.
Referenced by QString::vsprintf().
|
inline |
Definition at line 362 of file qstring.cpp.
Referenced by QString::arg(), QString::setNum(), and QString::vsprintf().
Definition at line 273 of file qstring.cpp.
Referenced by QString::operator==(), QStringRef::operator==(), qt_ends_with(), and qt_starts_with().
|
inlinestatic |
Definition at line 9722 of file qstring.cpp.
Referenced by QString::endsWith(), and QStringRef::endsWith().
|
inlinestatic |
Definition at line 9749 of file qstring.cpp.
|
inlinestatic |
Definition at line 9659 of file qstring.cpp.
Referenced by QString::indexOf(), and QStringRef::indexOf().
|
inlinestatic |
Definition at line 9595 of file qstring.cpp.
Referenced by QString::lastIndexOf(), and QStringRef::lastIndexOf().
|
inlinestatic |
Definition at line 9673 of file qstring.cpp.
Referenced by QString::startsWith(), and QStringRef::startsWith().
|
inlinestatic |
Definition at line 9698 of file qstring.cpp.
|
inlinestatic |
Definition at line 9622 of file qstring.cpp.
Referenced by QString::count(), and QStringRef::count().
|
inlinestatic |
Definition at line 9639 of file qstring.cpp.
void qt_string_normalize | ( | QString * | data, |
QString::NormalizationForm | mode, | ||
QChar::UnicodeVersion | version, | ||
int | from | ||
) |
Definition at line 6710 of file qstring.cpp.
Referenced by QString::normalized(), qt_nameprep(), and QString::repeated().
|
inline |
Definition at line 372 of file qstring.cpp.
Referenced by QString::arg(), QString::setNum(), and QString::vsprintf().
|
static |
Definition at line 6839 of file qstring.cpp.
Referenced by QString::arg().
|
static |
Definition at line 3924 of file qstring.cpp.
Referenced by QString::toAscii(), QString::toLatin1(), and QStringRef::toLatin1().
int toUcs4_helper | ( | const unsigned short * | uc, |
int | length, | ||
T * | out | ||
) |
Definition at line 1047 of file qstring.cpp.
Definition at line 211 of file qstring.cpp.
Referenced by QString::compare(), QString::compare_helper(), QString::localeAwareCompare_helper(), QString::operator<(), and QStringRef::operator<().
|
static |
Definition at line 141 of file qstring.cpp.
Referenced by QString::compare(), QString::compare_helper(), and ucstrnicmp().
Definition at line 175 of file qstring.cpp.
Definition at line 201 of file qstring.cpp.
Referenced by lastIndexOfHelper(), qFindString(), and ucstrcmp().
Definition at line 221 of file qstring.cpp.
Referenced by lastIndexOfHelper(), and qFindString().