Skip to content

Commit b6d4229

Browse files
committed
Fix the string comparison issue
1 parent d76a780 commit b6d4229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/iceberg/util/string_util.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ class ICEBERG_EXPORT StringUtils {
4646
}
4747

4848
static bool EqualsIgnoreCase(const std::string& a, const std::string& b) {
49-
return a.size() == b.size() &&
50-
std::equal(a.begin(), a.end(), b.begin(), [](char ca, char cb) {
49+
return a.size() == b.size() && std::ranges::equal(a, b, [](char ca, char cb) {
5150
return std::tolower(ca) == std::tolower(cb);
5251
});
5352
}

0 commit comments

Comments
 (0)