Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Aug 17, 2023
1 parent f140003 commit cf3730d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libime/pinyin/pinyinencoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ template <typename Iter>
std::pair<std::string_view, bool> longestMatch(Iter iter, Iter end,
PinyinFuzzyFlags flags) {
if (*iter == 'i' || *iter == 'u' || *iter == 'v') {
return std::make_pair(std::string_view(&*iter, std::distance(iter, end)), false);
return std::make_pair(
std::string_view(&*iter, std::distance(iter, end)), false);
}
if (std::distance(iter, end) > maxPinyinLength) {
end = iter + maxPinyinLength;
Expand Down

0 comments on commit cf3730d

Please sign in to comment.