Next: args predefined vectors, Previous: args predefined chars, Up: args predefined [Index]
The following bindings are exported by the library (vicare
arguments validation)
.
Succeed if obj is a string.
Succeed if obj is #f
or a string.
Succeed if obj is a string and its length is greater than zero.
Succeed if obj is #f
or a string and its length is greater
than zero.
Succeed if obj is null or a list of strings.
Succeed if obj is a string or symbol; the second clause accepts
also #f
.
Succeed if idx is a fixnum usable as index (not out of range) for str, which is expected to be an already validated string. idx must satisfy the constraints:
0 <= idx < (string-length str)
Succeed if idx is a fixnum usable as index for str, which is expected to be an already validated string, or it is equal to the string length. idx must satisfy the constraints:
0 <= idx <= (string-length str)
Assuming that str is an already validated string: succeed if idx is a fixnum usable as index (not out of range) for str, and count is a fixnum which can be used as characters count in str starting and idx without going out of range.
In other words: idx and count select a substring of str.
Assuming that str is an already validated string: succeed if both start and end are fixnums usable as indexes (not out of range) for str, and start is less than or equal to end.
In other words: start and end select a substring of str by specifying inclusive limits.
Assuming that str is an already validated string: succeed if both start and past are fixnums satisfying the constraints:
0 <= start <= (string-length str) start <= past <= (string-length str)
In other words: start and past select a substring of str by specifying left–inclusive and right–exclusive limits.
Next: args predefined vectors, Previous: args predefined chars, Up: args predefined [Index]