aboutsummaryrefslogtreecommitdiff
path: root/src/RegExp.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/RegExp.hh')
-rw-r--r--src/RegExp.hh16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/RegExp.hh b/src/RegExp.hh
index 9591bcb..f5f5fd6 100644
--- a/src/RegExp.hh
+++ b/src/RegExp.hh
@@ -21,12 +21,16 @@
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE. 22// DEALINGS IN THE SOFTWARE.
23 23
24// $Id: RegExp.hh,v 1.1 2003/06/12 15:12:19 rathnor Exp $ 24// $Id: RegExp.hh,v 1.2 2003/06/13 11:43:46 fluxgen Exp $
25 25
26#ifndef REGEXP_HH 26#ifndef REGEXP_HH
27#define REGEXP_HH 27#define REGEXP_HH
28 28
29#include "NotCopyable.hh"
30
31#ifdef HAVE_CONFIG_H
29#include "config.h" 32#include "config.h"
33#endif // HAVE_CONFIG_H
30 34
31#include <string> 35#include <string>
32 36
@@ -41,18 +45,14 @@
41 45
42class WinClient; 46class WinClient;
43 47
44class RegExp { 48class RegExp:private FbTk::NotCopyable {
45public: 49public:
46 RegExp(const std::string &str, bool full_match = true); 50 RegExp(const std::string &str, bool full_match = true);
47 ~RegExp(); 51 ~RegExp();
48 52
49 bool match(const std::string &str); 53 bool match(const std::string &str) const;
50 54
51#ifdef USE_REGEXP 55 bool error() const;
52 inline bool error() { return m_regex == 0; }
53#else // notdef USE_REGEXP
54 inline bool error() { return m_str == ""; }
55#endif // USE_REGEXP
56 56
57private: 57private:
58#ifdef USE_REGEXP 58#ifdef USE_REGEXP