(ideographic-structure-find-char): New function.
authortomo <tomo>
Sat, 3 Nov 2001 06:32:08 +0000 (06:32 +0000)
committertomo <tomo>
Sat, 3 Nov 2001 06:32:08 +0000 (06:32 +0000)
lisp/utf-2000/ideograph-util.el

index 5cd7fda..562485b 100644 (file)
       (write-region (point-min)(point-max) file)
       )))
 
+;;;###autoload
+(defun ideographic-structure-find-char (structure)
+  (let (rest)
+    (map-char-attribute (lambda (char value)
+                         (setq rest structure)
+                         (catch 'tag
+                           (while (and rest value)
+                             (unless (char-ref= (car rest)(car value))
+                               (throw 'tag nil))
+                             (setq rest (cdr rest)
+                                   value (cdr value)))
+                           (unless (or rest value)
+                             char)))
+                       'ideographic-structure)))
+
 (provide 'ideograph-util)
 
 ;;; ideograph-util.el ends here