X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=strings.lisp;h=9dbe1babdccd7950172033dc0d5c6d9614ff4921;hp=533bf013a5c663fba805486f07927344f7f39afd;hb=19190787da0e49afad011b90b4b6ce8608b22444;hpb=5f3fba52fd7c9984a7f797c4720ec93799d6d786 diff --git a/strings.lisp b/strings.lisp index 533bf01..9dbe1ba 100644 --- a/strings.lisp +++ b/strings.lisp @@ -413,9 +413,9 @@ for characters in a string" (declare (type (integer 0 15) n)) (schar +hex-chars+ n)) -(defconstant +char-code-lower-a+ (char-code #\a)) -(defconstant +char-code-upper-a+ (char-code #\A)) -(defconstant +char-code-0+ (char-code #\0)) +(defconst +char-code-lower-a+ (char-code #\a)) +(defconst +char-code-upper-a+ (char-code #\A)) +(defconst +char-code-0+ (char-code #\0)) (declaim (type fixnum +char-code-0+ +char-code-upper-a+ +char-code-0)) @@ -627,7 +627,7 @@ for characters in a string" (defun trim-non-alphanumeric (word) "Strip non-alphanumeric characters from beginning and end of a word." (declare (simple-string word) - (optimize (speed 3) (safety 0) (size 0))) + (optimize (speed 3) (safety 0) (space 0))) (let* ((start 0) (len (length word)) (end len))