summaryrefslogtreecommitdiff
path: root/security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h')
-rw-r--r--security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h b/security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h
index d06cb28926e7..e60c6542e5a4 100644
--- a/security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h
+++ b/security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h
@@ -1,14 +1,30 @@
---- src/shared_modules/utils/stringHelper.h 2025-01-08 01:15:05.000000000 -0800
-+++ src/shared_modules/utils/stringHelper.h 2025-01-14 21:32:26.067988000 -0800
+--- src/shared_modules/utils/stringHelper.h 2025-09-23 06:59:40.000000000 -0700
++++ src/shared_modules/utils/stringHelper.h 2025-10-16 14:04:29.575997000 -0700
@@ -19,6 +19,7 @@
#include <sstream>
#include <string>
#include <vector>
+#include <map>
+ #if __cplusplus >= 201703L
+ #include <string_view>
+ #endif
+@@ -150,6 +151,15 @@
+ return haystack;
+ }
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-function"
-@@ -254,6 +255,17 @@
++ static std::string join(const std::vector<std::string>& vec, const std::string& delimiter) {
++ std::ostringstream joinResult;
++ for (size_t i = 0; i < vec.size(); ++i) {
++ joinResult << vec[i];
++ if (i != vec.size() - 1) joinResult << delimiter;
++ }
++ return joinResult.str();
++ }
++
+ static std::vector<std::string> split(const std::string& str, const char delimiter)
+ {
+ std::vector<std::string> tokens;
+@@ -257,6 +267,17 @@
// LCOV_EXCL_STOP
return ret;