From 64717eba9de6e3dc60e47c322b5f1c1632ed3b21 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 17 Sep 2026 08:54:32 +0000 Subject: add quotation mark support allow arguments of a command to be quoted --- src/util/string.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/util') diff --git a/src/util/string.cc b/src/util/string.cc index c486a4f..9fad804 100644 --- a/src/util/string.cc +++ b/src/util/string.cc @@ -1,5 +1,7 @@ #include "util/string.h" +#include + using namespace std; namespace ov4 @@ -40,4 +42,12 @@ std::string safe_str(const char *s, const char *fallback) return (s != nullptr) ? s : fallback; } +void print_str_hex(const std::string &s) +{ + for (unsigned char c : s) + { + print("{:02X} ", c); + } +} + } -- cgit v1.3.1-4-g156e