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

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
28 regularexpression();
29
33 regularexpression(const char *pattern);
34
36 ~regularexpression();
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
regularexpression
Definition: regularexpression.h:14
regularexpression::regularexpression
regularexpression()
regularexpression::study
bool study()
regularexpression::~regularexpression
~regularexpression()
regularexpression::regularexpression
regularexpression(const char *pattern)
regularexpression::setPattern
bool setPattern(const char *pattern)
regularexpression::match
bool match(const char *str, size_t length)
regularexpression::match
static bool match(const char *str, size_t length, const char *pattern)
regularexpression::getSubstringStart
const char * getSubstringStart(int32_t index)
regularexpression::getPattern
const char * getPattern() const
regularexpression::getSubstringCount
int32_t getSubstringCount()
regularexpression::getSubstringStartOffset
int32_t getSubstringStartOffset(int32_t index)
regularexpression::getSubstringEndOffset
int32_t getSubstringEndOffset(int32_t index)
regularexpression::match
bool match(const char *str)
regularexpression::match
static bool match(const char *str, const char *pattern)
regularexpression::getSubstringEnd
const char * getSubstringEnd(int32_t index)