diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-10-15 17:25:28 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-02 00:36:04 -0500 |
| commit | b073b5303b3c5e84fb01cacaf761719e6ce92140 (patch) | |
| tree | 35489e99391a947b9e959afb66f5dc0eae119db6 /Source/Core/Common/StringUtil.h | |
| parent | 249f999c6a11aef91c5541b5f1736cb1df7ea0b5 (diff) | |
StringUtil: Fix many clang-tidy warnings.
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 7d964199aa..c635155d5b 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -201,13 +201,13 @@ std::string PathToFileName(std::string_view path); void StringPopBackIf(std::string* s, char c); size_t StringUTF8CodePointCount(std::string_view str); -std::string CP1252ToUTF8(std::string_view str); -std::string SHIFTJISToUTF8(std::string_view str); -std::string UTF8ToSHIFTJIS(std::string_view str); -std::string WStringToUTF8(std::wstring_view str); +std::string CP1252ToUTF8(std::string_view input); +std::string SHIFTJISToUTF8(std::string_view input); +std::string UTF8ToSHIFTJIS(std::string_view input); +std::string WStringToUTF8(std::wstring_view input); std::string UTF16BEToUTF8(const char16_t* str, size_t max_size); // Stops at \0 -std::string UTF16ToUTF8(std::u16string_view str); -std::u16string UTF8ToUTF16(std::string_view str); +std::string UTF16ToUTF8(std::u16string_view input); +std::u16string UTF8ToUTF16(std::string_view input); #ifdef _WIN32 @@ -311,7 +311,7 @@ std::string GetEscapedHtml(std::string html); void ToLower(std::string* str); void ToUpper(std::string* str); bool CaseInsensitiveEquals(std::string_view a, std::string_view b); -bool CaseInsensitiveContains(std::string_view a, std::string_view b); +bool CaseInsensitiveContains(std::string_view haystack, std::string_view needle); // 'std::less'-like comparison function object type for case-insensitive strings. struct CaseInsensitiveLess |
