| 120 | } |
| 121 | |
| 122 | bool prefix_compare(const PathTrie *x, const PathTrie *y) { |
| 123 | if (x->score == y->score) { |
| 124 | if (x->character == y->character) { |
| 125 | return false; |
| 126 | } else { |
| 127 | return (x->character < y->character); |
| 128 | } |
| 129 | } else { |
| 130 | return x->score > y->score; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | bool prefix_compare_external_scores(const PathTrie *x, const PathTrie *y, |
| 135 | const std::unordered_map<const PathTrie*, float>& scores) { |
nothing calls this directly
no outgoing calls
no test coverage detected