aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-11-30 03:26:38 +0000
committerGravatar Sadie Powell2022-11-30 03:26:38 +0000
commitbfd4c5d44eda648ae2fb57d8b9db85cf952360ac (patch)
tree9289df1efeec708bfaa5cceb43da6d2fb18a0628 /include
parentMake it easier to add tags to a numeric. (diff)
Add a method for quickly escaping a tag value.
Diffstat (limited to 'include')
-rw-r--r--include/clientprotocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index f65334c43..b73370ea1 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -282,6 +282,11 @@ public:
typedef std::vector<Param> ParamList;
+ /** Escapes a value for use in a tag value.
+ * @param value The value to escape.
+ */
+ static std::string CoreExport EscapeTag(const std::string& value);
+
private:
typedef std::vector<std::pair<SerializedInfo, SerializedMessage>> SerializedList;