From c0ca5c8d41a71eae4ec132e492b546fa03510871 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 17 Aug 2017 14:54:49 +0100 Subject: Add support for length arguments in getString. --- include/configreader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index 8da037e9a..1a0e70080 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -42,7 +42,7 @@ class CoreExport ConfigTag : public refcountbase const int src_line; /** Get the value of an option, using def if it does not exist */ - std::string getString(const std::string& key, const std::string& def = ""); + std::string getString(const std::string& key, const std::string& def = "", size_t minlen = 0, size_t maxlen = UINT32_MAX); /** Get the value of an option, using def if it does not exist */ long getInt(const std::string& key, long def = 0, long min = LONG_MIN, long max = LONG_MAX); /** Get the value of an option, using def if it does not exist */ -- cgit v1.2.3