mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Implement fmt::to_lower
It was strangely removed...
This commit is contained in:
parent
eae78a8711
commit
cfa9b163fd
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user