;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Revision: 0.18 $
+;; Version: $Revision: 0.19 $
;; Keywords: encoded-word, MIME, multilingual, header, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst eword-encode-RCS-ID
- "$Id: eword-encode.el,v 0.18 1997-06-21 09:00:09 morioka Exp $")
+ "$Id: eword-encode.el,v 0.19 1997-06-21 13:47:35 morioka Exp $")
(defconst eword-encode-version (get-version-string eword-encode-RCS-ID))
;;; @ leading char
;;;
-(defun tm-eword::char-type (chr)
- (if (or (= chr ? )(= chr ?\t))
+(defsubst eword-encode-char-type (character)
+ (if (or (eq character ? )(eq character ?\t))
nil
- (char-charset chr)
+ (char-charset character)
))
(defun tm-eword::parse-lc-word (str)
(let* ((chr (sref str 0))
- (lc (tm-eword::char-type chr))
+ (lc (eword-encode-char-type chr))
(i (char-bytes chr))
(len (length str))
)
(while (and (< i len)
(setq chr (sref str i))
- (eq lc (tm-eword::char-type chr))
+ (eq lc (eword-encode-char-type chr))
)
(setq i (+ i (char-bytes chr)))
)