Skip to content

Commit

Permalink
Update src/engine/sparqlExpressions/StringExpressions.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Kalmbach <[email protected]>
  • Loading branch information
DuDaAG and joka921 authored Oct 31, 2024
1 parent 96b1959 commit b7806b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/sparqlExpressions/StringExpressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ using IriOrUriExpression = NARY<1, FV<std::identity, IriOrUriValueGetter>>;
[[maybe_unused]] auto strlen = [](std::string_view s) {
// Count UTF-8 characters by skipping continuation bytes (those starting with
// "10").
auto utf8Len = std::count_if(s.begin(), s.end(), [](char c) {
auto utf8Len = std::ranges::count_if(s, [](char c) {
return (static_cast<unsigned char>(c) & 0xC0) != 0x80;
});
return Id::makeFromInt(static_cast<int64_t>(utf8Len));
Expand Down

0 comments on commit b7806b8

Please sign in to comment.