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.
This commit is contained in:
2025-10-04 18:30:43 +03:00
parent 4e0c74a256
commit 544fa313c1
4 changed files with 92 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
//
// Created by Vlad on 10/4/2025.
//
#include "gtest/gtest.h"
#include <omath/utility/pattern_scan.hpp>
#include <source_location>
TEST(unit_test_pattern_scan, read_test)
{
std::ignore = omath::PatternScanner::parse_pattern("FF ? ?? E9");
}