From: tmorioka Date: Mon, 24 Feb 1997 08:58:33 +0000 (+0000) Subject: (base64-token-regexp, base64-token-padding-regexp, X-Git-Tag: Hokutetsu-Ishikawa-new~310 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=088feaf447f1955ada237d2f360e47c6186e3d1b;p=elisp%2Fsemi.git (base64-token-regexp, base64-token-padding-regexp, eword-B-encoded-text-regexp): New constant; moved from mime-def.el. --- diff --git a/eword-decode.el b/eword-decode.el index 5c03ede..4959ef9 100644 --- a/eword-decode.el +++ b/eword-decode.el @@ -10,7 +10,7 @@ ;; Renamed: 1993/06/03 to tiny-mime.el ;; Renamed: 1995/10/03 from tiny-mime.el (split off encoder) ;; Renamed: 1997/02/22 from tm-ew-d.el -;; Version: $Revision: 0.5 $ +;; Version: $Revision: 0.6 $ ;; Keywords: encoded-word, MIME, multilingual, header, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -41,7 +41,7 @@ ;;; (defconst eword-decode-RCS-ID - "$Id: eword-decode.el,v 0.5 1997-02-24 08:52:01 tmorioka Exp $") + "$Id: eword-decode.el,v 0.6 1997-02-24 08:58:33 tmorioka Exp $") (defconst eword-decode-version (get-version-string eword-decode-RCS-ID)) @@ -63,6 +63,29 @@ (regexp-quote "?="))) +;;; @@ Base64 +;;; + +(defconst base64-token-regexp "[A-Za-z0-9+/]") +(defconst base64-token-padding-regexp "[A-Za-z0-9+/=]") + +(defconst eword-B-encoded-text-regexp + (concat "\\(\\(" + base64-token-regexp + base64-token-regexp + base64-token-regexp + base64-token-regexp + "\\)*" + base64-token-regexp + base64-token-regexp + base64-token-padding-regexp + base64-token-padding-regexp + "\\)")) + +;; (defconst eword-B-encoding-and-encoded-text-regexp +;; (concat "\\(B\\)\\?" eword-B-encoded-text-regexp)) + + ;;; @ for string ;;;