review fixes

This commit is contained in:
2025-08-12 13:57:06 +03:00
parent 7e371132ae
commit d62599fb8e
4 changed files with 436 additions and 333 deletions

View File

@@ -23,10 +23,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef piregularexpression_h
#define piregularexpression_h
#ifndef PIREGULAREXPRESSION_H
#define PIREGULAREXPRESSION_H
#include <pistring.h>
#include "pistring.h"
class PIP_EXPORT PIRegularExpression {
public:
@@ -105,9 +105,11 @@ public:
Matcher match(const PIString & subject, size_t offset = 0);
Matcher match(PIString & subject, size_t offset = 0);
Matcher match(PIString && subject, size_t offset = 0);
Matcher makeMatcher(const PIString & subject, size_t offset = 0);
Matcher makeMatcher(PIString & subject, size_t offset = 0);
Matcher matchIterator(const PIString & subject, size_t offset = 0);
Matcher matchIterator(PIString & subject, size_t offset = 0);
Matcher matchIterator(PIString && subject, size_t offset = 0);
static PIRegularExpression fromGlob(const PIString & pattern, Options opt = None);
static PIRegularExpression fromPOSIX(const PIString & pattern, Options opt = None);
@@ -116,8 +118,8 @@ private:
void convertFrom(const PIString & pattern, uint type, Options opt);
PRIVATE_DECLARATION(PIP_EXPORT)
PIString pat_, subj_own;
PIString pat_;
Options opt_;
};
#endif
#endif // PIREGULAREXPRESSION_H