vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function validateString

Checks if a string falls within the specified length range.

string validateString (
  string str,
  ulong min_length = 0LU,
  ulong max_length = 0LU,
  string entity_name = "String"
) @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));
Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.