Changeset 9628
- Timestamp:
- May 30, 2008, 6:44:22 AM (16 years ago)
- File:
-
- 1 edited
-
branches/working-0711/ccl/level-0/l0-io.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0711/ccl/level-0/l0-io.lisp
r8705 r9628 81 81 (logior #x80 (the fixnum (logand #x3f (the fixnum (ash code -6)))))) 82 82 (setf (%get-unsigned-byte pointer (the fixnum (+ idx 3))) 83 (log and #x3f code))83 (logior #x80 (logand #x3f code))) 84 84 (incf idx 4)))))) 85 85 … … 147 147 (end (+ start noctets)) 148 148 (nchars 0 (1+ nchars))) 149 ((= i end) (values nchars i))149 ((= i end) (values nchars (- i start))) 150 150 (let* ((code (%get-unsigned-byte pointer i)) 151 (nexti (+ i (cond ((< code #x 80) 1)151 (nexti (+ i (cond ((< code #xc2) 1) 152 152 ((< code #xe0) 2) 153 153 ((< code #xf0) 3) 154 (t 4))))) 154 ((< code #xf8) 4) 155 (t 1))))) 155 156 (declare (type (unsigned-byte 8) code)) 156 157 (if (> nexti end) 157 (return (values nchars i))158 (return (values nchars (- i start))) 158 159 (setq i nexti))))) 159 160
Note:
See TracChangeset
for help on using the changeset viewer.
