projects
/
elisp
/
apel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4c0eba
)
(std11-analyze-atom): New function.
author
morioka
<morioka>
Wed, 28 Aug 1996 17:15:33 +0000
(17:15 +0000)
committer
morioka
<morioka>
Wed, 28 Aug 1996 17:15:33 +0000
(17:15 +0000)
std11-parse.el
patch
|
blob
|
history
diff --git
a/std11-parse.el
b/std11-parse.el
index
aaea3da
..
d56b4ff
100644
(file)
--- a/
std11-parse.el
+++ b/
std11-parse.el
@@
-4,7
+4,7
@@
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Keywords: mail, news, RFC 822, STD 11
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Keywords: mail, news, RFC 822, STD 11
-;; Version: $Id: std11-parse.el,v 0.2 1996-08-28 17:06:45 morioka Exp $
+;; Version: $Id: std11-parse.el,v 0.3 1996-08-28 17:15:33 morioka Exp $
;; This file is part of tl (Tiny Library).
;; This file is part of tl (Tiny Library).
@@
-34,6
+34,8
@@
(defconst std11-space-chars " \t\n")
(defconst std11-spaces-regexp (concat "^[" std11-space-chars "]+"))
(defconst std11-special-chars "][()<>@,;:\\<>.\"")
(defconst std11-space-chars " \t\n")
(defconst std11-spaces-regexp (concat "^[" std11-space-chars "]+"))
(defconst std11-special-chars "][()<>@,;:\\<>.\"")
+(defconst std11-atom-regexp
+ (concat "^[^" std11-special-chars std11-space-chars "]+"))
(defun std11-analyze-spaces (str)
(if (string-match std11-spaces-regexp str)
(defun std11-analyze-spaces (str)
(if (string-match std11-spaces-regexp str)
@@
-50,6
+52,13
@@
(substring str 1)
)))
(substring str 1)
)))
+(defun std11-analyze-atom (str)
+ (if (string-match std11-atom-regexp str)
+ (let ((end (match-end 0)))
+ (cons (cons 'atom (substring str 0 end))
+ (substring str end)
+ ))))
+
;;; @ end
;;;
;;; @ end
;;;