From f17d36dcd30928e83d8f5097a6c05cea5c27abfd Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 4 Oct 2025 18:30:43 +0300 Subject: [PATCH 1/7] Adds pattern scanning functionality Implements a pattern scanner for byte sequence parsing. Introduces `omath::PatternScanner` to parse pattern strings, which represent byte sequences. Adds support for wildcard characters ('?' and '?') to represent optional bytes in the pattern. Includes unit tests for basic read operations to ensure proper functionality. --- .idea/editor.xml | 4 +- include/omath/utility/pattern_scan.hpp | 28 +++++++++++++ source/utility/pattern_scan.cpp | 51 ++++++++++++++++++++++++ tests/general/unit_test_pattern_scan.cpp | 11 +++++ 4 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 include/omath/utility/pattern_scan.hpp create mode 100644 source/utility/pattern_scan.cpp create mode 100644 tests/general/unit_test_pattern_scan.cpp diff --git a/.idea/editor.xml b/.idea/editor.xml index fde5348..373c50f 100644 --- a/.idea/editor.xml +++ b/.idea/editor.xml @@ -201,7 +201,7 @@