diff options
author | Peter Powell <petpow@saberuk.com> | 2017-08-17 14:54:49 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-09-03 22:44:33 +0100 |
commit | c0ca5c8d41a71eae4ec132e492b546fa03510871 (patch) | |
tree | 9200feea4cb083dad48ee3c167073421b695ff58 /include/configreader.h | |
parent | e7c829af5941c6a8a303ca75ed9ac47570347e41 (diff) |
Add support for length arguments in getString.
Diffstat (limited to 'include/configreader.h')
-rw-r--r-- | include/configreader.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |