File: qaregexpmatch.hpp

package info (click to toggle)
regexplorer 0.1.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 332 kB
  • ctags: 222
  • sloc: cpp: 1,166; perl: 99; makefile: 45; sh: 32
file content (41 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (3)
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
// 
// $Id: qaregexpmatch.hpp,v 1.3 1999/07/19 02:36:55 amos Exp $
//
// Definition of QaRegExpMatch class
//
// Jan Borsodi <amos@ez.no>
// Created on: <15-Jul-1999 13:53:16 amos>
//

#ifndef QAREGEXPMATCH_HPP
#define QAREGEXPMATCH_HPP

#include "qaregexprange.hpp"
#include <regex.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qvaluelist.h>

class QaRegExpMatch
{
public:
    QaRegExpMatch();
    QaRegExpMatch( const QString &s );
    QaRegExpMatch( const QString &s, const regmatch_t m[], int size );
    ~QaRegExpMatch();

    void appendMatch( const QaRegExpRange &r );
    const QStringList &toString();
    const QString &toString( int o );

    const QaRegExpRange &operator[]( int o ) const;

private:
    QValueList<QaRegExpRange> Matches;
    QArray<bool> Calc;
    QStringList List;
    QString String;
};


#endif // QAREGEXPMATCH_HPP