aboutsummaryrefslogtreecommitdiff
path: root/include/clientprotocol.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-02 19:22:40 +0000
committerGravatar Sadie Powell2023-01-02 19:22:40 +0000
commit6d6ccfd24bc247545992279b9c9bb5844ccbc9c9 (patch)
tree5862c3fd16bbd41e339ad2ae987b700975bb6b56 /include/clientprotocol.h
parentRelease v4.0.0 alpha 18. (diff)
Add a method for unescaping tags.
Diffstat (limited to 'include/clientprotocol.h')
-rw-r--r--include/clientprotocol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 6e5eb56d8..ebcb35ffc 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -282,11 +282,16 @@ public:
typedef std::vector<Param> ParamList;
- /** Escapes a value for use in a tag value.
+ /** Escapes a value to the tag format.
* @param value The value to escape.
*/
static std::string EscapeTag(const std::string& value);
+ /** Unescapes a value from the tag format.
+ * @param value The value to unescape.
+ */
+ static std::string UnescapeTag(const std::string& value);
+
private:
typedef std::vector<std::pair<SerializedInfo, SerializedMessage>> SerializedList;