kregexp.h
00001 /* This file is part of the KDE libraries 00002 Copyright (c) 1999 Torben Weis <weis@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 #ifndef __kregexp_h__ 00019 #define __kregexp_h__ 00020 00021 #include "kdelibs_export.h" 00022 00023 class KRegExpPrivate; 00024 00060 class KDECORE_EXPORT KDE_DEPRECATED KRegExp 00061 { 00062 public: 00063 00067 KRegExp(); 00068 00075 KRegExp( const char *_pattern, const char *_mode = "" ); 00076 ~KRegExp(); 00077 00085 bool compile( const char *_pattern, const char *_mode = "" ); 00086 00092 bool match( const char *_string ); 00093 00094 00106 const char *group( int _grp ); 00107 00114 int groupStart( int _grp ); 00122 int groupEnd( int _grp ); 00123 00124 private: 00125 KRegExpPrivate *m_pPrivate; 00126 }; 00127 00128 00129 #endif