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

CRegExpFilt Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-reader/CRegExp.h>

Collaboration diagram for CRegExpFilt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CRegExpFilt (const QString &pat, bool insens)
 ~CRegExpFilt ()
bool addch (tchar)
void restart ()
unsigned int matchlength ()
bool empty ()
tchar pop ()

Private Member Functions

void regchar (tchar, bool)
void prepreprocessing (const QString &pat, bool insens)
unsigned int preprocessing (const QString &pat, bool insens)
tchar escapedchar (tchar c)
int islower (tchar c)
tchar upper (tchar c)
int isupper (tchar c)
tchar lower (tchar c)

Private Attributes

CQueue< tcharm_outQueue
hashtable< tchar, unsigned
int > 
CV
unsigned int bit [WORD_SIZE]
unsigned int R
unsigned int bit_0
unsigned int endpos
unsigned int patlength
unsigned int keep
unsigned int len
unsigned int replace
unsigned int cur
tchar word [WORD_SIZE]
unsigned int lfcnt [WORD_SIZE]

Constructor & Destructor Documentation

CRegExpFilt::CRegExpFilt const QString pat,
bool  insens
 

Definition at line 473 of file CRegExp.cpp.

References bit, bit_0, cur, endpos, patlength, preprocessing(), qDebug(), and restart().

CRegExpFilt::~CRegExpFilt  ) 
 

Definition at line 488 of file CRegExp.cpp.


Member Function Documentation

bool CRegExpFilt::addch tchar   ) 
 

Definition at line 416 of file CRegExp.cpp.

References bit, bit_0, cur, CV, hashtable< K, D >::end(), endpos, hashtable< K, D >::find(), i, keep, len, lfcnt, m_outQueue, patlength, CQueue< T >::push(), R, replace, and word.

Referenced by repara::getch().

bool CRegExpFilt::empty  ) 
 

Definition at line 406 of file CRegExp.cpp.

References CQueue< T >::empty(), and m_outQueue.

Referenced by repara::getch().

tchar CRegExpFilt::escapedchar tchar  c  )  [private]
 

Definition at line 8 of file CRegExp.cpp.

Referenced by prepreprocessing(), and preprocessing().

int CRegExpFilt::islower tchar  c  )  [inline, private]
 

Definition at line 26 of file CRegExp.h.

Referenced by upper().

int CRegExpFilt::isupper tchar  c  )  [inline, private]
 

Definition at line 34 of file CRegExp.h.

Referenced by lower().

tchar CRegExpFilt::lower tchar  c  )  [inline, private]
 

Definition at line 38 of file CRegExp.h.

References isupper().

Referenced by preprocessing(), and regchar().

unsigned int CRegExpFilt::matchlength  )  [inline]
 

Definition at line 47 of file CRegExp.h.

References patlength.

tchar CRegExpFilt::pop  ) 
 

Definition at line 411 of file CRegExp.cpp.

References m_outQueue, and CList< T >::pop().

Referenced by repara::getch().

void CRegExpFilt::prepreprocessing const QString pat,
bool  insens
[private]
 

Definition at line 60 of file CRegExp.cpp.

References QString::at(), CV, escapedchar(), QString::length(), p, regchar(), and QString::unicode().

Referenced by preprocessing().

unsigned int CRegExpFilt::preprocessing const QString pat,
bool  insens
[private]
 

Definition at line 179 of file CRegExp.cpp.

References QString::at(), hashtable< K, D >::begin(), bit, CV, hashtable< K, D >::end(), escapedchar(), hashtable< K, D >::find(), i, keep, QString::length(), lfcnt, lower(), p, prepreprocessing(), qDebug(), replace, QString::unicode(), upper(), and WORD_SIZE.

Referenced by CRegExpFilt().

void CRegExpFilt::regchar tchar  ,
bool 
[private]
 

Definition at line 45 of file CRegExp.cpp.

References CV, lower(), t, and upper().

Referenced by prepreprocessing().

void CRegExpFilt::restart  ) 
 

Definition at line 467 of file CRegExp.cpp.

References len, and R.

Referenced by CRegExpFilt().

tchar CRegExpFilt::upper tchar  c  )  [inline, private]
 

Definition at line 30 of file CRegExp.h.

References islower().

Referenced by preprocessing(), and regchar().


Member Data Documentation

unsigned int CRegExpFilt::bit[WORD_SIZE] [private]
 

Definition at line 14 of file CRegExp.h.

Referenced by addch(), CRegExpFilt(), and preprocessing().

unsigned int CRegExpFilt::bit_0 [private]
 

Definition at line 16 of file CRegExp.h.

Referenced by addch(), and CRegExpFilt().

unsigned int CRegExpFilt::cur [private]
 

Definition at line 19 of file CRegExp.h.

Referenced by addch(), and CRegExpFilt().

hashtable<tchar,unsigned int> CRegExpFilt::CV [private]
 

Definition at line 13 of file CRegExp.h.

Referenced by addch(), prepreprocessing(), preprocessing(), and regchar().

unsigned int CRegExpFilt::endpos [private]
 

Definition at line 16 of file CRegExp.h.

Referenced by addch(), and CRegExpFilt().

unsigned int CRegExpFilt::keep [private]
 

Definition at line 18 of file CRegExp.h.

Referenced by addch(), and preprocessing().

unsigned int CRegExpFilt::len [private]
 

Definition at line 18 of file CRegExp.h.

Referenced by addch(), and restart().

unsigned int CRegExpFilt::lfcnt[WORD_SIZE] [private]
 

Definition at line 24 of file CRegExp.h.

Referenced by addch(), and preprocessing().

CQueue<tchar> CRegExpFilt::m_outQueue [private]
 

Definition at line 12 of file CRegExp.h.

Referenced by addch(), empty(), and pop().

unsigned int CRegExpFilt::patlength [private]
 

Definition at line 17 of file CRegExp.h.

Referenced by addch(), CRegExpFilt(), and matchlength().

unsigned int CRegExpFilt::R [private]
 

Definition at line 15 of file CRegExp.h.

Referenced by addch(), and restart().

unsigned int CRegExpFilt::replace [private]
 

Definition at line 19 of file CRegExp.h.

Referenced by addch(), and preprocessing().

tchar CRegExpFilt::word[WORD_SIZE] [private]
 

Definition at line 23 of file CRegExp.h.

Referenced by addch().


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