Rudiments: /home/dmuse/src/rudiments/include/rudiments/regularexpression.h Source File

Rudiments

- Main Page
- Classes

regularexpression.h
1 // Copyright (c) 1999-2002 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_REGEXP_H
5 #define RUDIMENTS_REGEXP_H
6
7 #include <rudiments/private/regularexpressionincludes.h>
8
9 class regularexpressionprivate;
10
16 class RUDIMENTS_DLLSPEC regularexpression {
17 public:
18
21 static bool match(const char *str, const char *pattern);
22
23
25 regularexpression();
26
29 regularexpression(const char *pattern);
30
32 ~regularexpression();
33
38 bool compile(const char *pattern);
39
48 bool study();
49
55 bool match(const char *str);
56
59 int32_t getSubstringCount();
60
63 const char *getSubstringStart(int32_t index);
64
67 const char *getSubstringEnd(int32_t index);
68
71 int32_t getSubstringStartOffset(int32_t index);
72
76 int32_t getSubstringEndOffset(int32_t index);
77
78 #include <rudiments/private/regularexpression.h>
79 };
80
81 #endif
regularexpression
Definition: regularexpression.h:16