vutil ~master (2015-03-22T03:52:14Z)
Dub
Repo
validateString
vutil
validation
Checks if a string falls within the specified length range.
string
validateString
(string str, size_t min_length, size_t max_length, string entity_name)
bool
validateString
(R error_sink, string str, size_t min_length, size_t max_length, string entity_name)
@
safe
bool
validateString
(
R
)
(
ref
R
error_sink
,
string
str
,
size_t
min_length
= 0
,
size_t
max_length
= 0
,
string
entity_name
= "String"
)
if
(
isOutputRange
!(
R
,
char
)
)
Meta
Source
See Implementation
vutil
validation
functions
validateEmail
validateIdent
validatePassword
validateString
validateUserName
Checks if a string falls within the specified length range.