diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-06-04 16:40:57 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-06-04 16:40:57 +0200 |
commit | dd1533b315bda37e1d43ebe0fb8bde87381c6e66 (patch) | |
tree | 04f14c77c6335ee0ad277643e98ea45931e35074 /src/common/Utilities/Util.h | |
parent | 3f02f9edcd68548bc6ae0625d706452f626a0b03 (diff) |
Core/Utils: Added additional argument to Tokenizer class to make it behave like strtok - not returning empty tokens in case of multiple consecutive separators in input string
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index 7f0fc907964..ff737eb33bd 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -54,7 +54,7 @@ public: typedef StorageType::const_reference const_reference; public: - Tokenizer(const std::string &src, char const sep, uint32 vectorReserve = 0); + Tokenizer(const std::string &src, char const sep, uint32 vectorReserve = 0, bool keepEmptyStrings = true); ~Tokenizer() { delete[] m_str; } const_iterator begin() const { return m_storage.begin(); } |