mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 15:47:39 +03:00
remove unused hasOnlyAlphabetic function from HyphenationCommon
This commit is contained in:
parent
4aa0424fe6
commit
51bc4810ec
@ -106,19 +106,6 @@ void trimSurroundingPunctuation(std::vector<CodepointInfo>& cps) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasOnlyAlphabetic(const std::vector<CodepointInfo>& cps) {
|
|
||||||
if (cps.empty()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const auto& info : cps) {
|
|
||||||
if (!isAlphabetic(info.value)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<CodepointInfo> collectCodepoints(const std::string& word) {
|
std::vector<CodepointInfo> collectCodepoints(const std::string& word) {
|
||||||
std::vector<CodepointInfo> cps;
|
std::vector<CodepointInfo> cps;
|
||||||
cps.reserve(word.size());
|
cps.reserve(word.size());
|
||||||
|
|||||||
@ -22,6 +22,5 @@ bool isAsciiDigit(uint32_t cp);
|
|||||||
bool isExplicitHyphen(uint32_t cp);
|
bool isExplicitHyphen(uint32_t cp);
|
||||||
bool isSoftHyphen(uint32_t cp);
|
bool isSoftHyphen(uint32_t cp);
|
||||||
void trimSurroundingPunctuation(std::vector<CodepointInfo>& cps);
|
void trimSurroundingPunctuation(std::vector<CodepointInfo>& cps);
|
||||||
bool hasOnlyAlphabetic(const std::vector<CodepointInfo>& cps);
|
|
||||||
std::vector<CodepointInfo> collectCodepoints(const std::string& word);
|
std::vector<CodepointInfo> collectCodepoints(const std::string& word);
|
||||||
void trimTrailingFootnoteReference(std::vector<CodepointInfo>& cps);
|
void trimTrailingFootnoteReference(std::vector<CodepointInfo>& cps);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user