summaryrefslogtreecommitdiffstats
path: root/source/StringUtils.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-25 16:24:51 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-25 16:24:51 +0200
commitba5b6ca75187e18942c463f7300b49061ebdc183 (patch)
tree99eb3efbb60791ed19d64bab32ee86444ee1fc46 /source/StringUtils.h
parentFixed the Log altogether (doesn't use NULL-to-va_list assignment, compiles for RaspberryPi) (diff)
downloadcuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.tar
cuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.tar.gz
cuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.tar.bz2
cuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.tar.lz
cuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.tar.xz
cuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.tar.zst
cuberite-ba5b6ca75187e18942c463f7300b49061ebdc183.zip
Diffstat (limited to '')
-rw-r--r--source/StringUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/StringUtils.h b/source/StringUtils.h
index 8805c1d99..262c01e49 100644
--- a/source/StringUtils.h
+++ b/source/StringUtils.h
@@ -15,6 +15,7 @@
typedef std::string AString;
typedef std::vector<AString> AStringVector;
+typedef std::list<AString> AStringList;
@@ -41,6 +42,10 @@ extern int NoCaseCompare(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);
+/// Returns the list of all items in the specified directory (files, folders, nix pipes, whatever's there)
+extern AStringList GetDirectoryContents(const char * a_Directory);
+
+
// If you have any other string helper functions, declare them here