+CHISE_DS *ds;
+
+static int
+test_name_map_func (CHISE_DS *ds, unsigned char *name)
+{
+ printf ("feature : %s\n", name);
+ return 0;
+}
+
+static int
+test_map_func (CHISE_Char_ID cid, CHISE_Feature_Table *db,
+ CHISE_Value *valdatum)
+{
+ unsigned char buf[256];
+ unsigned char name[256];
+ int ucs = -1;
+
+ printf ("#x%08X ", cid);
+
+ if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "=ucs"),
+ buf, sizeof (buf)) != NULL )
+ {
+ ucs = atoi (buf);
+ printf ("[U-%08X]", ucs);
+ }
+ else if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "=>ucs"),
+ buf, sizeof (buf)) != NULL )
+ {
+ ucs = atoi (buf);
+ printf ("(U-%08X)", ucs);
+ }
+ else
+ printf (" ");
+
+ if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "name"),
+ name, sizeof (name)) != NULL )
+ printf (" %s", name);
+
+ if (chise_value_size (valdatum) < 256)
+ {
+ strncpy (buf, chise_value_data (valdatum),
+ chise_value_size (valdatum));
+ buf[chise_value_size (valdatum)] = '\0';
+ printf ("\t%s\n", buf);
+ }
+ else
+ printf ("\t%s\n",
+ chise_value_to_c_string (valdatum));
+ return 0;
+}
+
+static int
+test_radical_func (CHISE_Char_ID cid, CHISE_Feature_Table *db,
+ CHISE_Value *valdatum)
+{
+ unsigned char buf[256];
+ unsigned char name[256];
+ int ucs = -1;
+
+ if (chise_value_size (valdatum) < 256)
+ {
+ strncpy (buf, chise_value_data (valdatum),
+ chise_value_size (valdatum));
+ buf[chise_value_size (valdatum)] = '\0';
+ printf ("%s\t", buf);
+ }
+ else
+ printf ("%s\t",
+ chise_value_to_c_string (valdatum));
+
+ if (strcmp (buf, "75") == 0) /* Tree */
+ {
+ printf ("#x%08X ", cid);
+ if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "=ucs"),
+ buf, sizeof (buf)) != NULL )
+ {
+ ucs = atoi (buf);
+ printf ("[U-%08X]", ucs);
+ }
+ else if ( chise_char_gets_feature_value
+ (cid, chise_ds_get_feature (ds, "=>ucs"),
+ buf, sizeof (buf)) != NULL )
+ {
+ ucs = atoi (buf);
+ printf ("(U-%08X)", ucs);
+ }
+ else
+ printf (" ");
+
+ printf ("\n");
+ }
+ else
+ printf ("\n");
+ return 0;
+}