diff options
author | 2015-07-20 08:11:41 +0200 | |
---|---|---|
committer | 2015-07-20 08:11:41 +0200 | |
commit | 4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch) | |
tree | 55eccacfca0e69435d0d4e6615205310ca11f271 /src/lib/util/corestr.c | |
parent | d132946c6f45aa8d271c6180e86f72dd08243048 (diff) | |
parent | 229785f695b26c702c8490792611f59d0366a933 (diff) |
Merge pull request #5 from mamedev/master
Sync to base master
Diffstat (limited to 'src/lib/util/corestr.c')
-rw-r--r-- | src/lib/util/corestr.c | 22 |
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(); |