Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdecore
tdecore
tdecore
kregpriv.h
1
/* This file is part of the KDE libraries
2
Copyright (c) 1999 Torben Weis <weis@kde.org>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
7
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
12
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
17
*/
18
#ifndef __kreg_private_h__
19
#define __kreg_private_h__
20
21
extern
"C"
{
// bug with some libc5 distributions
22
#include <regex.h>
23
}
24
25
class
KRegExpDataPtr;
26
33
class
KRegExpPrivate
34
{
35
public
:
36
KRegExpPrivate
();
37
KRegExpPrivate
(
const
char
*_pattern,
const
char
*_mode =
""
);
38
~KRegExpPrivate
();
39
40
bool
compile(
const
char
*_pattern,
const
char
*_mode =
""
);
41
42
bool
match(
const
char
*_string );
43
const
char
*group(
int
_grp );
44
int
groupStart(
int
_grp );
45
int
groupEnd(
int
_grp );
46
47
protected
:
48
regex_t m_pattern;
49
regmatch_t m_matches[ 10 ];
50
char
* m_strMatches[10];
51
bool
m_bInit;
52
53
private
:
54
KRegExpDataPtr *d;
55
};
56
57
#endif
KRegExpPrivate
Used internally by KRegExp.
Definition:
kregpriv.h:34
tdecore
Skip menu "tdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdecore
Skip menu "tdecore"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet