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
|
//
// $Id: qaregexperror.hpp,v 1.3 1999/07/22 01:57:35 amos Exp $
//
// Definition of QaRegExpError class
//
// Jan Borsodi <amos@abn.hibu.no>
// Created on: <21-Jul-1999 23:16:39 amos>
//
// Copyright (C) 1999 Jan Borsodi. All rights reserved.
//
#ifndef QAREGEXPERROR_HPP
#define QAREGEXPERROR_HPP
#include <qstring.h>
class QaRegExpError
{
public:
enum RegExpCode
{
NoErr,
BadPointer,
BadBackReference,
UnmatchedBrace,
UnmatchedBracket,
InvalidRange,
UnknownClass,
InvalidCollate,
UnmatchedParenthesis,
InvalidBackReference,
NonPosixError,
TrailingBackslash,
BadPattern,
BufferOverflow,
OutOfMemory,
UnknownError
};
QaRegExpError( int err, const QString &s );
virtual ~QaRegExpError();
const QString &error() const;
RegExpCode errorCode() const;
private:
QString Str;
RegExpCode Error;
};
#endif // QAREGEXPERROR_HPP
|