mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
RPCN 0.9 (#15002)
This commit is contained in:
parent
bc141831f7
commit
b6e9746198
15 changed files with 2254 additions and 1770 deletions
|
|
@ -652,6 +652,11 @@ std::string fmt::to_lower(std::string_view string)
|
|||
return result;
|
||||
}
|
||||
|
||||
std::string fmt::truncate(std::string_view src, usz length)
|
||||
{
|
||||
return std::string(src.begin(), src.begin() + std::min(src.size(), length));
|
||||
}
|
||||
|
||||
bool fmt::match(const std::string& source, const std::string& mask)
|
||||
{
|
||||
usz source_position = 0, mask_position = 0;
|
||||
|
|
|
|||
|
|
@ -178,6 +178,8 @@ namespace fmt
|
|||
std::string to_upper(std::string_view string);
|
||||
std::string to_lower(std::string_view string);
|
||||
|
||||
std::string truncate(std::string_view src, usz length);
|
||||
|
||||
bool match(const std::string& source, const std::string& mask);
|
||||
|
||||
struct buf_to_hexstring
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue