r9972: new pkg
[kmrcl.git] / strings.lisp
index 533bf013a5c663fba805486f07927344f7f39afd..0c5ae7c4ec47407e0e77b358a1bf4c713dee89b2 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))
@@ -648,7 +648,6 @@ for characters in a string"
       word)))
 
          
-
 (defun collapse-whitespace (s)
   "Convert multiple whitespace characters to a single space character."
   (declare (simple-string s)