|
|
@ -33,6 +33,7 @@
|
|
|
|
#define PCRE2_CODE_UNIT_WIDTH 8
|
|
|
|
#define PCRE2_CODE_UNIT_WIDTH 8
|
|
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
@ -143,13 +144,12 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
std::optional<found> ignore_error()
|
|
|
|
std::optional<found> ignore_error()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return this->match(
|
|
|
|
return this->match([](found fo) { return std::make_optional(fo); },
|
|
|
|
[](found fo) { return std::make_optional(fo); },
|
|
|
|
[](not_found) { return std::nullopt; },
|
|
|
|
[](not_found) { return std::nullopt; },
|
|
|
|
[](error err) {
|
|
|
|
[](error err) {
|
|
|
|
handle_error(err);
|
|
|
|
handle_error(err);
|
|
|
|
return std::nullopt;
|
|
|
|
return std::nullopt;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|