#include <gimbal_pattern.hpp>
OO C++ binding object around GblPattern.
gbl::Pattern represents a compiled regular expression string, providing an API around the pattern matching/regex engine.
- See also
- GblPattern
Definition at line 31 of file gimbal_pattern.hpp.
◆ Pattern() [1/4]
gbl::Pattern::Pattern |
( |
const char * |
pRegExp | ) |
|
|
inlinenoexcept |
◆ Pattern() [2/4]
gbl::Pattern::Pattern |
( |
const GblPattern * |
pPattern | ) |
|
|
inlinenoexcept |
◆ Pattern() [3/4]
gbl::Pattern::Pattern |
( |
const Pattern & |
rhs | ) |
|
|
inlinenoexcept |
Definition at line 42 of file gimbal_pattern.hpp.
42 :
43 pPattern_(GblPattern_ref(rhs.pPattern_)) {}
◆ Pattern() [4/4]
gbl::Pattern::Pattern |
( |
Pattern && |
rhs | ) |
|
|
inlinenoexcept |
Definition at line 45 of file gimbal_pattern.hpp.
45 :
46 pPattern_(rhs.pPattern_)
47 {
48 rhs.pPattern_ = nullptr;
49 }
◆ ~Pattern()
gbl::Pattern::~Pattern |
( |
| ) |
|
|
inlinenoexcept |
◆ isValid()
bool gbl::Pattern::isValid |
( |
| ) |
const |
|
inlinenoexcept |
◆ refCount()
std::size_t gbl::Pattern::refCount |
( |
| ) |
const |
|
inlinenoexcept |
◆ bytes()
std::size_t gbl::Pattern::bytes |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator const GblPattern *()
gbl::Pattern::operator const GblPattern * |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=() [1/4]
Pattern & gbl::Pattern::operator= |
( |
const char * |
pPattern | ) |
|
|
inlinenoexcept |
Definition at line 65 of file gimbal_pattern.hpp.
65 {
66 GblPattern_unref(pPattern_);
67 pPattern_ = GblPattern_create(pPattern);
68 return *this;
69 }
◆ operator=() [2/4]
Definition at line 71 of file gimbal_pattern.hpp.
71 {
72 GblPattern_unref(pPattern_);
73 pPattern_ = pPattern;
74 return *this;
75 }
◆ operator=() [3/4]
Definition at line 77 of file gimbal_pattern.hpp.
77 {
78 GblPattern_unref(pPattern_);
79 pPattern_ = GblPattern_ref(rhs.pPattern_);
80 return *this;
81 }
◆ operator=() [4/4]
Definition at line 83 of file gimbal_pattern.hpp.
83 {
84 GblPattern_unref(pPattern_);
85 pPattern_ = rhs.pPattern_;
86 rhs.pPattern_ = nullptr;
87 return *this;
88 }
◆ match()
bool gbl::Pattern::match |
( |
const char * |
pString, |
|
|
GblStringView * |
pView = nullptr , |
|
|
int * |
pCount = nullptr |
|
) |
| const |
|
inlinenoexcept |
Definition at line 90 of file gimbal_pattern.hpp.
93 {
94 return GblPattern_match(*this, pString, pView, pCount);
95 }
◆ matchNot()
bool gbl::Pattern::matchNot |
( |
const char * |
pString, |
|
|
GblStringView * |
pView = nullptr , |
|
|
int * |
pCount = nullptr |
|
) |
| const |
|
inlinenoexcept |
Definition at line 97 of file gimbal_pattern.hpp.
100 {
101 return GblPattern_matchNot(*this, pString, pView, pCount);
102 }
◆ matchExact()
Definition at line 104 of file gimbal_pattern.hpp.
104 {
105 return GblPattern_matchExact(*this, pString);
106 }
◆ matchCount()
Definition at line 108 of file gimbal_pattern.hpp.
108 {
109 return GblPattern_matchCount(*this, pString);
110 }
◆ operator<<
The documentation for this class was generated from the following file: