1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<title>QaRegExp Include File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<center><a href="annotated.html">Compound list</a> <a href="files.html">File list</a> <a href="headers.html">Header files</a> <a href="functions.html">Compound Members</a> <a href="globals.html">File Members</a>
</center><hr>
<h1>qaregexp.hpp</h1>
This is the verbatim text of the qaregexp.hpp include file.<hr><div class="fragment"><pre>//
// $Id: qaregexp.hpp,v 1.7 1999/08/16 00:49:44 amos Exp $
//
// Definition of QaRegExp class
//
// Jan Borsodi <amos@abn.hibu.no>
// Created on: <14-Jul-1999 19:14:57 amos>
//
#ifndef QAREGEXP_HPP
#define QAREGEXP_HPP
#include "<a class="el" href="qaregexpmatch.hpp.html">qaregexpmatch.hpp</a>"
#include <qstring.h>
#include <qstringlist.h>
#include <regex.h>
class <a class="el" href="class_qaregexp.html">QaRegExp</a>
{
public:
<a class="el" href="class_qaregexp.html#a1">QaRegExp</a>( const <a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> &r, bool c = true );
<a class="el" href="class_qaregexp.html#a1">QaRegExp</a>( const <a class="el" href="class_qaregexp.html">QaRegExp</a> &r );
virtual ~QaRegExp();
bool caseSensitive() const;
void setCaseSensitive( bool s );
bool match( const <a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> &s, int sub = 0 );
int matchMultiple( const <a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> &s, int sub = 0 );
<a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> matchString( int sub = 0 );
<a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstringlist.html">QStringList</a> matchStrings();
int matchBeginning( int sub = 0 ) const;
int matchEnd( int sub = 0 ) const;
const <a class="el" href="class_qaregexpmatch.html">QaRegExpMatch</a> &matches() const;
void split( const <a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> &s );
int subCount() const;
void setExpression( const <a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> &r );
<a class="el" href="class_qaregexp.html">QaRegExp</a> &operator =( const <a class="el" href="class_qaregexp.html">QaRegExp</a> &r );
private:
void compileRegExp();
void setSubReg( bool b );
private:
<a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> RegString;
<a class="el" doxygen="qt.tag:/usr/lib/qt/doc/" href="/usr/lib/qt/doc/qstring.html">QString</a> String;
int Flags;
bool Case;
bool Subs;
bool Alloced;
regex_t RegComp;
int NumSub;
<a class="el" href="class_qaregexpmatch.html">QaRegExpMatch</a> Matches;
};
#endif // QAREGEXP_HPP
</div></pre><hr><address><small>Generated at Mon Aug 16 02:11:02 1999 for QaRegExp by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"><img src="doxygen.gif" alt="doxygen" align=center border=0 width=118 height=53></a> written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-1998</small></address>
</body>
</html>
|