mirror of
https://github.com/orange-cpp/omath.git
synced 2026-06-09 00:34:34 +00:00
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:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user