deduping by byteOffset alone for clarity.
This commit is contained in:
@@ -143,7 +143,7 @@ void sortAndDedupeBreakInfos(std::vector<Hyphenator::BreakInfo>& infos) {
|
|||||||
|
|
||||||
infos.erase(std::unique(infos.begin(), infos.end(),
|
infos.erase(std::unique(infos.begin(), infos.end(),
|
||||||
[](const Hyphenator::BreakInfo& a, const Hyphenator::BreakInfo& b) {
|
[](const Hyphenator::BreakInfo& a, const Hyphenator::BreakInfo& b) {
|
||||||
return a.byteOffset == b.byteOffset && a.requiresInsertedHyphen == b.requiresInsertedHyphen;
|
return a.byteOffset == b.byteOffset;
|
||||||
}),
|
}),
|
||||||
infos.end());
|
infos.end());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user