Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Annika Greif committed Nov 1, 2024
1 parent a83d74b commit e73d1ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/engine/sparqlExpressions/StringExpressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ 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::ranges::count_if(s, [](char c) {
return (static_cast<unsigned char>(c) & 0xC0) != 0x80;
});
auto utf8Len = std::ranges::count_if(
s, [](char c) { return (static_cast<unsigned char>(c) & 0xC0) != 0x80; });
return Id::makeFromInt(utf8Len);
};
using StrlenExpression =
Expand Down

0 comments on commit e73d1ab

Please sign in to comment.