Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BYVoid/OpenCC
/ IsSorted
Method
IsSorted
src/Lexicon.cpp:62–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
60
}
61
62
bool Lexicon::IsSorted() {
63
return std::is_sorted(entries.begin(), entries.end(),
64
DictEntry::UPtrLessThan);
65
}
66
67
bool Lexicon::IsUnique(std::string* dupkey) {
68
for (size_t i = 1; i < entries.size(); ++i) {
Callers
2
TEST_F
Function · 0.80
TextDict
Method · 0.80
Calls
2
begin
Method · 0.45
end
Method · 0.45
Tested by
1
TEST_F
Function · 0.64