File: qaregexprange.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 (38 lines) | stat: -rw-r--r-- 697 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
// 
// $Id: qaregexprange.hpp,v 1.2 1999/07/19 02:36:55 amos Exp $
//
// Definition of QaRegExpRange class
//
// Jan Borsodi <amos@ez.no>
// Created on: <15-Jul-1999 13:42:58 amos>
//

#ifndef QAREGEXPRANGE_HPP
#define QAREGEXPRANGE_HPP

#include <qstring.h>

class QaRegExpRange
{
public:
    QaRegExpRange();
    QaRegExpRange( int soffs, int eoffs );
    ~QaRegExpRange();

    int start() const;
    int end() const;
    int length() const;
    void setStart( int s );
    void setEnd( int e );

    QString stringRange( const QString &s ) const;

    QaRegExpRange &operator +=( int i );
    QaRegExpRange &operator -=( int i );

private:
    int Start, End;
};


#endif // QAREGEXPRANGE_HPP