Minimum string length constraint ( minLength ).
More...
#include <constraints.hpp>
Public Member Functions | |
| template<anch::val::StringLike V> | |
| bool | check (const V &str, std::string &message) const |
Public Attributes | |
| std::size_t | value |
Minimum string length constraint ( minLength ).
Length is the number of Unicode code points (UTF-8), as in JSON Schema.
| bool anch::val::MinLength::check | ( | const V & | str, |
| std::string & | message ) const |
Check value
| V | the value type |
| str | the value |
| message | the error message (set when value is invalid) |
true when value is valid | std::size_t anch::val::MinLength::value |
Minimum length