X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fstringfunctions.h;h=bf5119dffbf671fab1dc2fd42fb21d3bfcec670f;hb=4430e7762844c66428b6f822288beb71b7f82b95;hp=5222ca10bfe43d8783ced788b9d2f1fb99ac6b37;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/include/stringfunctions.h b/include/stringfunctions.h index 5222ca1..bf5119d 100644 --- a/include/stringfunctions.h +++ b/include/stringfunctions.h @@ -8,6 +8,12 @@ namespace StringFunctions { +inline const bool Convert(const std::string &input, std::string &output) +{ + output=input; + return true; +} + /** \brief Converts a string into any other type \param input[in] string to convert @@ -85,6 +91,13 @@ std::string TrimWhitespace(const std::string &str); void UpperCase(const std::string &str, std::string &output); /** + \brief Converts a string to lower case + \param str string to convert to lower case + \param[out] string converted to lower case +*/ +void LowerCase(const std::string &str, std::string &output); + +/** \brief Decodes a URI encoded string \param aSrc string that is URI encoded \return URI decoded input string