Lines Matching refs:entry
57 struct mappings_entry *entry; in mappings_add() local
61 entry = &map->entries[i]; in mappings_add()
62 if (e == i || entry->cp_uni > cp_uni) { in mappings_add()
74 entry = &map->entries[i]; in mappings_add()
75 entry->cp_uni = cp_uni; in mappings_add()
76 entry->n = 0; in mappings_add()
80 } else if (entry->cp_uni < cp_uni) { in mappings_add()
92 entry = &map->entries[i + 1]; in mappings_add()
93 entry->cp_uni = cp_uni; in mappings_add()
94 entry->n = 0; in mappings_add()
102 if (entry->n >= sizeof(entry->cp_932) / sizeof(*entry->cp_932)) in mappings_add()
104 entry->cp_932[entry->n++] = cp_932; in mappings_add()
197 static void to_cp932_visitor(const struct mappings_entry *entry) in to_cp932_visitor() argument
202 if (entry->cp_uni < 32 || entry->cp_uni == 127) in to_cp932_visitor()
205 i = utf32_utf8(buf_uni, entry->cp_uni); in to_cp932_visitor()
218 "expect {\n", entry->cp_uni, buf_uni); in to_cp932_visitor()
220 for (i = 0; i < entry->n; ++i) { in to_cp932_visitor()
222 const int c = entry->cp_932[i]; in to_cp932_visitor()
236 static void from_cp932_visitor(const struct mappings_entry *entry) in from_cp932_visitor() argument
241 if (entry->cp_uni < 32 || entry->cp_uni == 127) in from_cp932_visitor()
244 len = utf32_utf8(buf_uni, entry->cp_uni); in from_cp932_visitor()
254 for (i = 0; i < entry->n; ++i) { in from_cp932_visitor()
255 const int c = entry->cp_932[i]; in from_cp932_visitor()
266 entry->cp_uni, buf_cp932, buf_uni, len); in from_cp932_visitor()
270 static void to_cp50220_visitor(const struct mappings_entry *entry) in to_cp50220_visitor() argument
275 if (entry->cp_uni < 32 || entry->cp_uni == 127) in to_cp50220_visitor()
278 i = utf32_utf8(buf_uni, entry->cp_uni); in to_cp50220_visitor()
291 "expect {\n", entry->cp_uni, buf_uni); in to_cp50220_visitor()
293 for (i = 0; i < entry->n; ++i) { in to_cp50220_visitor()
295 const int c = entry->cp_932[i]; in to_cp50220_visitor()
324 static void to_cp50222_visitor(const struct mappings_entry *entry) in to_cp50222_visitor() argument
329 if (entry->cp_uni < 32 || entry->cp_uni == 127) in to_cp50222_visitor()
332 i = utf32_utf8(buf_uni, entry->cp_uni); in to_cp50222_visitor()
345 "expect {\n", entry->cp_uni, buf_uni); in to_cp50222_visitor()
347 for (i = 0; i < entry->n; ++i) { in to_cp50222_visitor()
349 const int c = entry->cp_932[i]; in to_cp50222_visitor()