ratify
0.1.0A collection of utilities to ratify, validate and parse inputs.
Table of Contents
About Ratify
Ratify is a collection of utilities to perform validation checks and parsing. The main intention of usage for this is in web-applications in order to check form inputs for correctness and automatically parse them into their proper representations or return meaningful errors.
How To
Ratify has a load of TEST-*
functions, each accompanied by a predicate equivalent. The TEST-*
functions will signal errors of type RATIFICATION-ERROR
if the test fails, whereas the predicates will simply return NIL
. Both will return the passed argument unmodified on success. Some of the tests have an equivalent PARSE-*
function in order to turn the string into a more useful representation.
The main interaction with Ratify is not supposed to be directly with the TEST-*
and PARSE-*
functions however, but rather through the TEST
and PARSE
wrapper functions. Both also have a macro shorthand to perform many tests and parsings at once, PERFORM-COMBINED-TESTS
and WITH-PARSED-FORMS
. These macros will perform as many tests as possible and only signal an error right after all tests have been made. This error is of type COMBINED-ERROR
, which contains all the errors that occurred during the testing.
(ratify:perform-combined-tests
(:integer "45")
(:date "2014-08-01")
(:ratio "566/21"))
(ratify:perform-combined-tests
(:integer "4.5" "e")
(:date "2014-08-01" "2014" "2014-55-99")
(:ratio "566/21" "5.6/21"))
; Evaluation aborted on #<RATIFY-TESTING:COMBINED-ERROR {10074E51D3}>.
Or to perform parsing:
(let ((int "45")
(url "http://foo.bar/baz.jp?what=ever#hashtag")
(uri "things-are://sometimes:complicated@with-all.these/damn?protocols=i'm#telling+you!")
(dt "2014-08-01T21:23:01"))
(ratify:with-parsed-forms ((:integer int) (:url url) (:uri uri) (:datetime dt))
(list int url uri dt)))
If an error occurs, the ERRORS
function gives access to the list of errors that the COMBINED-ERROR
contains. For a complete list of testing and parsing functions, please see the symbol index. The syntax grammar used to describe the valid values in the docstrings of each test is regex with the addition of <brackets>
to refer to other tests, sometimes accompanied with a second line that describes limits of the values.
System Information
Definition Index
-
RATIFY-EMAIL
- ORG.TYMOONNEXT.RATIFY.EMAIL
No documentation provided.-
EXTERNAL FUNCTION EMAIL-P
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-EMAIL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-EMAIL
- &OPTIONAL
- START
- END
- &REST
Test an e-mail address for validity according to http://en.wikipedia.org/wiki/Email_address#Syntax <local-part>@<domain>
-
RATIFY-TOOLKIT
- ORG.TYMOONNEXT.RATIFY.TOOLKIT
No documentation provided.-
EXTERNAL CONDITION RATIFICATION-ERROR
Error signalled if a test function hit an error in the format. The TEST-OBJECT slot contains the object that failed to pass the test. The MESSAGE slot contains a verbal explanation of what went wrong.
-
EXTERNAL FUNCTION MAKE-KEYWORD
- NAME
- &REST
Returns the keyword equivalent of the passed NAME.
-
EXTERNAL FUNCTION RATIFICATION-ERROR
- TEST-OBJECT
- &OPTIONAL
- MESSAGE
- &REST
- FORMAT-ARGS
- &REST
Shorthand function to signal a RATIFICATION-ERROR.
-
EXTERNAL FUNCTION TRUE-ALPHA-P
- CHAR
- &REST
Returns T if the character is one of a-Z. ALPHA-CHAR-P as per CLHS is not strictly limited to just a-Z and returns T for undesired characters like ü on some implementations like SBCL.
-
EXTERNAL FUNCTION TRUE-ALPHANUMERIC-P
- CHAR
- &REST
Returns T if the character is one of a-Z 0-9. ALPHANUMERICP as per CLHS is not strictly limited to just a-Z 0-9 and returns T for undesired characters like ü on some implementations like SBCL.
-
EXTERNAL GENERIC-FUNCTION MESSAGE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF MESSAGE)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEST-OBJECT
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF TEST-OBJECT)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided.
-
RATIFY-CSS
- ORG.TYMOONNEXT.RATIFY.CSS
No documentation provided.-
EXTERNAL FUNCTION COLOR-P
- COLOR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-COLOR, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PROPERTY-P
- PROPERTY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PROPERTY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-COLOR
- COLOR
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-PROPERTY
- PROPERTY
- &OPTIONAL
- START
- END
- &REST
No documentation provided.
-
RATIFY
- ORG.TYMOONNEXT.RATIFY
No documentation provided.-
EXTERNAL SPECIAL-VARIABLE *PERMITTED-PROTOCOLS*
List of permitted protocols in a URL.
-
EXTERNAL CONDITION COMBINED-ERROR
An error object that holds a combination of other errors. Used to test multiple things before unwinding the stack.
-
EXTERNAL CONDITION RATIFICATION-ERROR
Error signalled if a test function hit an error in the format. The TEST-OBJECT slot contains the object that failed to pass the test. The MESSAGE slot contains a verbal explanation of what went wrong.
-
EXTERNAL CONDITION TEST-FAILED
Condition signalled when a test fails. The TEST-NAME slot specifies the name of the test that was run. The TEST-OBJECT slot contains the object that failed the test. The CAUSE slot contains the original error object, usually of type RATIFICATION-ERROR.
-
EXTERNAL FUNCTION ABSOLUTE-PATH-P
- PATH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ABSOLUTE-PATH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION ALPHABETIC-P
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ALPHABETIC, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION ALPHANUMERIC-P
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ALPHANUMERIC, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION AUTHORITY-P
- AUTHORITY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-AUTHORITY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION BIT-P
- BIT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-BIT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION BOOLEAN-P
- BOOLEAN
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-BOOLEAN, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION CHARACTER-P
- CHARACTER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-CHARACTER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION CHECKBOX-P
- INPUT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-CHECKBOX, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION COLOR-P
- COLOR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-COLOR, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION COMPLEX-P
- COMPLEX
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-COMPLEX, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATE-P
- DATE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATETIME-LOCAL-P
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATETIME-LOCAL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATETIME-P
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATETIME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DAY-P
- DAY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DAY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DOMAIN-P
- DOMAIN
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DOMAIN, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION EMAIL-P
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-EMAIL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION FILE-P
- FILE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-FILE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION FLOAT-P
- FLOAT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-FLOAT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION FRAGMENT-P
- FRAGMENT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-FRAGMENT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HIERARCHICAL-PART-P
- HIERARCHICAL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HIERARCHICAL-PART, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HOST-P
- HOST
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HOST, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HOSTNAME-P
- HOSTNAME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HOSTNAME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HOUR-P
- HOUR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HOUR, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION INTEGER-P
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-INTEGER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION IP-P
- IP
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-IP, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION IPV4-P
- IP
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-IPV4, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION IPV6-P
- IP
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-IPV6, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION MAKE-KEYWORD
- NAME
- &REST
Returns the keyword equivalent of the passed NAME.
-
EXTERNAL FUNCTION MINUTE-P
- MINUTE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-MINUTE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION MONTH-P
- MONTH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-MONTH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION NUMBER-P
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-NUMBER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION NUMERIC-P
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-NUMERIC, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION OFFSET-P
- OFFSET
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-OFFSET, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PARSE
- PARSER-NAME
- OBJECT
- &REST
Attempts to parse OBJECT using the parser named by PARSER-NAME. Automatically establishes a SKIP-ERROR restart as per WITH-SKIPPING. Performs exactly two operations: 1) Call the test function of name PARSER-NAME on the object 2) Call the parse function of name PARSER-NAME on the object
-
EXTERNAL FUNCTION PARSE-BIT
- BIT
- &OPTIONAL
- START
- END
- &REST
Parses into a bit of either 1 or 0.
-
EXTERNAL FUNCTION PARSE-BOOLEAN
- BOOLEAN
- &OPTIONAL
- START
- END
- &REST
Parses into a boolean. Returns T if one of ("1" "true" "T"), NIL otherwise.
-
EXTERNAL FUNCTION PARSE-CHARACTER
- CHARACTER
- &OPTIONAL
- START
- END
- &REST
Parses into a character.
-
EXTERNAL FUNCTION PARSE-COMPLEX
- COMPLEX
- &OPTIONAL
- START
- END
- &REST
Parses into a complex number.
-
EXTERNAL FUNCTION PARSE-DATE
- DATE
- &OPTIONAL
- START
- END
- &REST
Parses the given date into a LOCAL-TIME:TIMESTAMP object.
-
EXTERNAL FUNCTION PARSE-DATETIME
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Parses the given datetime into a LOCAL-TIME:TIMESTAMP object. The only part that is allowed to be omitted is the timezone offset specification.
-
EXTERNAL FUNCTION PARSE-DAY
- DAY
- &OPTIONAL
- START
- END
- &REST
Parses the day into an integer
-
EXTERNAL FUNCTION PARSE-FLOAT
- FLOAT
- &OPTIONAL
- START
- END
- &REST
Parses into a float.
-
EXTERNAL FUNCTION PARSE-HOUR
- HOUR
- &OPTIONAL
- START
- END
- &REST
Parses the hour into an integer
-
EXTERNAL FUNCTION PARSE-INTEGER
- STRING
- &KEY
- START
- END
- RADIX
- JUNK-ALLOWED
- &REST
Examine the substring of string delimited by start and end (default to the beginning and end of the string) It skips over whitespace characters and then tries to parse an integer. The radix parameter must be between 2 and 36.
-
EXTERNAL FUNCTION PARSE-MINUTE
- MINUTE
- &OPTIONAL
- START
- END
- &REST
Parses the minute into an integer
-
EXTERNAL FUNCTION PARSE-MONTH
- MONTH
- &OPTIONAL
- START
- END
- &REST
Parses the month into an integer.
-
EXTERNAL FUNCTION PARSE-NUMBER
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Parses into a number.
-
EXTERNAL FUNCTION PARSE-OFFSET
- OFFSET
- &OPTIONAL
- START
- END
- &REST
Parses the offset into a list of (DIR HOUR MINUTE), wherein DIR is a string of either "+" or "-", denoting the direction of the offset.
-
EXTERNAL FUNCTION PARSE-RATIO
- RATIO
- &OPTIONAL
- START
- END
- &REST
Parses into a ratio.
-
EXTERNAL FUNCTION PARSE-RATIONAL
- RATIONAL
- &OPTIONAL
- START
- END
- &REST
Parses into a rational.
-
EXTERNAL FUNCTION PARSE-REAL
- REAL
- &OPTIONAL
- START
- END
- &REST
Parses into a real.
-
EXTERNAL FUNCTION PARSE-SECOND
- SECOND
- &OPTIONAL
- START
- END
- &REST
Parses the second into an integer
-
EXTERNAL FUNCTION PARSE-STRING
- STRING
- &OPTIONAL
- START
- END
- &REST
Parses into a string (simply returns its argument).
-
EXTERNAL FUNCTION PARSE-TIME
- TIME
- &OPTIONAL
- START
- END
- &REST
Parses the given time into a LOCAL-TIME:TIMESTAMP object.
-
EXTERNAL FUNCTION PARSE-UNSIGNED-INTEGER
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Parses into an integer.
-
EXTERNAL FUNCTION PARSE-YEAR
- YEAR
- &OPTIONAL
- START
- END
- &REST
Parses the year into an integer.
-
EXTERNAL FUNCTION PARSER
- NAME
- &REST
Returns the function associated with the NAME. If no such parser can be found, #'IDENTITY is returned. The name is converted to a keyword. SETF-able.
-
EXTERNAL FUNCTION (SETF PARSER)
- FUNCTION
- NAME
- &REST
Sets a function to be used for a certain parser. The name is converted to a keyword.
-
EXTERNAL FUNCTION PASSWORD-P
- PW
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PASSWORD, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PATH-SEGMENT-P
- SEGMENT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PATH-SEGMENT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PERFORM-TEST
- TEST-NAME
- TEST-OBJECT
- &REST
Performs the test named by TEST-NAME on TEST-OBJECT. Automatically establishes a SKIP-ERROR restart and resignals any error as a new error of type TEST-FAILED.
-
EXTERNAL FUNCTION PORT-P
- PORT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PORT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PROPERTY-P
- PROPERTY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PROPERTY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PROTOCOL-P
- PROTOCOL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PROTOCOL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION QUERY-P
- QUERY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-QUERY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RADIO-P
- RADIO
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RADIO, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RANGE-P
- RANGE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RANGE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RATIFICATION-ERROR
- TEST-OBJECT
- &OPTIONAL
- MESSAGE
- &REST
- FORMAT-ARGS
- &REST
Shorthand function to signal a RATIFICATION-ERROR.
-
EXTERNAL FUNCTION RATIO-P
- RATIO
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RATIO, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RATIONAL-P
- RATIONAL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RATIONAL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION REAL-P
- REAL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-REAL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION ROOTLESS-PATH-P
- PATH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ROOTLESS-PATH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION SCHEME-P
- SCHEME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-SCHEME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION SEARCH-P
- SEARCH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-SEARCH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION SECOND-P
- SECOND
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-SECOND, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION SKIPPABLE-ERROR
- DATUM
- &REST
- ARGUMENTS
- &REST
Signals a skippable error as per WITH-SKIPPING.
-
EXTERNAL FUNCTION STRING-P
- STRING
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-STRING, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEL-P
- TEL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TEL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST
- NAME
- &REST
Returns the function associated with the NAME. If no such test can be found, an error is signalled. The name is converted to a keyword. SETF-able.
-
EXTERNAL FUNCTION (SETF TEST)
- FUNCTION
- NAME
- &REST
Sets a function to be used for a certain test. The name is converted to a keyword.
-
EXTERNAL FUNCTION TEST-ABSOLUTE-PATH
- PATH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid absolute path. /<rootless-path>
-
EXTERNAL FUNCTION TEST-ALPHABETIC
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Tests for an alphabetic string. [a-zA-Z]*
-
EXTERNAL FUNCTION TEST-ALPHANUMERIC
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Tests for an alphanumeric string. [a-zA-Z0-9]*
-
EXTERNAL FUNCTION TEST-AUTHORITY
- AUTHORITY
- &OPTIONAL
- START
- END
- &REST
Tests for a valid authority. (<user>@)?<authority>(:<port>)?
-
EXTERNAL FUNCTION TEST-BIT
- BIT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid bit. [01]
-
EXTERNAL FUNCTION TEST-BOOLEAN
- BOOLEAN
- &OPTIONAL
- START
- END
- &REST
Tests for a valid boolean. 1|0|true|false|T|NIL case-insensitive
-
EXTERNAL FUNCTION TEST-CHARACTER
- CHARACTER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid character. .{1}
-
EXTERNAL FUNCTION TEST-CHECKBOX
- INPUT
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-COLOR
- COLOR
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-COMPLEX
- COMPLEX
- &OPTIONAL
- START
- END
- &REST
Tests for a valid complex number. <real>[cC]<real>
-
EXTERNAL FUNCTION TEST-DATE
- DATE
- &OPTIONAL
- START
- END
- &REST
Tests for a valid date. <year>-<month>-<day>
-
EXTERNAL FUNCTION TEST-DATETIME
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid datetime. <year>-<month>-<day>T<hour>:<minute>:<second>Z<offset>
-
EXTERNAL FUNCTION TEST-DATETIME-LOCAL
- DATETIME
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-DAY
- DAY
- &OPTIONAL
- START
- END
- &REST
Tests for a valid day. [0-9]{1,2} 1<=val<=31
-
EXTERNAL FUNCTION TEST-DOMAIN
- DOMAIN
- &OPTIONAL
- START
- END
- &REST
Tests for a valid domain. [<ip>]|<hostname>
-
EXTERNAL FUNCTION TEST-EMAIL
- &OPTIONAL
- START
- END
- &REST
Test an e-mail address for validity according to http://en.wikipedia.org/wiki/Email_address#Syntax <local-part>@<domain>
-
EXTERNAL FUNCTION TEST-FILE
- FILE
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-FLOAT
- FLOAT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid float. [+-]?<unsigned-integer>(\.<unsigned-integer>)?(e<unsigned-integer>)?
-
EXTERNAL FUNCTION TEST-FRAGMENT
- FRAGMENT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid fragment part. [a-zA-Z0-9!$&'()*+,;=-._~:@?/]+
-
EXTERNAL FUNCTION TEST-HIERARCHICAL-PART
- HIERARCHICAL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid hierarchical part. <absolute-path>|//<authority><absolute-path>
-
EXTERNAL FUNCTION TEST-HOST
- HOST
- &OPTIONAL
- START
- END
- &REST
Tests for a valid host name. [<ip>]|[a-zA-Z0-9-._~%!$&'()*+,;=]+
-
EXTERNAL FUNCTION TEST-HOSTNAME
- HOSTNAME
- &OPTIONAL
- START
- END
- &REST
Test a hostname for validity according to http://en.wikipedia.org/wiki/Hostname [a-zA-Z0-9-]{1,63}(\.[a-zA-Z0-9-]{1,63})* 1<=length<=255
-
EXTERNAL FUNCTION TEST-HOUR
- HOUR
- &OPTIONAL
- START
- END
- &REST
Tests for a valid hour. [0-9]{1,2} 0<=val<=23
-
EXTERNAL FUNCTION TEST-INTEGER
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid signed integer. [+-]?<unsigned-integer>
-
EXTERNAL FUNCTION TEST-IP
- IP
- &OPTIONAL
- START
- END
- &REST
Tests for a valid IP address. <ipv6>|<ipv4>
-
EXTERNAL FUNCTION TEST-IPV4
- IP
- &OPTIONAL
- START
- END
- &REST
Tests for a valid IPv4 <unsigned-integer>\.<unsigned-integer>\.<unsigned-integer>\.<unsigned-integer> 0<=unsigned-integer<=255
-
EXTERNAL FUNCTION TEST-IPV6
- IP
- &OPTIONAL
- START
- END
- &REST
Tests for a valid IPv6 [0-9A-F]:(:|[0-9A-F]:){1,6})[0-9A-F]? 0000<=val<=FFFF
-
EXTERNAL FUNCTION TEST-MINUTE
- MINUTE
- &OPTIONAL
- START
- END
- &REST
Tests for a valid minute. [0-9]{1,2} 0<=val<=59
-
EXTERNAL FUNCTION TEST-MONTH
- MONTH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid month. [0-9]{1,2} 1<=val<=12
-
EXTERNAL FUNCTION TEST-NUMBER
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid number. <real>|<complex>
-
EXTERNAL FUNCTION TEST-NUMERIC
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Tests for a numeric string. [0-9]*
-
EXTERNAL FUNCTION TEST-OFFSET
- OFFSET
- &OPTIONAL
- START
- END
- &REST
Tests for a valid offset. [-+]hour:minute
-
EXTERNAL FUNCTION TEST-PASSWORD
- PW
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-PATH-SEGMENT
- SEGMENT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid path segment. [a-zA-Z0-9!$&'()*+,;=-._~:@]+
-
EXTERNAL FUNCTION TEST-PORT
- PORT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid port. <unsigned-integer> 0<=val<=65535
-
EXTERNAL FUNCTION TEST-PROPERTY
- PROPERTY
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-PROTOCOL
- PROTOCOL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid protocol according to *PERMITTED-PROTOCOLS*
-
EXTERNAL FUNCTION TEST-QUERY
- QUERY
- &OPTIONAL
- START
- END
- &REST
Tests for a valid query part. [a-zA-Z0-9!$&'()*+,;=-._~:@?/]+
-
EXTERNAL FUNCTION TEST-RADIO
- RADIO
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-RANGE
- RANGE
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-RATIO
- RATIO
- &OPTIONAL
- START
- END
- &REST
Tests for a valid ratio. [+-]?<unsigned-integer>/<unsigned-integer>
-
EXTERNAL FUNCTION TEST-RATIONAL
- RATIONAL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid rational. [+-]?<unsigned-integer>(/<unsigned-integer>)?
-
EXTERNAL FUNCTION TEST-REAL
- REAL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid real. <rational>|<float>
-
EXTERNAL FUNCTION TEST-ROOTLESS-PATH
- PATH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid rootless path. <segment-nz>(/<segment>)?
-
EXTERNAL FUNCTION TEST-SCHEME
- SCHEME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid scheme. [a-zA-Z][a-zA-Z0-9-.+]*
-
EXTERNAL FUNCTION TEST-SEARCH
- SEARCH
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-SECOND
- SECOND
- &OPTIONAL
- START
- END
- &REST
Tests for a valid second. [0-9]{1,2} 0<=val<=59
-
EXTERNAL FUNCTION TEST-STRING
- STRING
- &OPTIONAL
- START
- END
- &REST
Tests for a valid string. .+
-
EXTERNAL FUNCTION TEST-TEL
- TEL
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TEXT
- TEXT
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TEXTAREA
- TEXT
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TIME
- TIME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid time. <hour>:<minute>:<second>Z<offset>
-
EXTERNAL FUNCTION TEST-UNSIGNED-INTEGER
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid unsigned integer. <numeric>
-
EXTERNAL FUNCTION TEST-URI
- URI
- &OPTIONAL
- START
- END
- &REST
Tests for a valid URI according to http://tools.ietf.org/html/rfc3986 <scheme>:<hierarchical-part>(?<query>)?(#<fragment>)?
-
EXTERNAL FUNCTION TEST-URL
- URL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid URL. (<protocol>://)?(<domain>)?<absolute-path>(?<query>)?(#<fragment>)?
-
EXTERNAL FUNCTION TEST-USER
- USER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid user. [a-zA-Z0-9%!$&'()*+,;=-._~:]+
-
EXTERNAL FUNCTION TEST-YEAR
- YEAR
- &OPTIONAL
- START
- END
- &REST
Tests for a valid year. [0-9]{4}
-
EXTERNAL FUNCTION TEXT-P
- TEXT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TEXT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEXTAREA-P
- TEXT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TEXTAREA, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TIME-P
- TIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TIME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TRUE-ALPHA-P
- CHAR
- &REST
Returns T if the character is one of a-Z. ALPHA-CHAR-P as per CLHS is not strictly limited to just a-Z and returns T for undesired characters like ü on some implementations like SBCL.
-
EXTERNAL FUNCTION TRUE-ALPHANUMERIC-P
- CHAR
- &REST
Returns T if the character is one of a-Z 0-9. ALPHANUMERICP as per CLHS is not strictly limited to just a-Z 0-9 and returns T for undesired characters like ü on some implementations like SBCL.
-
EXTERNAL FUNCTION UNSIGNED-INTEGER-P
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-UNSIGNED-INTEGER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION URI-P
- URI
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-URI, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION URL-P
- URL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-URL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION USER-P
- USER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-USER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION YEAR-P
- YEAR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-YEAR, returns the passed value on success, NIL on error.
-
EXTERNAL GENERIC-FUNCTION CAUSE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF CAUSE)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ERRORS
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF ERRORS)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MESSAGE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF MESSAGE)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEST-NAME
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF TEST-NAME)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEST-OBJECT
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF TEST-OBJECT)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL MACRO DEFINE-PARSER
- NAME
- PARAM
- START
- END
- &REST
- &BODY
- BODY
- &REST
Defines a new parse function with NAME. PARAM will be bound to the object to parse, which is a string unless otherwise specified, START to the starting index (inc) and END to the ending index (exc). This function creates two other functions automatically: PARSE-name This is the main test function. If the test fails, an error of type RATIFICATION-ERROR should be returned. If the test succeeds the argument passed to it is always returned.
-
EXTERNAL MACRO DEFINE-TEST
- NAME
- PARAM
- START
- END
- &REST
- &BODY
- BODY
- &REST
Defines a new test function with NAME. PARAM will be bound to the object to test, which is a string unless otherwise specified, START to the starting index (inc) and END to the ending index (exc). This function creates two other functions automatically: TEST-name This is the main test function. If the test fails, an error of type RATIFICATION-ERROR should be returned. If the test succeeds the argument passed to it is always returned. name-P Equivalent to the TEST- function, except that it simply returns NIL on failure instead of signalling an error.
-
EXTERNAL MACRO PERFORM-COMBINED-TESTS
- &BODY
- TEST-FORMS
- &REST
Same as PERFORM-TESTS, except with WITH-ERRORS-COMBINED in effect.
-
EXTERNAL MACRO PERFORM-TESTS
- &BODY
- TEST-FORMS
- &REST
Performs a series of tests. TEST-FORMS ::= TEST-FORM* TEST-FORM ::= (test-name test-object*) See TEST.
-
EXTERNAL MACRO WITH-ERRORS-COMBINED
- &BODY
- BODY
- &REST
Executes the body with special error handling. Errors are gathered in a COMBINED-ERROR, which is finally signalled once the body finishes or an error occurs and no SKIP-ERROR restart can be found. If no errors occur within the body, the last value of the body is returned as per PROGN.
-
EXTERNAL MACRO WITH-PARSED-FORMS
- PARSE-FORMS
- &BODY
- BODY
- &REST
Performs a series of parsing operations on objects and rebinds their symbols to the results. PARSE-FORMS ::= PARSE-FORM* PARSE-FORM ::= (parser-name object*) See PARSE. The parse operations are performed within WITH-ERRORS-COMBINED. As such all parse operations are always performed and only one or no conditions are signalled as part of the parsing. See WITH-ERRORS-COMBINED.
-
EXTERNAL MACRO WITH-SKIPPING
- &BODY
- BODY
- &REST
Marks the body as being skippable if an error occurs within. This establishes the restart SKIP-ERROR.
-
EXTERNAL TRANSFORM PARSE-INTEGER
No documentation provided.
-
RATIFY-HTML
- ORG.TYMOONNEXT.RATIFY.HTML
No documentation provided.-
EXTERNAL FUNCTION CHECKBOX-P
- INPUT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-CHECKBOX, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION COLOR-P
- COLOR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-COLOR, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATE-P
- DATE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATETIME-LOCAL-P
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATETIME-LOCAL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATETIME-P
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATETIME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION EMAIL-P
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-EMAIL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION FILE-P
- FILE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-FILE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION MONTH-P
- MONTH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-MONTH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION NUMBER-P
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-NUMBER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PASSWORD-P
- PW
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PASSWORD, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RADIO-P
- RADIO
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RADIO, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RANGE-P
- RANGE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RANGE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION SEARCH-P
- SEARCH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-SEARCH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEL-P
- TEL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TEL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-CHECKBOX
- INPUT
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-COLOR
- COLOR
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-DATE
- DATE
- &OPTIONAL
- START
- END
- &REST
Tests for a valid date. <year>-<month>-<day>
-
EXTERNAL FUNCTION TEST-DATETIME
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid datetime. <year>-<month>-<day>T<hour>:<minute>:<second>Z<offset>
-
EXTERNAL FUNCTION TEST-DATETIME-LOCAL
- DATETIME
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-EMAIL
- &OPTIONAL
- START
- END
- &REST
Test an e-mail address for validity according to http://en.wikipedia.org/wiki/Email_address#Syntax <local-part>@<domain>
-
EXTERNAL FUNCTION TEST-FILE
- FILE
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-MONTH
- MONTH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid month. [0-9]{1,2} 1<=val<=12
-
EXTERNAL FUNCTION TEST-NUMBER
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid number. <real>|<complex>
-
EXTERNAL FUNCTION TEST-PASSWORD
- PW
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-RADIO
- RADIO
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-RANGE
- RANGE
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-SEARCH
- SEARCH
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TEL
- TEL
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TEXT
- TEXT
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TEXTAREA
- TEXT
- &OPTIONAL
- START
- END
- &REST
No documentation provided. -
EXTERNAL FUNCTION TEST-TIME
- TIME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid time. <hour>:<minute>:<second>Z<offset>
-
EXTERNAL FUNCTION TEST-URL
- URL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid URL. (<protocol>://)?(<domain>)?<absolute-path>(?<query>)?(#<fragment>)?
-
EXTERNAL FUNCTION TEXT-P
- TEXT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TEXT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEXTAREA-P
- TEXT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TEXTAREA, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TIME-P
- TIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TIME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION URL-P
- URL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-URL, returns the passed value on success, NIL on error.
-
RATIFY-PARSING
- ORG.TYMOONNEXT.RATIFY.PARSING
No documentation provided.-
EXTERNAL FUNCTION PARSE
- PARSER-NAME
- OBJECT
- &REST
Attempts to parse OBJECT using the parser named by PARSER-NAME. Automatically establishes a SKIP-ERROR restart as per WITH-SKIPPING. Performs exactly two operations: 1) Call the test function of name PARSER-NAME on the object 2) Call the parse function of name PARSER-NAME on the object
-
EXTERNAL FUNCTION PARSER
- NAME
- &REST
Returns the function associated with the NAME. If no such parser can be found, #'IDENTITY is returned. The name is converted to a keyword. SETF-able.
-
EXTERNAL FUNCTION (SETF PARSER)
- FUNCTION
- NAME
- &REST
Sets a function to be used for a certain parser. The name is converted to a keyword.
-
EXTERNAL MACRO DEFINE-PARSER
- NAME
- PARAM
- START
- END
- &REST
- &BODY
- BODY
- &REST
Defines a new parse function with NAME. PARAM will be bound to the object to parse, which is a string unless otherwise specified, START to the starting index (inc) and END to the ending index (exc). This function creates two other functions automatically: PARSE-name This is the main test function. If the test fails, an error of type RATIFICATION-ERROR should be returned. If the test succeeds the argument passed to it is always returned.
-
EXTERNAL MACRO WITH-PARSED-FORMS
- PARSE-FORMS
- &BODY
- BODY
- &REST
Performs a series of parsing operations on objects and rebinds their symbols to the results. PARSE-FORMS ::= PARSE-FORM* PARSE-FORM ::= (parser-name object*) See PARSE. The parse operations are performed within WITH-ERRORS-COMBINED. As such all parse operations are always performed and only one or no conditions are signalled as part of the parsing. See WITH-ERRORS-COMBINED.
-
RATIFY-DATE
- ORG.TYMOONNEXT.RATIFY.DATE
- ORG.TYMOONNEXT.RATIFY.TIME
- RATIFY-TIME
No documentation provided.-
EXTERNAL FUNCTION DATE-P
- DATE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DATETIME-P
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DATETIME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION DAY-P
- DAY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DAY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HOUR-P
- HOUR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HOUR, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION MINUTE-P
- MINUTE
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-MINUTE, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION MONTH-P
- MONTH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-MONTH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION OFFSET-P
- OFFSET
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-OFFSET, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PARSE-DATE
- DATE
- &OPTIONAL
- START
- END
- &REST
Parses the given date into a LOCAL-TIME:TIMESTAMP object.
-
EXTERNAL FUNCTION PARSE-DATETIME
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Parses the given datetime into a LOCAL-TIME:TIMESTAMP object. The only part that is allowed to be omitted is the timezone offset specification.
-
EXTERNAL FUNCTION PARSE-DAY
- DAY
- &OPTIONAL
- START
- END
- &REST
Parses the day into an integer
-
EXTERNAL FUNCTION PARSE-HOUR
- HOUR
- &OPTIONAL
- START
- END
- &REST
Parses the hour into an integer
-
EXTERNAL FUNCTION PARSE-MINUTE
- MINUTE
- &OPTIONAL
- START
- END
- &REST
Parses the minute into an integer
-
EXTERNAL FUNCTION PARSE-MONTH
- MONTH
- &OPTIONAL
- START
- END
- &REST
Parses the month into an integer.
-
EXTERNAL FUNCTION PARSE-OFFSET
- OFFSET
- &OPTIONAL
- START
- END
- &REST
Parses the offset into a list of (DIR HOUR MINUTE), wherein DIR is a string of either "+" or "-", denoting the direction of the offset.
-
EXTERNAL FUNCTION PARSE-SECOND
- SECOND
- &OPTIONAL
- START
- END
- &REST
Parses the second into an integer
-
EXTERNAL FUNCTION PARSE-TIME
- TIME
- &OPTIONAL
- START
- END
- &REST
Parses the given time into a LOCAL-TIME:TIMESTAMP object.
-
EXTERNAL FUNCTION PARSE-YEAR
- YEAR
- &OPTIONAL
- START
- END
- &REST
Parses the year into an integer.
-
EXTERNAL FUNCTION SECOND-P
- SECOND
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-SECOND, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-DATE
- DATE
- &OPTIONAL
- START
- END
- &REST
Tests for a valid date. <year>-<month>-<day>
-
EXTERNAL FUNCTION TEST-DATETIME
- DATETIME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid datetime. <year>-<month>-<day>T<hour>:<minute>:<second>Z<offset>
-
EXTERNAL FUNCTION TEST-DAY
- DAY
- &OPTIONAL
- START
- END
- &REST
Tests for a valid day. [0-9]{1,2} 1<=val<=31
-
EXTERNAL FUNCTION TEST-HOUR
- HOUR
- &OPTIONAL
- START
- END
- &REST
Tests for a valid hour. [0-9]{1,2} 0<=val<=23
-
EXTERNAL FUNCTION TEST-MINUTE
- MINUTE
- &OPTIONAL
- START
- END
- &REST
Tests for a valid minute. [0-9]{1,2} 0<=val<=59
-
EXTERNAL FUNCTION TEST-MONTH
- MONTH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid month. [0-9]{1,2} 1<=val<=12
-
EXTERNAL FUNCTION TEST-OFFSET
- OFFSET
- &OPTIONAL
- START
- END
- &REST
Tests for a valid offset. [-+]hour:minute
-
EXTERNAL FUNCTION TEST-SECOND
- SECOND
- &OPTIONAL
- START
- END
- &REST
Tests for a valid second. [0-9]{1,2} 0<=val<=59
-
EXTERNAL FUNCTION TEST-TIME
- TIME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid time. <hour>:<minute>:<second>Z<offset>
-
EXTERNAL FUNCTION TEST-YEAR
- YEAR
- &OPTIONAL
- START
- END
- &REST
Tests for a valid year. [0-9]{4}
-
EXTERNAL FUNCTION TIME-P
- TIME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-TIME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION YEAR-P
- YEAR
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-YEAR, returns the passed value on success, NIL on error.
-
RATIFY-URL
- ORG.TYMOONNEXT.RATIFY.URL
No documentation provided.-
EXTERNAL SPECIAL-VARIABLE *PERMITTED-PROTOCOLS*
List of permitted protocols in a URL.
-
EXTERNAL FUNCTION DOMAIN-P
- DOMAIN
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-DOMAIN, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HOSTNAME-P
- HOSTNAME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HOSTNAME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PROTOCOL-P
- PROTOCOL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PROTOCOL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-DOMAIN
- DOMAIN
- &OPTIONAL
- START
- END
- &REST
Tests for a valid domain. [<ip>]|<hostname>
-
EXTERNAL FUNCTION TEST-HOSTNAME
- HOSTNAME
- &OPTIONAL
- START
- END
- &REST
Test a hostname for validity according to http://en.wikipedia.org/wiki/Hostname [a-zA-Z0-9-]{1,63}(\.[a-zA-Z0-9-]{1,63})* 1<=length<=255
-
EXTERNAL FUNCTION TEST-PROTOCOL
- PROTOCOL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid protocol according to *PERMITTED-PROTOCOLS*
-
EXTERNAL FUNCTION TEST-URL
- URL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid URL. (<protocol>://)?(<domain>)?<absolute-path>(?<query>)?(#<fragment>)?
-
EXTERNAL FUNCTION URL-P
- URL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-URL, returns the passed value on success, NIL on error.
-
RATIFY-URI
- ORG.TYMOONNEXT.RATIFY.URI
No documentation provided.-
EXTERNAL FUNCTION ABSOLUTE-PATH-P
- PATH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ABSOLUTE-PATH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION AUTHORITY-P
- AUTHORITY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-AUTHORITY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION FRAGMENT-P
- FRAGMENT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-FRAGMENT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HIERARCHICAL-PART-P
- HIERARCHICAL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HIERARCHICAL-PART, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION HOST-P
- HOST
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-HOST, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION IP-P
- IP
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-IP, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION IPV4-P
- IP
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-IPV4, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION IPV6-P
- IP
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-IPV6, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PATH-SEGMENT-P
- SEGMENT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PATH-SEGMENT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PORT-P
- PORT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-PORT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION QUERY-P
- QUERY
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-QUERY, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION ROOTLESS-PATH-P
- PATH
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ROOTLESS-PATH, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION SCHEME-P
- SCHEME
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-SCHEME, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-ABSOLUTE-PATH
- PATH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid absolute path. /<rootless-path>
-
EXTERNAL FUNCTION TEST-AUTHORITY
- AUTHORITY
- &OPTIONAL
- START
- END
- &REST
Tests for a valid authority. (<user>@)?<authority>(:<port>)?
-
EXTERNAL FUNCTION TEST-FRAGMENT
- FRAGMENT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid fragment part. [a-zA-Z0-9!$&'()*+,;=-._~:@?/]+
-
EXTERNAL FUNCTION TEST-HIERARCHICAL-PART
- HIERARCHICAL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid hierarchical part. <absolute-path>|//<authority><absolute-path>
-
EXTERNAL FUNCTION TEST-HOST
- HOST
- &OPTIONAL
- START
- END
- &REST
Tests for a valid host name. [<ip>]|[a-zA-Z0-9-._~%!$&'()*+,;=]+
-
EXTERNAL FUNCTION TEST-IP
- IP
- &OPTIONAL
- START
- END
- &REST
Tests for a valid IP address. <ipv6>|<ipv4>
-
EXTERNAL FUNCTION TEST-IPV4
- IP
- &OPTIONAL
- START
- END
- &REST
Tests for a valid IPv4 <unsigned-integer>\.<unsigned-integer>\.<unsigned-integer>\.<unsigned-integer> 0<=unsigned-integer<=255
-
EXTERNAL FUNCTION TEST-IPV6
- IP
- &OPTIONAL
- START
- END
- &REST
Tests for a valid IPv6 [0-9A-F]:(:|[0-9A-F]:){1,6})[0-9A-F]? 0000<=val<=FFFF
-
EXTERNAL FUNCTION TEST-PATH-SEGMENT
- SEGMENT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid path segment. [a-zA-Z0-9!$&'()*+,;=-._~:@]+
-
EXTERNAL FUNCTION TEST-PORT
- PORT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid port. <unsigned-integer> 0<=val<=65535
-
EXTERNAL FUNCTION TEST-QUERY
- QUERY
- &OPTIONAL
- START
- END
- &REST
Tests for a valid query part. [a-zA-Z0-9!$&'()*+,;=-._~:@?/]+
-
EXTERNAL FUNCTION TEST-ROOTLESS-PATH
- PATH
- &OPTIONAL
- START
- END
- &REST
Tests for a valid rootless path. <segment-nz>(/<segment>)?
-
EXTERNAL FUNCTION TEST-SCHEME
- SCHEME
- &OPTIONAL
- START
- END
- &REST
Tests for a valid scheme. [a-zA-Z][a-zA-Z0-9-.+]*
-
EXTERNAL FUNCTION TEST-URI
- URI
- &OPTIONAL
- START
- END
- &REST
Tests for a valid URI according to http://tools.ietf.org/html/rfc3986 <scheme>:<hierarchical-part>(?<query>)?(#<fragment>)?
-
EXTERNAL FUNCTION TEST-USER
- USER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid user. [a-zA-Z0-9%!$&'()*+,;=-._~:]+
-
EXTERNAL FUNCTION URI-P
- URI
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-URI, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION USER-P
- USER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-USER, returns the passed value on success, NIL on error.
-
RATIFY-TESTING
- ORG.TYMOONNEXT.RATIFY.TESTING
No documentation provided.-
EXTERNAL CONDITION COMBINED-ERROR
An error object that holds a combination of other errors. Used to test multiple things before unwinding the stack.
-
EXTERNAL CONDITION TEST-FAILED
Condition signalled when a test fails. The TEST-NAME slot specifies the name of the test that was run. The TEST-OBJECT slot contains the object that failed the test. The CAUSE slot contains the original error object, usually of type RATIFICATION-ERROR.
-
EXTERNAL FUNCTION PERFORM-TEST
- TEST-NAME
- TEST-OBJECT
- &REST
Performs the test named by TEST-NAME on TEST-OBJECT. Automatically establishes a SKIP-ERROR restart and resignals any error as a new error of type TEST-FAILED.
-
EXTERNAL FUNCTION SKIPPABLE-ERROR
- DATUM
- &REST
- ARGUMENTS
- &REST
Signals a skippable error as per WITH-SKIPPING.
-
EXTERNAL FUNCTION TEST
- NAME
- &REST
Returns the function associated with the NAME. If no such test can be found, an error is signalled. The name is converted to a keyword. SETF-able.
-
EXTERNAL FUNCTION (SETF TEST)
- FUNCTION
- NAME
- &REST
Sets a function to be used for a certain test. The name is converted to a keyword.
-
EXTERNAL GENERIC-FUNCTION CAUSE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF CAUSE)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ERRORS
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF ERRORS)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEST-NAME
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF TEST-NAME)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEST-OBJECT
- CONDITION
- &REST
No documentation provided. -
EXTERNAL GENERIC-FUNCTION (SETF TEST-OBJECT)
- NEW-VALUE
- CONDITION
- &REST
No documentation provided. -
EXTERNAL MACRO DEFINE-TEST
- NAME
- PARAM
- START
- END
- &REST
- &BODY
- BODY
- &REST
Defines a new test function with NAME. PARAM will be bound to the object to test, which is a string unless otherwise specified, START to the starting index (inc) and END to the ending index (exc). This function creates two other functions automatically: TEST-name This is the main test function. If the test fails, an error of type RATIFICATION-ERROR should be returned. If the test succeeds the argument passed to it is always returned. name-P Equivalent to the TEST- function, except that it simply returns NIL on failure instead of signalling an error.
-
EXTERNAL MACRO PERFORM-COMBINED-TESTS
- &BODY
- TEST-FORMS
- &REST
Same as PERFORM-TESTS, except with WITH-ERRORS-COMBINED in effect.
-
EXTERNAL MACRO PERFORM-TESTS
- &BODY
- TEST-FORMS
- &REST
Performs a series of tests. TEST-FORMS ::= TEST-FORM* TEST-FORM ::= (test-name test-object*) See TEST.
-
EXTERNAL MACRO WITH-ERRORS-COMBINED
- &BODY
- BODY
- &REST
Executes the body with special error handling. Errors are gathered in a COMBINED-ERROR, which is finally signalled once the body finishes or an error occurs and no SKIP-ERROR restart can be found. If no errors occur within the body, the last value of the body is returned as per PROGN.
-
EXTERNAL MACRO WITH-SKIPPING
- &BODY
- BODY
- &REST
Marks the body as being skippable if an error occurs within. This establishes the restart SKIP-ERROR.
-
RATIFY-TYPES
- ORG.TYMOONNEXT.RATIFY.TYPES
No documentation provided.-
EXTERNAL FUNCTION ALPHABETIC-P
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ALPHABETIC, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION ALPHANUMERIC-P
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-ALPHANUMERIC, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION BIT-P
- BIT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-BIT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION BOOLEAN-P
- BOOLEAN
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-BOOLEAN, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION CHARACTER-P
- CHARACTER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-CHARACTER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION COMPLEX-P
- COMPLEX
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-COMPLEX, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION FLOAT-P
- FLOAT
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-FLOAT, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION INTEGER-P
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-INTEGER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION NUMBER-P
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-NUMBER, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION NUMERIC-P
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-NUMERIC, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION PARSE-BIT
- BIT
- &OPTIONAL
- START
- END
- &REST
Parses into a bit of either 1 or 0.
-
EXTERNAL FUNCTION PARSE-BOOLEAN
- BOOLEAN
- &OPTIONAL
- START
- END
- &REST
Parses into a boolean. Returns T if one of ("1" "true" "T"), NIL otherwise.
-
EXTERNAL FUNCTION PARSE-CHARACTER
- CHARACTER
- &OPTIONAL
- START
- END
- &REST
Parses into a character.
-
EXTERNAL FUNCTION PARSE-COMPLEX
- COMPLEX
- &OPTIONAL
- START
- END
- &REST
Parses into a complex number.
-
EXTERNAL FUNCTION PARSE-FLOAT
- FLOAT
- &OPTIONAL
- START
- END
- &REST
Parses into a float.
-
EXTERNAL FUNCTION PARSE-INTEGER
- STRING
- &KEY
- START
- END
- RADIX
- JUNK-ALLOWED
- &REST
Examine the substring of string delimited by start and end (default to the beginning and end of the string) It skips over whitespace characters and then tries to parse an integer. The radix parameter must be between 2 and 36.
-
EXTERNAL FUNCTION PARSE-NUMBER
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Parses into a number.
-
EXTERNAL FUNCTION PARSE-RATIO
- RATIO
- &OPTIONAL
- START
- END
- &REST
Parses into a ratio.
-
EXTERNAL FUNCTION PARSE-RATIONAL
- RATIONAL
- &OPTIONAL
- START
- END
- &REST
Parses into a rational.
-
EXTERNAL FUNCTION PARSE-REAL
- REAL
- &OPTIONAL
- START
- END
- &REST
Parses into a real.
-
EXTERNAL FUNCTION PARSE-STRING
- STRING
- &OPTIONAL
- START
- END
- &REST
Parses into a string (simply returns its argument).
-
EXTERNAL FUNCTION PARSE-UNSIGNED-INTEGER
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Parses into an integer.
-
EXTERNAL FUNCTION RATIO-P
- RATIO
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RATIO, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION RATIONAL-P
- RATIONAL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-RATIONAL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION REAL-P
- REAL
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-REAL, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION STRING-P
- STRING
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-STRING, returns the passed value on success, NIL on error.
-
EXTERNAL FUNCTION TEST-ALPHABETIC
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Tests for an alphabetic string. [a-zA-Z]*
-
EXTERNAL FUNCTION TEST-ALPHANUMERIC
- ALPHA
- &OPTIONAL
- START
- END
- &REST
Tests for an alphanumeric string. [a-zA-Z0-9]*
-
EXTERNAL FUNCTION TEST-BIT
- BIT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid bit. [01]
-
EXTERNAL FUNCTION TEST-BOOLEAN
- BOOLEAN
- &OPTIONAL
- START
- END
- &REST
Tests for a valid boolean. 1|0|true|false|T|NIL case-insensitive
-
EXTERNAL FUNCTION TEST-CHARACTER
- CHARACTER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid character. .{1}
-
EXTERNAL FUNCTION TEST-COMPLEX
- COMPLEX
- &OPTIONAL
- START
- END
- &REST
Tests for a valid complex number. <real>[cC]<real>
-
EXTERNAL FUNCTION TEST-FLOAT
- FLOAT
- &OPTIONAL
- START
- END
- &REST
Tests for a valid float. [+-]?<unsigned-integer>(\.<unsigned-integer>)?(e<unsigned-integer>)?
-
EXTERNAL FUNCTION TEST-INTEGER
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid signed integer. [+-]?<unsigned-integer>
-
EXTERNAL FUNCTION TEST-NUMBER
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid number. <real>|<complex>
-
EXTERNAL FUNCTION TEST-NUMERIC
- NUMBER
- &OPTIONAL
- START
- END
- &REST
Tests for a numeric string. [0-9]*
-
EXTERNAL FUNCTION TEST-RATIO
- RATIO
- &OPTIONAL
- START
- END
- &REST
Tests for a valid ratio. [+-]?<unsigned-integer>/<unsigned-integer>
-
EXTERNAL FUNCTION TEST-RATIONAL
- RATIONAL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid rational. [+-]?<unsigned-integer>(/<unsigned-integer>)?
-
EXTERNAL FUNCTION TEST-REAL
- REAL
- &OPTIONAL
- START
- END
- &REST
Tests for a valid real. <rational>|<float>
-
EXTERNAL FUNCTION TEST-STRING
- STRING
- &OPTIONAL
- START
- END
- &REST
Tests for a valid string. .+
-
EXTERNAL FUNCTION TEST-UNSIGNED-INTEGER
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Tests for a valid unsigned integer. <numeric>
-
EXTERNAL FUNCTION UNSIGNED-INTEGER-P
- INTEGER
- &OPTIONAL
- START
- END
- &REST
Predicate version of TEST-UNSIGNED-INTEGER, returns the passed value on success, NIL on error.
-
EXTERNAL TRANSFORM PARSE-INTEGER
No documentation provided.