;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;; Version: $Revision: 0.17 $
+;; Version: $Revision: 0.18 $
;; Keywords: encoded-word, MIME, multilingual, header, mail, news
;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
;;;
(defconst eword-encode-RCS-ID
- "$Id: eword-encode.el,v 0.17 1997-06-18 14:26:30 morioka Exp $")
+ "$Id: eword-encode.el,v 0.18 1997-06-21 09:00:09 morioka Exp $")
(defconst eword-encode-version (get-version-string eword-encode-RCS-ID))
;;; @ encoded-text encoder
;;;
-(defun tm-eword::encode-encoded-text (charset encoding string &optional mode)
+(defun eword-encode-text (charset encoding string &optional mode)
+ "Encode STRING as an encoded-word, and return the result.
+CHARSET is a symbol to indicate MIME charset of the encoded-word.
+ENCODING allows \"B\" or \"Q\".
+MODE is allows `text', `comment', `phrase' or nil. Default value is
+`phrase'."
(let ((text
(cond ((string= encoding "B")
(base64-encode-string string))
(<= (+ column len) 76)
)
(setq string
- (tm-eword::encode-encoded-text
+ (eword-encode-text
(tm-eword::rword-charset rword)
(tm-eword::rword-encoding rword)
(cdr ret)
(setq rwl (cons (cons (substring string p) (cdr rword))
(cdr rwl)))
(setq string
- (tm-eword::encode-encoded-text
+ (eword-encode-text
(tm-eword::rword-charset rword)
(tm-eword::rword-encoding rword)
str