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

Function string_not_empty

example/mutual.cc:59–62  ·  view source on GitHub ↗

* @brief not empty validator. * @param value * @return */

Source from the content-addressed store, hash-verified

57 * @return
58 */
59bool string_not_empty(const char*, const std::string& value) {
60 if (0 == value.length()) { return false; }
61 return true;
62}
63
64DEFINE_validator(input_edges, &string_not_empty);
65DEFINE_validator(output, &string_not_empty);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected