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

Function string_not_empty

example/spread.cc:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47DEFINE_uint64(sum_items_num, 0, "how many items need to sum.");
48
49bool string_not_empty(const char*, const std::string& value) {
50 if (0 == value.length()) { return false; }
51 return true;
52}
53
54DEFINE_validator(input_relation_edges, &string_not_empty);
55DEFINE_validator(input_behaviour_edges, &string_not_empty);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected