Rudiments
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 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class regularexpressionprivate;
14 
20 class RUDIMENTS_DLLSPEC regularexpression {
21  public:
22 
25  static bool match(const char *str, const char *pattern);
26 
27 
30 
33  regularexpression(const char *pattern);
34 
37 
42  bool compile(const char *pattern);
43 
52  bool study();
53 
59  bool match(const char *str);
60 
63  int32_t getSubstringCount();
64 
67  char *getSubstringStart(int32_t index);
68 
71  char *getSubstringEnd(int32_t index);
72 
75  int32_t getSubstringStartOffset(int32_t index);
76 
80  int32_t getSubstringEndOffset(int32_t index);
81 
82  #include <rudiments/private/regularexpression.h>
83 };
84 
85 #ifdef RUDIMENTS_NAMESPACE
86 }
87 #endif
88 
89 #endif