Example #1
0
void zp_obj::dump(int level, z_file& outf,int flags)
{
	zo_ftr_entry* f;
	int indent=level;
	while(indent--)	outf<<"  ";	
	//outf<<get_map_key()<<'['<<(int)_offset<<']'<< " ";
	outf<<get_map_key()<< "[";
	dump_custom(outf);
	/*
	zo_feature_list full_list;
	get_feature_map(&g_man,full_list,ZO_MT_PROP,false);
	full_list.reset_iter();
	while(f=full_list.get_next())
	{
		ctext name=full_list._internal_iter.key;
		outf<<name<<',';
		this->get_feature


	}*/

	outf<<"]\n";
	if(!_children) return;
	size_t size=_children->size();
	size_t i;
	for(i=0;i<size;i++)
	{
		zp_obj* item=_children->at(i);
		Z_ASSERT(item);
		item->dump(level+1,outf,flags);
	}
}
Example #2
0
static uim_bool
dump_group(const char *group_sym)
{
  struct uim_custom_group *group;
  char **custom_syms, **custom_sym;

  group = uim_custom_group_get(group_sym);
  if (!group)
    return UIM_FALSE;

  /* print group header */
  printf(";;;\n;;; %s\n;;;\n", group->label);

  custom_syms = uim_custom_collect_by_group(group_sym);
  if (custom_syms) {
    for (custom_sym = custom_syms; *custom_sym; custom_sym++) {
      dump_custom(*custom_sym);
    }
    uim_custom_symbol_list_free(custom_syms);
  }

  printf("\n\n");

  return UIM_TRUE;
}