mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2480] [CLOSED] Refactor string comparison helper function for case-insensitive compa… #2767
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2480
Author: @colinmendoza121
Created: 2/19/2025
Status: ❌ Closed
Base:
main← Head:feature📝 Commits (1)
7d8d6e7Refactor string comparison helper function for case-insensitive comparison📊 Changes
1 file changed (+22 additions, -8 deletions)
View changed files
📝
src/qt_gui/game_list_frame.h(+22 -8)📄 Description
Summary
Refactor case-insensitive string comparison functionality into a helper function.
Changes
GameListFrameclass into a dedicated helper function,CompareStringsCaseInsensitive.std::transformto convert both strings to lowercase before performing the comparison.Motivation
The refactor improves code readability and modularity by encapsulating the case-insensitive comparison logic in a reusable helper function. This also reduces redundancy and ensures that the string comparison logic is easier to maintain and extend in the future.
Testing
Related Issues
Fixes Issue #2260: Sorting Order Broken When Game Title Is in ALL CAPS.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.