MCPcopy Create free account
hub / github.com/apple/foundationdb / toString

Method toString

fdbclient/FDBTypes.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::string KeySelectorRef::toString() const {
59 if (offset > 0) {
60 if (orEqual)
61 return format("%d+firstGreaterThan(%s)", offset - 1, printable(key).c_str());
62 else
63 return format("%d+firstGreaterOrEqual(%s)", offset - 1, printable(key).c_str());
64 } else {
65 if (orEqual)
66 return format("%d+lastLessOrEqual(%s)", offset, printable(key).c_str());
67 else
68 return format("%d+lastLessThan(%s)", offset, printable(key).c_str());
69 }
70}
71
72std::string describe(const std::string& s) {
73 return s;

Calls 3

printableFunction · 0.70
formatFunction · 0.50
c_strMethod · 0.45

Tested by 15

setMethod · 0.36
validateSnakeCaseNamingFunction · 0.36
Future<Void> commitActorFunction · 0.36
clearMethod · 0.36
parseNetWorkAddrFromKeysFunction · 0.36
includeServersFunction · 0.36
commitMethod · 0.36
getRangeMethod · 0.36