From 42e46f99213ea82ae950fa89feb2a4fb824c40a5 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 6 Oct 2025 14:36:00 +0300 Subject: [PATCH] added global header --- include/omath/omath.hpp | 5 ++++- source/utility/pattern_scan.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/omath/omath.hpp b/include/omath/omath.hpp index 0427317..5e39ccf 100644 --- a/include/omath/omath.hpp +++ b/include/omath/omath.hpp @@ -85,4 +85,7 @@ // Reverse Engineering #include "omath/rev_eng/external_rev_object.hpp" -#include "omath/rev_eng/internal_rev_object.hpp" \ No newline at end of file +#include "omath/rev_eng/internal_rev_object.hpp" + +// Utility +#include "omath/utility/pattern_scan.hpp" \ No newline at end of file diff --git a/source/utility/pattern_scan.cpp b/source/utility/pattern_scan.cpp index ff593f7..2c0e328 100644 --- a/source/utility/pattern_scan.cpp +++ b/source/utility/pattern_scan.cpp @@ -10,7 +10,7 @@ namespace omath std::span::const_iterator PatternScanner::scan_for_pattern(const std::span& range, const std::string_view& pattern) { - return scan_for_pattern(range.begin(), range.end(), pattern); + return scan_for_pattern(range.cbegin(), range.cend(), pattern); } std::expected>, PatternScanError> PatternScanner::parse_pattern(const std::string_view& pattern_string)