]> code.delx.au - gnu-emacs/blobdiff - lisp/language/china-util.el
*** empty log message ***
[gnu-emacs] / lisp / language / china-util.el
index 7eb5e102f8268de371700425751796ac728be410..3f6dee9488f207461f5dd4f484a24ba8aa4deea3 100644 (file)
@@ -1,8 +1,11 @@
 ;;; china-util.el --- utilities for Chinese  -*- coding: iso-2022-7bit -*-
 
-;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
-;; Licensed to the Free Software Foundation.
+;; Copyright (C) 1995, 2003 Electrotechnical Laboratory, JAPAN.
+;;   Licensed to the Free Software Foundation.
 ;; Copyright (C) 1995, 2001 Free Software Foundation, Inc.
+;; Copyright (C) 2003
+;;   National Institute of Advanced Industrial Science and Technology (AIST)
+;;   Registration Number H13PRO009
 
 ;; Keywords: mule, multilingual, Chinese
 
   "Flag to tell if we should care line continuation convention of Hz.")
 
 (defconst hz-set-msb-table
-  (let ((str (make-string 127 0))
-       (i 0))
-    (while (< i 33)
-      (aset str i i)
-      (setq i (1+ i)))
-    (while (< i 127)
-      (aset str i (+ i 128))
-      (setq i (1+ i)))
-    str))
+  (eval-when-compile
+    (let ((chars nil)
+         (i 0))
+      (while (< i 33)
+       (push i chars)
+       (setq i (1+ i)))
+      (while (< i 127)
+       (push (+ i 128) chars)
+       (setq i (1+ i)))
+      (apply 'string (nreverse chars)))))
 
 ;;;###autoload
 (defun decode-hz-region (beg end)