mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Remove pointless overloads of iequals, implicitly converts to views
This commit is contained in:
@@ -172,11 +172,6 @@ namespace OpenRCT2::String
|
||||
return equalsImpl(a, b, false);
|
||||
}
|
||||
|
||||
bool equals(const u8string& a, const u8string& b)
|
||||
{
|
||||
return equalsImpl(a, b, false);
|
||||
}
|
||||
|
||||
bool equals(const utf8* a, const utf8* b, bool ignoreCase)
|
||||
{
|
||||
if (a == b)
|
||||
@@ -197,11 +192,6 @@ namespace OpenRCT2::String
|
||||
return equalsImpl(a, b, true);
|
||||
}
|
||||
|
||||
bool iequals(const u8string& a, const u8string& b)
|
||||
{
|
||||
return equalsImpl(a, b, true);
|
||||
}
|
||||
|
||||
bool iequals(const utf8* a, const utf8* b)
|
||||
{
|
||||
if (a == b)
|
||||
|
||||
@@ -52,10 +52,8 @@ namespace OpenRCT2::String
|
||||
int32_t compare(const utf8* a, const utf8* b, bool ignoreCase = false);
|
||||
|
||||
bool equals(u8string_view a, u8string_view b);
|
||||
bool equals(const u8string& a, const u8string& b);
|
||||
bool equals(const utf8* a, const utf8* b, bool ignoreCase = false);
|
||||
bool iequals(u8string_view a, u8string_view b);
|
||||
bool iequals(const u8string& a, const u8string& b);
|
||||
bool iequals(const utf8* a, const utf8* b);
|
||||
|
||||
bool startsWith(std::string_view str, std::string_view match, bool ignoreCase = false);
|
||||
|
||||
Reference in New Issue
Block a user