summaryrefslogtreecommitdiffstats
path: root/source/StringUtils.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-29 17:30:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-29 17:30:05 +0200
commit7b75aaea7c538f61518a60fe4af363383020e0bc (patch)
treea4ee92f7763ca9931e6c1e5b96a2b5275206ab46 /source/StringUtils.cpp
parentAdded a function that allows you to change the /back coordinates. (diff)
downloadcuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.tar
cuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.tar.gz
cuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.tar.bz2
cuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.tar.lz
cuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.tar.xz
cuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.tar.zst
cuberite-7b75aaea7c538f61518a60fe4af363383020e0bc.zip
Diffstat (limited to 'source/StringUtils.cpp')
-rw-r--r--source/StringUtils.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/StringUtils.cpp b/source/StringUtils.cpp
index da809c5a4..b55ce51e6 100644
--- a/source/StringUtils.cpp
+++ b/source/StringUtils.cpp
@@ -569,26 +569,3 @@ AString & CreateHexDump(AString & a_Out, const void * a_Data, int a_Size, int a_
-
-AString Trim(const AString & a_Text)
-{
- if (a_Text.empty())
- {
- return "";
- }
- size_t Beginning = a_Text.find_first_not_of(" \r\n\t");
- if (Beginning == AString::npos)
- {
- Beginning = 0;
- }
- size_t End = a_Text.find_last_not_of(" \r\n\t");
- if (End == AString::npos)
- {
- End = a_Text.length();
- }
- return a_Text.substr(Beginning, End - Beginning + 1);
-}
-
-
-
-