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

Function tokencmp

fdbcli/Util.actor.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace fdb_cli {
32
33bool tokencmp(StringRef token, const char* command) {
34 if (token.size() != strlen(command))
35 return false;
36
37 return !memcmp(token.begin(), command, token.size());
38}
39
40void printUsage(StringRef command) {
41 const auto& helpMap = CommandFactory::commands();

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected