Implement fmt::to_lower
It was strangely removed...
This commit is contained in:
@@ -423,6 +423,14 @@ std::string fmt::to_upper(const std::string& string)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string fmt::to_lower(const std::string& string)
|
||||||
|
{
|
||||||
|
std::string result;
|
||||||
|
result.resize(string.size());
|
||||||
|
std::transform(string.begin(), string.end(), result.begin(), ::tolower);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
bool fmt::match(const std::string& source, const std::string& mask)
|
bool fmt::match(const std::string& source, const std::string& mask)
|
||||||
{
|
{
|
||||||
std::size_t source_position = 0, mask_position = 0;
|
std::size_t source_position = 0, mask_position = 0;
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ namespace fmt
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string to_upper(const std::string& string);
|
std::string to_upper(const std::string& string);
|
||||||
|
std::string to_lower(const std::string& string);
|
||||||
|
|
||||||
bool match(const std::string& source, const std::string& mask);
|
bool match(const std::string& source, const std::string& mask);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user