r5036: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 26 May 2003 21:43:05 +0000 (21:43 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 26 May 2003 21:43:05 +0000 (21:43 +0000)
debian/changelog
package.lisp
strings.lisp
xml-utils.lisp

index a750fbb7ac3014a90eb952c774050b3c7dbbd121..ca4b260adabb7b9a5b622781f962e6e792a1c37e 100644 (file)
@@ -1,8 +1,14 @@
+cl-kmrcl (1.47-2) unstable; urgency=low
+
+  * New upstring
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 26 May 2003 15:24:45 -0600
+
 cl-kmrcl (1.47-1) unstable; urgency=low
 
   * New upstream
 
 cl-kmrcl (1.47-1) unstable; urgency=low
 
   * New upstream
 
- -- Kevin M. Rosenberg <kmr@debian.org>  Sat, 17 May 2003 01:45:19 -0600
+ -- Kevin M. Rosenberg <kmr@debian.org>  Mon, 26 May 2003 15:24:37 -0600
 
 cl-kmrcl (1.46-1) unstable; urgency=low
 
 
 cl-kmrcl (1.46-1) unstable; urgency=low
 
index a2655250fb7696ccf5662765cc0564809758756d..3eb7b1d371ef00937216ba5ccf752099ab273178 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: package.lisp,v 1.32 2003/05/16 08:32:10 kevin Exp $
+;;;; $Id: package.lisp,v 1.33 2003/05/26 21:43:05 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
    #:xml-tag-contents
    #:positions-xml-tag-contents
    #:xml-cdata
    #:xml-tag-contents
    #:positions-xml-tag-contents
    #:xml-cdata
+   #:write-xml-cdata
    
    ;; From console
    *console-msgs*
    
    ;; From console
    *console-msgs*
index e735640189e2aa48582c8cd8b7d191dce697bb50..9d8620e1a426ebf8daa916a616ba30f7e837cc85 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: strings.lisp,v 1.33 2003/05/17 07:34:45 kevin Exp $
+;;;; $Id: strings.lisp,v 1.34 2003/05/26 21:43:05 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -201,9 +201,7 @@ list of characters and replacement strings."
 
 (defun escape-xml-string (string)
   "Escape invalid XML characters"
 
 (defun escape-xml-string (string)
   "Escape invalid XML characters"
-  (substitute-chars-strings 
-   string '((#\& . "&amp;") (#\> . "&gt;") (#\< . "&lt;") (#\" . "&quot;"))))
-
+  (substitute-chars-strings string '((#\& . "&amp;") (#\< . "&lt;"))))
 
 (defun make-usb8-array (len)
   (make-array len :adjustable nil
 
 (defun make-usb8-array (len)
   (make-array len :adjustable nil
index 20029fe109a29b449736cffb0955099790c73e1e..be7952bfedad0f612311db2d5f4553771301447b 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: xml-utils.lisp,v 1.6 2002/12/04 16:49:23 kevin Exp $
+;;;; $Id: xml-utils.lisp,v 1.7 2003/05/26 21:43:05 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -91,3 +91,15 @@ and position of character following end tag."
 (defun xml-cdata (str)
   (concatenate 'string "<![CDATA[" str "]]>"))
 
 (defun xml-cdata (str)
   (concatenate 'string "<![CDATA[" str "]]>"))
 
+(defun write-xml-cdata (str s)
+  (declare (simple-string str) (optimize (speed 3) (safety 0)))
+  (do* ((len (length str))
+       (i 0 (1+ i)))
+       ((= i len) str)
+    (declare (fixnum i len))
+    (let ((c (schar str i)))
+      (case c
+       (#\< (write-string "&lt;" s))
+       (#\& (write-string "&amp;" s))
+       (t   (write-char c s))))))
+