From: tomo Date: Wed, 17 Apr 2002 09:02:43 +0000 (+0000) Subject: (ids-parse-string): Add DOC-string. X-Git-Tag: ids-0_0~9 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a9b675550ff94ec57bacef78a13742470bace5ff;p=chise%2Fids.git (ids-parse-string): Add DOC-string. (ids-format-list): Likewise; add autoload cookie. --- diff --git a/ids.el b/ids.el index 9948d39..a8a4182 100644 --- a/ids.el +++ b/ids.el @@ -1,6 +1,6 @@ ;;; ids.el --- Parser and utility for Ideographic Description Sequence. -;; Copyright (C) 2001 MORIOKA Tomohiko +;; Copyright (C) 2001,2002 MORIOKA Tomohiko ;; Author: MORIOKA Tomohiko ;; Keywords: IDS, IDC, Ideographs, UCS, Unicode @@ -91,8 +91,9 @@ (cdr ret))))))))) ;;;###autoload -(defun ids-parse-string (string) - (let ((ret (ids-parse-element string))) +(defun ids-parse-string (ids-string) + "Parse IDS-STRING and return the result." + (let ((ret (ids-parse-element ids-string))) (if (= (length (cdr ret)) 0) (car ret)))) @@ -107,7 +108,9 @@ ((setq ret (assq 'ideographic-structure ids-char)) (ids-format-list (cdr ret)))))) +;;;###autoload (defun ids-format-list (ids-list) + "Format ideographic-structure IDS-LIST as an IDS-string." (mapconcat (lambda (cell) (ids-format-unit (if (char-ref-p cell)