Replace boost::replace_all and boost::ireplace_all
Replaced with custom functions using std::string_view to remove Boost
dependency and reduce template instantiation, keeping original
behavior.
Tested: added UT and verified all tests passed
Change-Id: I82cc238c800c7780dc50b6a40445657931bf5250
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/src/utils.hpp b/src/utils.hpp
index 99ff236..5ec882c 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -97,6 +97,12 @@
 
 std::vector<std::string> split(std::string_view str, char delim);
 
+void iReplaceAll(std::string& str, std::string_view search,
+                 std::string_view replace);
+
+void replaceAll(std::string& str, std::string_view search,
+                std::string_view replace);
+
 template <typename T>
 std::from_chars_result fromCharsWrapper(const std::string_view& str, T& out,
                                         bool& fullMatch, int base = 10)