Skip to content

Conversation

@mapleFU
Copy link
Member

@mapleFU mapleFU commented Jul 15, 2025

No description provided.

Comment on lines +32 to +38
bool StringEqualsCaseInsensitive(std::string_view lhs, std::string_view rhs) {
if (lhs.size() != rhs.size()) {
return false;
}
return std::equal(lhs.begin(), lhs.end(), rhs.begin(),
[](char a, char b) { return std::tolower(a) == std::tolower(b); });
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bad thing is that this could only uses ascii, I suggest import icu or utf8 libs ( or even boost::locale?) for this scenerio

@wgtmac
Copy link
Member

wgtmac commented Aug 23, 2025

Close this in favor of #180

@wgtmac wgtmac closed this Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants