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

Function string_not_empty

example/kcore_simple.cc:60–63  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected