mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +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:
11
tests/general/unit_test_pattern_scan.cpp
Normal file
11
tests/general/unit_test_pattern_scan.cpp
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user