From: tomo Date: Mon, 17 May 1999 09:41:52 +0000 (+0000) Subject: (split-char-or-char-int): New function [moved from vietnamese.el]. X-Git-Tag: r21-2-12~3 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a66e29a3b1932fe9e29bfa1e8034e158d607a8f8;p=chise%2Fxemacs-chise.git (split-char-or-char-int): New function [moved from vietnamese.el]. --- diff --git a/lisp/mule/mule-misc.el b/lisp/mule/mule-misc.el index 3488781..0c93929 100644 --- a/lisp/mule/mule-misc.el +++ b/lisp/mule/mule-misc.el @@ -1,6 +1,6 @@ ;; mule-misc.el --- Miscellaneous Mule functions. -;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. +;; Copyright (C) 1995,1999 Electrotechnical Laboratory, JAPAN. ;; Licensed to the Free Software Foundation. ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc. ;; Copyright (C) 1995 Amdahl Corporation. @@ -210,6 +210,17 @@ because its `find-charset-string' ignores ASCII charset." (cons charset dest) )))) +(defun split-char-or-char-int (char) + "Return list of charset and one or two position-codes of CHAR. +CHAR must be character or integer." + (if (characterp char) + (split-char char) + (let ((c (int-char char))) + (if c + (split-char c) + (list 'ascii c) + )))) + ;;; Commands