![]() |
Qt 4.8
|
#include "qregexp.h"#include "qalgorithms.h"#include "qbitarray.h"#include "qcache.h"#include "qdatastream.h"#include "qlist.h"#include "qmap.h"#include "qmutex.h"#include "qstring.h"#include "qstringlist.h"#include "qstringmatcher.h"#include "qvector.h"#include "private/qfunctions_p.h"#include <limits.h>Go to the source code of this file.
Classes | |
| struct | QRegExpAnchorAlternation |
| struct | QRegExpAtom |
| struct | QRegExpAutomatonState |
| class | QRegExpCharClass |
| struct | QRegExpCharClassRange |
| class | QRegExpEngine |
| class | QRegExpEngine::Box |
| struct | QRegExpEngineKey |
| struct | QRegExpLookahead |
| struct | QRegExpMatchState |
| struct | QRegExpPrivate |
Macros | |
| #define | BadChar(ch) ((ch).unicode() % NumBadChars) |
| #define | RXERR_CATEGORY QT_TRANSLATE_NOOP("QRegExp", "invalid category") |
| #define | RXERR_CHARCLASS QT_TRANSLATE_NOOP("QRegExp", "bad char class syntax") |
| #define | RXERR_DISABLED QT_TRANSLATE_NOOP("QRegExp", "disabled feature used") |
| #define | RXERR_END QT_TRANSLATE_NOOP("QRegExp", "unexpected end") |
| #define | RXERR_INTERVAL QT_TRANSLATE_NOOP("QRegExp", "invalid interval") |
| #define | RXERR_LEFTDELIM QT_TRANSLATE_NOOP("QRegExp", "missing left delim") |
| #define | RXERR_LIMIT QT_TRANSLATE_NOOP("QRegExp", "met internal limit") |
| #define | RXERR_LOOKAHEAD QT_TRANSLATE_NOOP("QRegExp", "bad lookahead syntax") |
| #define | RXERR_LOOKBEHIND QT_TRANSLATE_NOOP("QRegExp", "lookbehinds not supported, see QTBUG-2371") |
| #define | RXERR_OCTAL QT_TRANSLATE_NOOP("QRegExp", "invalid octal value") |
| #define | RXERR_OK QT_TRANSLATE_NOOP("QRegExp", "no error occurred") |
| #define | RXERR_REPETITION QT_TRANSLATE_NOOP("QRegExp", "bad repetition syntax") |
| #define | YYREDO() |
Typedefs | |
| typedef QCache< QRegExpEngineKey, QRegExpEngine > | EngineCache |
Variables | |
| const int | EmptyCapture = INT_MAX |
| const int | EOS = -1 |
| const int | InftyLen = INT_MAX |
| const int | InftyRep = 1025 |
| const int | NoOccurrence = INT_MAX |
| const int | NumBadChars = 64 |
| #define BadChar | ( | ch | ) | ((ch).unicode() % NumBadChars) |
Definition at line 699 of file qregexp.cpp.
Referenced by QRegExpEngine::badCharMatch(), QRegExpCharClass::in(), and QRegExpEngine::Box::set().
| #define RXERR_CATEGORY QT_TRANSLATE_NOOP("QRegExp", "invalid category") |
Definition at line 76 of file qregexp.cpp.
Referenced by QRegExpEngine::getEscape().
| #define RXERR_CHARCLASS QT_TRANSLATE_NOOP("QRegExp", "bad char class syntax") |
Definition at line 67 of file qregexp.cpp.
Referenced by QRegExpEngine::getEscape(), and QRegExpEngine::getToken().
| #define RXERR_DISABLED QT_TRANSLATE_NOOP("QRegExp", "disabled feature used") |
Definition at line 66 of file qregexp.cpp.
Referenced by QRegExpEngine::getEscape(), QRegExpEngine::getToken(), and QRegExpEngine::parseAtom().
| #define RXERR_END QT_TRANSLATE_NOOP("QRegExp", "unexpected end") |
Definition at line 73 of file qregexp.cpp.
Referenced by QRegExpEngine::getEscape(), QRegExpEngine::getToken(), and QRegExpEngine::parseAtom().
| #define RXERR_INTERVAL QT_TRANSLATE_NOOP("QRegExp", "invalid interval") |
Definition at line 75 of file qregexp.cpp.
Referenced by QRegExpEngine::getToken().
| #define RXERR_LEFTDELIM QT_TRANSLATE_NOOP("QRegExp", "missing left delim") |
Definition at line 72 of file qregexp.cpp.
Referenced by QRegExpEngine::getToken(), and QRegExpEngine::QRegExpEngine().
| #define RXERR_LIMIT QT_TRANSLATE_NOOP("QRegExp", "met internal limit") |
Definition at line 74 of file qregexp.cpp.
Referenced by QRegExpEngine::addLookahead(), and QRegExpEngine::createState().
| #define RXERR_LOOKAHEAD QT_TRANSLATE_NOOP("QRegExp", "bad lookahead syntax") |
Definition at line 68 of file qregexp.cpp.
Referenced by QRegExpEngine::getToken(), and QRegExpEngine::parseAtom().
| #define RXERR_LOOKBEHIND QT_TRANSLATE_NOOP("QRegExp", "lookbehinds not supported, see QTBUG-2371") |
Definition at line 69 of file qregexp.cpp.
Referenced by QRegExpEngine::getToken().
| #define RXERR_OCTAL QT_TRANSLATE_NOOP("QRegExp", "invalid octal value") |
Definition at line 71 of file qregexp.cpp.
Referenced by QRegExpEngine::getEscape().
| #define RXERR_OK QT_TRANSLATE_NOOP("QRegExp", "no error occurred") |
Definition at line 65 of file qregexp.cpp.
Referenced by QRegExp::errorString().
| #define RXERR_REPETITION QT_TRANSLATE_NOOP("QRegExp", "bad repetition syntax") |
Definition at line 70 of file qregexp.cpp.
Referenced by QRegExpEngine::getRep(), QRegExpEngine::getToken(), and QRegExpEngine::parseAtom().
| #define YYREDO | ( | ) |
Referenced by QRegExpEngine::parseFactor().
| typedef QCache<QRegExpEngineKey, QRegExpEngine> EngineCache |
Definition at line 3677 of file qregexp.cpp.
|
static |
Definition at line 858 of file qregexp.cpp.
Referenced by QRegExpMatchState::drain(), QRegExp::indexIn(), QRegExp::lastIndexIn(), and QRegExpMatchState::match().
|
static |
Definition at line 3682 of file qregexp.cpp.
Referenced by invalidateEngine().
|
static |
Definition at line 3742 of file qregexp.cpp.
Referenced by QRegExp::operator=(), QRegExp::setCaseSensitivity(), QRegExp::setPattern(), QRegExp::setPatternSyntax(), and QRegExp::~QRegExp().
|
static |
Definition at line 1785 of file qregexp.cpp.
Referenced by QRegExpMatchState::matchHere().
|
static |
Definition at line 707 of file qregexp.cpp.
Referenced by QRegExpMatchState::testAnchor().
Definition at line 716 of file qregexp.cpp.
Referenced by QRegExpEngine::addCatTransitions(), QRegExpEngine::addPlusTransitions(), QRegExpEngine::Box::cat(), and QRegExpEngine::Box::orx().
| Q_STATIC_GLOBAL_OPERATOR bool operator== | ( | const QRegExpEngineKey & | key1, |
| const QRegExpEngineKey & | key2 | ||
| ) |
Definition at line 889 of file qregexp.cpp.
|
inlinestatic |
Definition at line 3723 of file qregexp.cpp.
Referenced by QRegExp::captureCount(), QRegExp::capturedTexts(), QRegExp::isValid(), QRegExp::operator=(), prepareEngineForMatch(), and QRegExp::QRegExp().
|
static |
Definition at line 3704 of file qregexp.cpp.
Referenced by prepareEngine().
|
static |
Definition at line 3730 of file qregexp.cpp.
Referenced by QRegExp::exactMatch(), QRegExp::indexIn(), and QRegExp::lastIndexIn().
| Q_DECLARE_TYPEINFO | ( | QRegExpAutomatonState | , |
| Q_MOVABLE_TYPE | |||
| ) |
Referenced by QRegExpAutomatonState::QRegExpAutomatonState().
| Q_DECLARE_TYPEINFO | ( | QRegExpCharClassRange | , |
| Q_PRIMITIVE_TYPE | |||
| ) |
| Q_DECLARE_TYPEINFO | ( | QRegExpAtom | , |
| Q_PRIMITIVE_TYPE | |||
| ) |
| Q_DECLARE_TYPEINFO | ( | QRegExpAnchorAlternation | , |
| Q_PRIMITIVE_TYPE | |||
| ) |
| Q_DECLARE_TYPEINFO | ( | QRegExpCharClass | , |
| Q_MOVABLE_TYPE | |||
| ) |
| 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().
| uint qHash | ( | const QRegExpEngineKey & | key | ) |
Definition at line 3672 of file qregexp.cpp.
| Q_CORE_EXPORT QString qt_regexp_toCanonical | ( | const QString & | pattern, |
| QRegExp::PatternSyntax | patternSyntax | ||
| ) |
This is also used by QScriptEngine::newRegExp to convert to a pattern that JavaScriptCore can understan
Definition at line 1323 of file qregexp.cpp.
Referenced by QScriptEnginePrivate::detachAllRegisteredScriptStrings(), QScriptEnginePrivate::newRegExp(), and QRegExpEngine::QRegExpEngine().
Definition at line 761 of file qregexp.cpp.
Referenced by qt_regexp_toCanonical().
| const int EmptyCapture = INT_MAX |
Definition at line 702 of file qregexp.cpp.
Referenced by QRegExpMatchState::match(), QRegExpMatchState::matchHere(), and QRegExpMatchState::testAnchor().
| const int EOS = -1 |
Definition at line 705 of file qregexp.cpp.
Referenced by QRegExpEngine::getChar(), QRegExpEngine::getEscape(), and QRegExpEngine::getToken().
| const int InftyLen = INT_MAX |
Definition at line 703 of file qregexp.cpp.
Referenced by QRegExpEngine::Box::cat(), QRegExpEngine::Box::plus(), and QRegExpEngine::Box::set().
| const int InftyRep = 1025 |
Definition at line 704 of file qregexp.cpp.
Referenced by QRegExpEngine::getRep(), QRegExpEngine::getToken(), and QRegExpEngine::parseFactor().
| const int NoOccurrence = INT_MAX |
Definition at line 701 of file qregexp.cpp.
Referenced by QRegExpEngine::badCharMatch(), QRegExpEngine::Box::Box(), QRegExpEngine::Box::cat(), QRegExpEngine::heuristicallyChooseHeuristic(), QRegExpCharClass::in(), QRegExpCharClass::QRegExpCharClass(), and QRegExpEngine::Box::setupHeuristics().
| const int NumBadChars = 64 |
Definition at line 698 of file qregexp.cpp.
Referenced by QRegExpCharClass::addCategories(), QRegExpCharClass::addRange(), QRegExpEngine::Box::Box(), QRegExpEngine::Box::cat(), QRegExpEngine::heuristicallyChooseHeuristic(), QRegExpEngine::Box::orx(), QRegExpCharClass::QRegExpCharClass(), QRegExpCharClass::setNegative(), QRegExpEngine::setup(), and QRegExpEngine::Box::setupHeuristics().