aboutsummaryrefslogtreecommitdiff
path: root/src/RegExp.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-28 06:15:06 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-28 06:15:06 (GMT)
commit32eb2a148ea7a257a058658af36e9f8c801a524a (patch)
tree1a540358fe1e9afb8566b0bc5a9f134ded2a2f7f /src/RegExp.hh
parent39224b0142078376d2bd39789b4de24a18377cf0 (diff)
downloadfluxbox-32eb2a148ea7a257a058658af36e9f8c801a524a.zip
fluxbox-32eb2a148ea7a257a058658af36e9f8c801a524a.tar.bz2
move RegExp to FbTk
Diffstat (limited to 'src/RegExp.hh')
-rw-r--r--src/RegExp.hh66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/RegExp.hh b/src/RegExp.hh
deleted file mode 100644
index e3d0536..0000000
--- a/src/RegExp.hh
+++ /dev/null
@@ -1,66 +0,0 @@
1// RegExp.hh for Fluxbox Window Manager
2// Copyright (c) 2002 Xavier Brouckaert
3// Copyright (c) 2003 Henrik Kinnunen (fluxgen at fluxbox dot org)
4// and Simon Bowden (rathnor at users.sourceforge.net)
5//
6// Permission is hereby granted, free of charge, to any person obtaining a
7// copy of this software and associated documentation files (the "Software"),
8// to deal in the Software without restriction, including without limitation
9// the rights to use, copy, modify, merge, publish, distribute, sublicense,
10// and/or sell copies of the Software, and to permit persons to whom the
11// Software is furnished to do so, subject to the following conditions:
12//
13// The above copyright notice and this permission notice shall be included in
14// all copies or substantial portions of the Software.
15//
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22// DEALINGS IN THE SOFTWARE.
23
24// $Id$
25
26#ifndef REGEXP_HH
27#define REGEXP_HH
28
29#include "NotCopyable.hh"
30
31#ifdef HAVE_CONFIG_H
32#include "config.h"
33#endif // HAVE_CONFIG_H
34
35#include <string>
36
37/*
38 * If USE_REGEXP isn't defined, then we match just using simple string equality
39 */
40
41#ifdef USE_REGEXP
42#include <sys/types.h>
43#include <regex.h>
44#endif // USE_REGEXP
45
46class WinClient;
47
48class RegExp:private FbTk::NotCopyable {
49public:
50 RegExp(const std::string &str, bool full_match = true);
51 ~RegExp();
52
53 bool match(const std::string &str) const;
54
55 bool error() const;
56
57private:
58#ifdef USE_REGEXP
59 regex_t* m_regex;
60#else // notdef USE_REGEXP
61 std::string m_str;
62#endif // USE_REGEXP
63
64};
65
66#endif // REGEXP_HH