00001 00012 /* 00013 * Copyright © 2008 Red Hat, Inc. All rights reserved. 00014 * Copyright © 2008 Ding-Yi Chen <dchen at redhat dot com> 00015 * 00016 * This file is part of the libUnihan Project. 00017 * 00018 * This library is free software; you can redistribute it and/or 00019 * modify it under the terms of the GNU Lesser General Public 00020 * License as published by the Free Software Foundation; either 00021 * version 2 of the License, or (at your option) any later version. 00022 * 00023 * This library is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 * GNU Lesser General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU Lesser General Public 00029 * License along with this program; if not, write to the 00030 * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 00031 * Boston, MA 02111-1307 USA 00032 */ 00033 00034 #include "Unihan.h" 00035 00056 UnihanTable unihanField_get_builtin_preferred_table(UnihanField field); 00057 00078 UnihanTable *unihanField_get_builtin_required_tables(UnihanField field); 00079 00091 gboolean unihanField_builtin_has_flags(UnihanField field, guint flags); 00092 00102 UnihanField unihanField_builtin_parse(const char *str); 00103 00110 const char *unihanField_builtin_to_string(UnihanField field); 00111 00122 UnihanField* unihanTable_get_builtin_fields(UnihanTable table); 00123 00133 UnihanTable unihanTable_builtin_parse(const char *str); 00134 00145 const char *unihanTable_builtin_to_string(UnihanTable table); 00146 00153 const char *unihanTable_builtin_to_string(UnihanTable table); 00154 00155 00172 int unihan_import_builtin_table_tagValue(sqlite3 *db, gunichar code, UnihanField field, const char *tagValue);