Home | History | Annotate | Download | only in compose

Lines Matching refs:table

59 #include "table.h"
279 lex_include_string(struct scanner *s, struct xkb_compose_table *table,
312 char *path = get_locale_compose_file_path(table->locale);
365 add_node(struct xkb_compose_table *table, xkb_keysym_t keysym)
372 darray_append(table->nodes, new);
373 return darray_size(table->nodes) - 1;
377 add_production(struct xkb_compose_table *table, struct scanner *s,
385 node = &darray_item(table->nodes, curr);
400 uint32_t next = add_node(table, production->lhs[lhs_pos]);
402 node = &darray_item(table->nodes, curr);
407 node = &darray_item(table->nodes, curr);
422 uint32_t successor = add_node(table, production->lhs[lhs_pos + 1]);
424 node = &darray_item(table->nodes, curr);
431 node = &darray_item(table->nodes, curr);
440 if (streq(&darray_item(table->utf8, node->u.leaf.utf8),
450 node->u.leaf.utf8 = darray_size(table->utf8);
451 darray_append_items(table->utf8, production->string,
482 parse(struct xkb_compose_table *table, struct scanner *s,
486 do_include(struct xkb_compose_table *table, struct scanner *s,
515 scanner_init(&new_s, table->ctx, string, size, path, s->priv);
517 ok = parse(table, &new_s, include_depth + 1);
529 parse(struct xkb_compose_table *table, struct scanner *s,
562 switch (tok = lex_include_string(s, table, &val)) {
572 if (!do_include(table, s, val.string.str, include_depth))
696 add_production(table, s, &production);
727 parse_string(struct xkb_compose_table *table, const char *string, size_t len,
733 scanner_init(&s, table->ctx, string, len, file_name, &cache);
734 if (!parse(table, &s, 0))
737 darray_shrink(table->nodes);
738 darray_shrink(table->utf8);
743 parse_file(struct xkb_compose_table *table, FILE *file, const char *file_name)
751 log_err(table->ctx, "Couldn't read Compose file %s: %s\n",
756 ok = parse_string(table, string, size, file_name);