summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2af6187)
This saves us needing a list of the whitespace characters known by
each individual implementation.
(defun whitespace-char-p (ch)
"Return whether CH is a whitespace character or not."
(case ch
(defun whitespace-char-p (ch)
"Return whether CH is a whitespace character or not."
(case ch
- ((#\space #\tab #\newline #\return #\vt
- #+cmu #\formfeed
- #+clisp #\page) t)
+ (#.(loop for i below char-code-limit
+ for ch = (code-char i)
+ unless (with-input-from-string (in (string ch))
+ (peek-char t in nil))
+ collect ch)
+ t)
(t nil)))
(declaim (ftype (function nil ()) slot-unitialized))
(t nil)))
(declaim (ftype (function nil ()) slot-unitialized))