summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2021-08-23 10:35:03 +0200
committerAlexander Harkness <me@bearbin.net>2021-08-23 10:35:03 +0200
commit4b8952e438da8e57d6442a0b7451dac8060f154b (patch)
tree2dfa6aef09599c9e7b768a135abc5fc17c9bf174 /src/StringUtils.h
parentFix typo in message send when getting achievements (#5282) (diff)
downloadcuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.tar
cuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.tar.gz
cuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.tar.bz2
cuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.tar.lz
cuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.tar.xz
cuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.tar.zst
cuberite-4b8952e438da8e57d6442a0b7451dac8060f154b.zip
Diffstat (limited to '')
-rw-r--r--src/StringUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h
index 94e44c3f6..cd232bb68 100644
--- a/src/StringUtils.h
+++ b/src/StringUtils.h
@@ -90,6 +90,9 @@ extern size_t RateCompareString(const AString & s1, const AString & s2);
/** Replaces each occurence of iNeedle in iHayStack with iReplaceWith */
extern void ReplaceString(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith); // tolua_export
+/** Replaces each occurence of iNeedle in iHayStack with iReplaceWith, after URL-encoding iReplaceWith */
+extern void ReplaceURL(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith);
+
/** Converts a stream of BE shorts into UTF-8 string; returns a_UTF8. */
extern AString & RawBEToUTF8(const char * a_RawData, size_t a_NumShorts, AString & a_UTF8);