Ignore:
Timestamp:
03/11/04 09:37:09 (17 years ago)
Author:
piso
Message:

ALPHANUMERICP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/chars.lisp

    r5728 r6177  
    22;;;
    33;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: chars.lisp,v 1.9 2004-02-09 13:07:20 piso Exp $
     4;;; $Id: chars.lisp,v 1.10 2004-03-11 09:37:09 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    3636    (t nil))))
    3737
    38 
    3938(defun alphanumericp (char)
    40   (declare (character char))
    41   (let ((m (char-code char)))
    42     (or (< 47 m 58) (< 64 m 91) (< 96 m 123))))
    43 
     39  (or (digit-char-p char) (alpha-char-p char)))
    4440
    4541(defun char/= (character &rest more-characters)
     
    5248      (return nil))))
    5349
    54 
    5550(defun char< (character &rest more-characters)
    5651  (do* ((c character (car list))
     
    6055         (char-int (car list)))
    6156      (return nil))))
    62 
    6357
    6458(defun char> (character &rest more-characters)
     
    7064      (return nil))))
    7165
    72 
    7366(defun char<= (character &rest more-characters)
    7467  (do* ((c character (car list))
     
    7871    (char-int (car list)))
    7972      (return nil))))
    80 
    8173
    8274(defun char>= (character &rest more-characters)
     
    8880      (return nil))))
    8981
    90 
    9182(defmacro equal-char-code (character)
    9283  `(let ((ch (char-code ,character)))
    9384     (if (< 96 ch 123) (- ch 32) ch)))
    94 
    9585
    9686(defun char-not-equal (character &rest more-characters)
Note: See TracChangeset for help on using the changeset viewer.