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
14class RUDIMENTS_DLLSPEC regularexpression : public object {
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
34
37
42 bool setPattern(const char *pattern);
43
45 const char *getPattern();
46
55 bool study();
56
62 bool match(const char *str);
63
70 bool match(const char *str, size_t length);
71
75
79
83
87
92
93 #include <rudiments/private/regularexpression.h>
94};
95
96#endif
Definition avltree.h:11
Definition object.h:10
Definition regularexpression.h:14
regularexpression(const char *pattern)
bool setPattern(const char *pattern)
bool match(const char *str, size_t length)
const char * getPattern()
const char * getSubstringEnd(int32_t index)
static bool match(const char *str, size_t length, const char *pattern)
int32_t getSubstringCount()
int32_t getSubstringStartOffset(int32_t index)
int32_t getSubstringEndOffset(int32_t index)
bool match(const char *str)
const char * getSubstringStart(int32_t index)
static bool match(const char *str, const char *pattern)