lintel 0.2.0
Loading...
Searching...
No Matches
RegexUtils.h
Go to the documentation of this file.
1#ifndef LINTEL_REGEXUTILS_H
2#define LINTEL_REGEXUTILS_H
3
4#include <cstddef>
5#include <string>
6
7namespace lintel {
17{
18public:
20 static constexpr std::size_t kMaxPatternLength = 128;
21
28 static bool validatePattern(const std::string &pattern, std::string &errorMessage);
29
37 static bool matches(const std::string &pattern, const std::string &text);
38
39private:
41 static bool hasNestedQuantifier(const std::string &pattern);
42};
43
44}// namespace lintel
45#endif// LINTEL_REGEXUTILS_H
Definition RegexUtils.h:17
static constexpr std::size_t kMaxPatternLength
Definition RegexUtils.h:20
static bool matches(const std::string &pattern, const std::string &text)
static bool validatePattern(const std::string &pattern, std::string &errorMessage)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9