MCPcopy Create free account
hub / github.com/ElementsProject/elements / Shorten

Function Shorten

src/leveldb/db/dbformat_test.cc:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static std::string Shorten(const std::string& s, const std::string& l) {
19 std::string result = s;
20 InternalKeyComparator(BytewiseComparator()).FindShortestSeparator(&result, l);
21 return result;
22}
23
24static std::string ShortSuccessor(const std::string& s) {
25 std::string result = s;

Callers 1

TESTFunction · 0.85

Calls 3

BytewiseComparatorFunction · 0.85
FindShortestSeparatorMethod · 0.45

Tested by

no test coverage detected