Lines Matching defs:prefix
46 unsigned int uri, prefix;
91 defaults[0].prefix = g_quark_from_static_string("sodipodi");
95 defaults[1].prefix = g_quark_from_static_string("xlink");
99 defaults[2].prefix = g_quark_from_static_string("svg");
103 defaults[3].prefix = g_quark_from_static_string("inkscape");
107 defaults[4].prefix = g_quark_from_static_string("rdf");
111 defaults[5].prefix = g_quark_from_static_string("cc");
115 defaults[6].prefix = g_quark_from_static_string("dc");
119 defaults[7].prefix = g_quark_from_static_string("osb");
124 // entry to the table last (where it gets used for URI -> prefix
125 // lookups, but not prefix -> URI lookups), we effectively transfer
129 defaults[8].prefix = g_quark_from_static_string("sodipodi");
136 defaults[9].prefix = g_quark_from_static_string("sodipodi");
142 defaults[10].prefix = g_quark_from_static_string("cc");
176 char const *prefix;
185 prefix = NULL;
188 prefix = g_quark_to_string(iter->prefix);
193 if (!prefix) {
201 if (found->prefix != prefix_key) {
209 if (found) { // prefix already used?
221 ns->prefix = g_quark_from_string(new_prefix);
228 prefix = g_quark_to_string(ns->prefix);
231 return prefix;
234 gchar const *sp_xml_ns_prefix_uri(gchar const *prefix)
239 if (!prefix) return NULL;
245 GQuark const key = g_quark_from_string(prefix);
248 if ( iter->prefix == key ) {