X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=std11.el;h=5c06146e56480213b69a385287549f1a549e0eaa;hb=cf41145aa52403400d13e9c8b91cae87f4e32397;hp=da5825aa9b81e6d312fe1d1ac672ddb20a008e86;hpb=cc48a7557c7647edc88f719d7533eebae34cfb39;p=elisp%2Fmu-cite.git diff --git a/std11.el b/std11.el index da5825a..5c06146 100644 --- a/std11.el +++ b/std11.el @@ -4,7 +4,7 @@ ;; Author: MORIOKA Tomohiko ;; Keywords: mail, news, RFC 822, STD 11 -;; Version: $Id: std11.el,v 0.31 1996-09-08 19:35:20 morioka Exp $ +;; Version: $Id: std11.el,v 0.33 1996-09-14 08:42:39 morioka Exp $ ;; This file is part of MU (Message Utilities). @@ -211,6 +211,35 @@ If BOUNDARY is not nil, it is used as message header separator. )) string "") "\"")) +(defun std11-strip-quoted-pair (str) + (let ((dest "") + (i 0) + (len (length str)) + chr flag) + (while (< i len) + (setq chr (aref str i)) + (if (or flag (not (eq chr ?\\))) + (progn + (setq dest (concat dest (char-to-string chr))) + (setq flag nil) + ) + (setq flag t) + ) + (setq i (+ i 1)) + ) + dest)) + +(defun std11-strip-quoted-string (string) + "Strip quoted-string STRING. [std11.el]" + (std11-strip-quoted-pair + (let ((max (1- (length string)))) + (if (and (eq (aref string 0) ?\") + (eq (aref string max) ?\") + ) + (substring string 1 max) + string) + ))) + ;;; @ composer ;;;