diff --git a/src/utility.cl b/src/utility.cl new file mode 100644 index 0000000..71560fd --- /dev/null +++ b/src/utility.cl @@ -0,0 +1,23 @@ +;;;; CLASH --- The Common Lisp Adaptable Simple HTTP server +;;;; This is copyrighted software. See documentation for terms. +;;;; +;;;; utility.cl --- Basic substrate utilities +;;;; +;;;; Checkout Tag: $Name$ +;;;; $Id$ + +(in-package :CLASH) + +;;;; %File Description: +;;;; +;;;; +;;;; + +(deftype string-index () + "Type of string indices." + `(integer 0 (,array-dimension-limit))) + +(deftype string-inner-index (length) + "Type of inner string indices, i.e. those that occur at least length +characters inside the string." + `(integer 0 (,(- array-dimension-limit (- length 1)))))