From: morioka Date: Wed, 28 Aug 1996 17:06:45 +0000 (+0000) Subject: (std11-analyze-special): New function. X-Git-Tag: XEmacs-20_3-b6~55 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=64db169a8d23ff2aa2bd072fc7f6c5182a820258;hp=8f941f616e400b9a73268ac52e7ec37d94a7b028;p=elisp%2Fapel.git (std11-analyze-special): New function. --- diff --git a/std11-parse.el b/std11-parse.el index 911cace..aaea3da 100644 --- a/std11-parse.el +++ b/std11-parse.el @@ -4,7 +4,7 @@ ;; Author: MORIOKA Tomohiko ;; 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). @@ -33,6 +33,7 @@ (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) @@ -41,6 +42,14 @@ (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 ;;;