More minor cleanups

This commit is contained in:
Henrik Rydgård committed 2025-05-29 13:39:33 +02:00
1 parent 5eb87f0fb4
commit a361a32f4b
3 files changed
+10 -11

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ bool containsNoCase(std::string_view haystack, std::string_view needle) {
return found != haystack.end();
}
int countChar(std::string_view haystack, char needle) {
int CountChar(std::string_view haystack, char needle) {
int count = 0;
for (int i = 0; i < (int)haystack.size(); i++) {
if (haystack[i] == needle) {