MCPcopy 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
62bool Lexicon::IsSorted() {
63 return std::is_sorted(entries.begin(), entries.end(),
64 DictEntry::UPtrLessThan);
65}
66
67bool Lexicon::IsUnique(std::string* dupkey) {
68 for (size_t i = 1; i < entries.size(); ++i) {

Callers 2

TEST_FFunction · 0.80
TextDictMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.64