r9892: new functions
[kmrcl.git] / strings.lisp
index 533bf013a5c663fba805486f07927344f7f39afd..9dbe1babdccd7950172033dc0d5c6d9614ff4921 100644 (file)
@@ -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))