[ROCProfiler SDK] Removing regex from the tool and output libraries (#170)

* Removing regex from the tool

* Adding alternative for regex regarding  handling

* Adding ROCpd

* Removing regex include

* Apply suggestion from @jomadsen_amdeng

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>

* Apply suggestion from @jomadsen_amdeng

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>

* Apply suggestion from @jomadsen_amdeng

Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>

* Adding Standalone Regex Header File

* Fixing Regex to handle grouping and

* Fixing Regex to handle grouping and

* Fixing Regex to handle grouping and

* Formatting Fix

* Update rocprofiler-sdk-restrictions.yml

* Separating regex.hpp to source and header & Adding Tests for parity with std::regex

* Update regex.cpp

* Using snake_case for naming and addressing some comments

* Adding more tests & README for regex implementation

* Updating rocprofiler sdk restrictions workflow

* Updating more tests & README for regex implementation

* Update README_regex.md

* Rename README_regex.md to README.md

---------

Co-authored-by: Ammar ELWazir <aelwazir@amd.com>
Co-authored-by: Elwazir, Ammar <Ammar.Elwazir@amd.com>
Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com>
Cette révision appartient à :
systems-assistant[bot]
2025-08-27 12:30:12 -05:00
révisé par GitHub
Parent 7055fbfc7f
révision 2e50d88fe6
14 fichiers modifiés avec 2127 ajouts et 44 suppressions
+3 -5
Voir le fichier
@@ -67,7 +67,6 @@
#include <initializer_list>
#include <limits>
#include <map>
#include <regex>
#include <thread>
#include <type_traits>
#include <unordered_map>
@@ -200,10 +199,9 @@ get_uuid()
auto
replace_uuid(std::string_view inp)
{
const auto& _repl = get_uuid();
return std::regex_replace(std::string{inp},
std::regex{"\\{\\{uuid\\}\\}"},
(_repl.empty()) ? std::string{} : fmt::format("_{}", _repl));
const auto& _repl = get_uuid();
const auto replacement = (_repl.empty()) ? std::string{} : fmt::format("_{}", _repl);
return replace_all(std::string{inp}, std::string_view{"{{uuid}}"}, replacement);
}
auto