Index: src/shared/Utils.h |
diff --git a/src/shared/Utils.h b/src/shared/Utils.h |
index 3110b65057d2fbc75410e04c6e12f99558db57e7..cdb4f710509350cc798155dfc2536fea9d13dd21 100644 |
--- a/src/shared/Utils.h |
+++ b/src/shared/Utils.h |
@@ -55,6 +55,14 @@ std::wstring ToUtf16String(const std::string& str); |
std::wstring GetDllDir(); |
std::wstring GetAppDataPath(); |
void ReplaceString(std::wstring& input, const std::wstring placeholder, const std::wstring replacement); |
+std::wstring GetQueryString(const std::wstring& url); |
+/// Splits the string using delimiter |
Eric
2015/02/02 18:41:58
Might as well use a doxygen-style comment here.
sergei
2015/02/12 14:44:06
fixed.
BTW, it's not necessary to have additional
Eric
2015/02/12 17:24:41
Minimizing whitespace is not always a virtue. I fi
|
+void SplitString(const std::wstring& value, wchar_t delimiter, |
+ const std::function<bool(std::wstring::const_iterator begin, std::wstring::const_iterator end)>& tokenHandler); |
+/// For each parameter in the query string the function calls parameterHandler |
+/// until it returns false. |
Eric
2015/02/02 18:41:58
/**
* Applies a function to each name=value pair
sergei
2015/02/12 14:44:06
done
|
+void ProcessQueryStringParameters(const std::wstring& urlQueryString, |
+ const std::function<bool(const std::wstring& name, const std::wstring& value)>& parameterHandler); |
template<class T> |
T TrimString(T text) |