Changeset b827d65c5f1d369791046375a8741586c65971ee
- Timestamp:
- 01/06/07 23:53:50 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- 7065283bf183cb0cec0da47351d94b259e8e5f42
- Children:
- b70179db4d34c139c34796b2ad20ecb4f9fcf69d
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:53:50Z+0000
- Message:
-
[project @ Removed dependency on GNU regex library]
Original author: Armin Burgmeier <armin@…>
Date: 2005-11-15 18:53:42+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2eff7d5
|
rb827d65
|
|
| | 1 | /* gobby - A GTKmm driven libobby client |
| | 2 | * Copyright (C) 2005 0x539 dev group |
| | 3 | * |
| | 4 | * This program is free software; you can redistribute it and/or |
| | 5 | * modify it under the terms of the GNU General Public |
| | 6 | * License as published by the Free Software Foundation; either |
| | 7 | * version 2 of the License, or (at your option) any later version. |
| | 8 | * |
| | 9 | * This program is distributed in the hope that it will be useful, |
| | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | 12 | * General Public License for more details. |
| | 13 | * |
| | 14 | * You should have received a copy of the GNU General Public |
| | 15 | * License along with this program; if not, write to the Free |
| | 16 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | 17 | */ |
| | 18 | |
| | 19 | #ifndef _GOBBY_REGEX_HPP_ |
| | 20 | #define _GOBBY_REGEX_HPP_ |
| | 21 | |
| | 22 | // Contributed by Benjamin Herr, <ben@0x539.de>. Not used for now. |
| | 23 | |
| 1 | 24 | #include <vector> |
| 2 | 25 | #include <memory> |
| … |
… |
|
| 154 | 177 | void* m_regex; |
| 155 | 178 | }; |
| | 179 | |
| | 180 | #endif // _GOBBY_REGEX_HPP_ |
-
|
r2eff7d5
|
rb827d65
|
|
| | 1 | /* gobby - A GTKmm driven libobby client |
| | 2 | * Copyright (C) 2005 0x539 dev group |
| | 3 | * |
| | 4 | * This program is free software; you can redistribute it and/or |
| | 5 | * modify it under the terms of the GNU General Public |
| | 6 | * License as published by the Free Software Foundation; either |
| | 7 | * version 2 of the License, or (at your option) any later version. |
| | 8 | * |
| | 9 | * This program is distributed in the hope that it will be useful, |
| | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | 12 | * General Public License for more details. |
| | 13 | * |
| | 14 | * You should have received a copy of the GNU General Public |
| | 15 | * License along with this program; if not, write to the Free |
| | 16 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | 17 | */ |
| | 18 | |
| | 19 | // Contributed by Benjamin Herr, <ben@0x539.de>. Not used for now. |
| | 20 | |
| 1 | 21 | #include <glib/gunicode.h> |
| 2 | 22 | #include <regex.h> |
| … |
… |
|
| 54 | 74 | */ |
| 55 | 75 | |
| | 76 | #if 0 |
| 56 | 77 | namespace |
| 57 | 78 | { |
| … |
… |
|
| 135 | 156 | return true; |
| 136 | 157 | } |
| | 158 | #endif |
| | 159 | |
| | 160 | // Simple stubs to not to depend on the GNU regex library |
| | 161 | regex::compile_error::compile_error(void* regex, int value): |
| | 162 | std::runtime_error("You will never see this") |
| | 163 | { |
| | 164 | throw std::logic_error("regex::compile_error::compile_error"); |
| | 165 | } |
| | 166 | |
| | 167 | regex::regex(const char* regex_string, compile_options cflags) |
| | 168 | { |
| | 169 | } |
| | 170 | |
| | 171 | regex::~regex() |
| | 172 | { |
| | 173 | } |
| | 174 | |
| | 175 | void regex::reset(const char* regex_string, compile_options cflags) |
| | 176 | { |
| | 177 | throw std::logic_error("regex::reset"); |
| | 178 | } |
| | 179 | |
| | 180 | bool regex::match(const char* string, match_options eflags) |
| | 181 | { |
| | 182 | throw std::logic_error("regex::match"); |
| | 183 | return false; |
| | 184 | } |
| | 185 | |
| | 186 | bool regex::find(const char* string, |
| | 187 | match_positions matches, |
| | 188 | match_options eflags) |
| | 189 | { |
| | 190 | throw std::logic_error("regex::find"); |
| | 191 | return false; |
| | 192 | } |
| | 193 | |
| | 194 | bool regex::find(const char* string, std::pair<size_t, size_t>& matchpos, |
| | 195 | regex::match_options eflags) |
| | 196 | { |
| | 197 | throw std::logic_error("regex::find"); |
| | 198 | return false; |
| | 199 | } |