MCPcopy Create free account
hub / github.com/Tencent/plato / string_not_empty

Function string_not_empty

example/tree_stat_simple.cc:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45DEFINE_bool(validate, false, "strict validate tree's structure");
46
47bool string_not_empty(const char*, const std::string& value) {
48 if (0 == value.length()) { return false; }
49 return true;
50}
51
52DEFINE_validator(input, &string_not_empty);
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected