summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/corestr.c')
-rw-r--r--src/lib/util/corestr.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/util/corestr.c b/src/lib/util/corestr.c
index 8a78a672ac6..b4a75a3bc48 100644
--- a/src/lib/util/corestr.c
+++ b/src/lib/util/corestr.c
@@ -294,12 +294,34 @@ std::string strmakeupper(std::string& str)
return str;
}
+/**
+ * @fn std::string strmakelower(std::string& str)
+ *
+ * @brief Strmakelowers the given string.
+ *
+ * @param [in,out] str The string.
+ *
+ * @return A std::string.
+ */
+
std::string strmakelower(std::string& str)
{
std::transform(str.begin(), str.end(), str.begin(), ::tolower);
return str;
}
+/**
+ * @fn int strreplace(std::string &str, const std::string& search, const std::string& replace)
+ *
+ * @brief Strreplaces.
+ *
+ * @param [in,out] str The string.
+ * @param search The search.
+ * @param replace The replace.
+ *
+ * @return An int.
+ */
+
int strreplace(std::string &str, const std::string& search, const std::string& replace)
{
int searchlen = search.length();