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

Function string_not_empty

example/nstepdegrees.cc:61–64  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected