Maximum string length constraint ( maxLength ).
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 |
Maximum string length constraint ( maxLength ).
Length is the number of Unicode code points (UTF-8), as in JSON Schema.
| bool anch::val::MaxLength::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::MaxLength::value |
Maximum length