Rudiments
regularexpression.h
1 // Copyright (c) 1999-2018 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 
14 class RUDIMENTS_DLLSPEC regularexpression {
15  public:
16 
19  static bool match(const char *str, size_t length,
20  const char *pattern);
21 
24  static bool match(const char *str, const char *pattern);
25 
26 
29 
33  regularexpression(const char *pattern);
34 
37 
42  bool setPattern(const char *pattern);
43 
45  const char *getPattern() const;
46 
55  bool study();
56 
62  bool match(const char *str);
63 
70  bool match(const char *str, size_t length);
71 
74  int32_t getSubstringCount();
75 
78  const char *getSubstringStart(int32_t index);
79 
82  const char *getSubstringEnd(int32_t index);
83 
86  int32_t getSubstringStartOffset(int32_t index);
87 
91  int32_t getSubstringEndOffset(int32_t index);
92 
93  #include <rudiments/private/regularexpression.h>
94 };
95 
96 #endif
Definition: regularexpression.h:14
regularexpression(const char *pattern)
bool setPattern(const char *pattern)
bool match(const char *str, size_t length)
static bool match(const char *str, size_t length, const char *pattern)
const char * getSubstringStart(int32_t index)
const char * getPattern() const
int32_t getSubstringCount()
int32_t getSubstringStartOffset(int32_t index)
int32_t getSubstringEndOffset(int32_t index)
bool match(const char *str)
static bool match(const char *str, const char *pattern)
const char * getSubstringEnd(int32_t index)