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

qregexp3.cpp File Reference

#include "qregexp.h"
#include <opie2/odebug.h>
#include <qarray.h>
#include <qbitarray.h>
#include <qcache.h>
#include <qintdict.h>
#include <qmap.h>
#include <qstring.h>
#include <qtl.h>
#include <qvector.h>
#include <limits.h>

Include dependency graph for qregexp3.cpp:

Go to the source code of this file.

Defines

#define BadChar(ch)   ( (ch).cell() % NumBadChars )
#define YYREDO()

Functions

static void mergeInto (QArray< int > *a, const QArray< int > &b)
static void mergeInto (QMap< int, int > *a, const QMap< int, int > &b)
static int at (const QMap< int, int > &m, int k)
static QString wc2rx (const QString &wc)
static QRegExpEnginenewEngine (const QString &pattern, bool caseSensitive)
static void derefEngine (QRegExpEngine *eng, const QString &pattern)

Variables

static const int NumBadChars = 128
static const int NoOccurrence = INT_MAX
static const int EmptyCapture = INT_MAX
static const int InftyLen = INT_MAX
static const int InftyRep = 1000
static const int EOS = -1
static int engCount = 0
static QArray< int > * noOccurrences = 0
static QArray< int > * firstOccurrenceAtZero = 0
static QCache< QRegExpEngine > * engineCache = 0


Define Documentation

#define BadChar ch   )     ( (ch).cell() % NumBadChars )
 

Definition at line 663 of file qregexp3.cpp.

Referenced by QRegExpEngine::badCharMatch(), QRegExpEngine::CharClass::in(), and QRegExpEngine::Box::set().

 
#define YYREDO  ) 
 

Value:

yyIn = in, yyPos0 = pos0, yyPos = pos, yyLen = len, yyCh = ch, \
    *yyCharClass = charClass, yyMinRep = 0, yyMaxRep = 0, yyTok = tok

Referenced by QRegExpEngine::parseFactor().


Function Documentation

static int at const QMap< int, int > &  m,
int  k
[static]
 

Definition at line 733 of file qregexp3.cpp.

References QMap< Key, T >::end(), and QMap< Key, T >::find().

Referenced by QRegExpEngine::Box::addAnchorsToEngine(), LanguageSettings::applyLanguage(), QRegExpEngine::Box::cat(), QRegExpEngine::Box::catAnchor(), TicTacGameBoard::checkBoard(), Board::checkTurn(), QString::constref(), Painter::draw(), Board::finalizeTurn(), Qt3::QTextDocument::focusNextPrevChild(), Board::isBrick(), Board::isEmpty(), Board::isEnergizer(), Board::isFruit(), Board::isGate(), Board::isMonster(), Board::isOut(), Board::isPacman(), Board::isPoint(), Board::isPrison(), Board::isTunnel(), QRegExpEngine::matchHere(), Clock::nextAlarm(), QString::operator[](), qt_parse_pattern(), Painter::rect(), QIODevice::reset(), Board::reset(), Score::Score(), Board::set(), MultiKey::Keys::setKey(), Score::setScheme(), Board::showTurn(), Opie::Internal::OPimSortVector< T >::uidAt(), and Board::unshowTurn().

static void derefEngine QRegExpEngine eng,
const QString pattern
[static]
 

Definition at line 3098 of file qregexp3.cpp.

References QShared::deref(), QCache< type >::insert(), QString::isNull(), QString::length(), QPtrCollection::setAutoDelete(), and TRUE.

Referenced by QRegExp::compile(), QRegExp::operator=(), and QRegExp::~QRegExp().

static void mergeInto QMap< int, int > *  a,
const QMap< int, int > &  b
[static]
 

Definition at line 722 of file qregexp3.cpp.

References QMap< Key, T >::begin(), and QMap< Key, T >::end().

static void mergeInto QArray< int > *  a,
const QArray< int > &  b
[static]
 

Definition at line 680 of file qregexp3.cpp.

References i.

Referenced by QRegExpEngine::addCatTransitions(), QRegExpEngine::addPlusTransitions(), QRegExpEngine::Box::cat(), and QRegExpEngine::Box::orx().

static QRegExpEngine* newEngine const QString pattern,
bool  caseSensitive
[static]
 

Definition at line 3082 of file qregexp3.cpp.

References QRegExpEngine::caseSensitive(), QShared::ref(), and QCache< type >::take().

Referenced by QRegExp::compile().

static QString wc2rx const QString wc  )  [static]
 

Definition at line 747 of file qregexp3.cpp.

References QString::fromLatin1(), i, QString::length(), and QChar::unicode().

Referenced by QRegExp::compile().


Variable Documentation

const int EmptyCapture = INT_MAX [static]
 

Definition at line 666 of file qregexp3.cpp.

Referenced by QRegExpEngine::matchHere(), and QRegExpEngine::testAnchor().

int engCount = 0 [static]
 

Definition at line 672 of file qregexp3.cpp.

Referenced by QRegExpEngine::setup(), and QRegExpEngine::~QRegExpEngine().

QCache<QRegExpEngine>* engineCache = 0 [static]
 

Definition at line 3079 of file qregexp3.cpp.

const int EOS = -1 [static]
 

Definition at line 669 of file qregexp3.cpp.

Referenced by QRegExpEngine::getChar(), QRegExpEngine::getEscape(), and QRegExpEngine::getToken().

QArray<int>* firstOccurrenceAtZero = 0 [static]
 

Definition at line 674 of file qregexp3.cpp.

Referenced by QRegExpEngine::CharClass::addCategories(), QRegExpEngine::CharClass::addRange(), QRegExpEngine::CharClass::setNegative(), QRegExpEngine::setup(), QRegExpEngine::setupBadCharHeuristic(), and QRegExpEngine::~QRegExpEngine().

const int InftyLen = INT_MAX [static]
 

Definition at line 667 of file qregexp3.cpp.

Referenced by QRegExpEngine::Box::cat(), QRegExpEngine::Box::plus(), and QRegExpEngine::Box::set().

const int InftyRep = 1000 [static]
 

Definition at line 668 of file qregexp3.cpp.

Referenced by QRegExpEngine::getRep(), QRegExpEngine::getToken(), and QRegExpEngine::parseFactor().

const int NoOccurrence = INT_MAX [static]
 

Definition at line 665 of file qregexp3.cpp.

Referenced by QRegExpEngine::badCharMatch(), QRegExpEngine::Box::cat(), QRegExpEngine::heuristicallyChooseHeuristic(), QRegExpEngine::CharClass::in(), QRegExpEngine::setup(), and QRegExpEngine::Box::setupHeuristics().

QArray<int>* noOccurrences = 0 [static]
 

Definition at line 673 of file qregexp3.cpp.

Referenced by QRegExpEngine::setup(), and QRegExpEngine::~QRegExpEngine().

const int NumBadChars = 128 [static]
 

Definition at line 662 of file qregexp3.cpp.

Referenced by QRegExpEngine::CharClass::addRange(), QRegExpEngine::Box::cat(), QRegExpEngine::heuristicallyChooseHeuristic(), QRegExpEngine::Box::orx(), QRegExpEngine::setup(), QRegExpEngine::setupBadCharHeuristic(), and QRegExpEngine::Box::setupHeuristics().


Generated on Sat Nov 5 16:53:21 2005 for OPIE by  doxygen 1.4.2