;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Keywords: mail, news, RFC 822, STD 11
-;; Version: $Id: std11-parse.el,v 0.1 1996-08-28 16:57:42 morioka Exp $
+;; Version: $Id: std11-parse.el,v 0.2 1996-08-28 17:06:45 morioka Exp $
;; This file is part of tl (Tiny Library).
(defconst std11-space-chars " \t\n")
(defconst std11-spaces-regexp (concat "^[" std11-space-chars "]+"))
+(defconst std11-special-chars "][()<>@,;:\\<>.\"")
(defun std11-analyze-spaces (str)
(if (string-match std11-spaces-regexp str)
(substring str end)
))))
+(defun std11-analyze-special (str)
+ (if (and (> (length str) 0)
+ (find (aref str 0) std11-special-chars)
+ )
+ (cons (cons 'specials (substring str 0 1))
+ (substring str 1)
+ )))
+
;;; @ end
;;;