Lines Matching defs:leaf

145  *                            node, otherwise it is a leaf node
170 * leaf[0]: The unicode version, stored as a generation number that is
174 * leaf[1]: Canonical Combining Class. During normalization, we need
182 * leaf[2]: Decomposition. If leaf[1] == 255, then leaf[2] is the
214 /* Size of the synthesized leaf used for Hangul syllable decomposition. */
289 /* Fill in base of leaf. */
313 * Returns the leaf if one exists, NULL otherwise.
391 * Returns the leaf if one exists, NULL otherwise.
408 utf8leaf_t *leaf;
417 leaf = utf8lookup(data, hangul, s);
418 if (!leaf)
421 leaf_age = utf8agetab[LEAF_GEN(leaf)];
437 utf8leaf_t *leaf;
446 leaf = utf8lookup(data, hangul, s);
447 if (!leaf)
449 leaf_age = utf8agetab[LEAF_GEN(leaf)];
464 utf8leaf_t *leaf;
473 leaf = utf8nlookup(data, hangul, s, len);
474 if (!leaf)
476 leaf_age = utf8agetab[LEAF_GEN(leaf)];
492 utf8leaf_t *leaf;
501 leaf = utf8nlookup(data, hangul, s, len);
502 if (!leaf)
504 leaf_age = utf8agetab[LEAF_GEN(leaf)];
522 utf8leaf_t *leaf;
529 leaf = utf8lookup(data, hangul, s);
530 if (!leaf)
532 if (utf8agetab[LEAF_GEN(leaf)] > data->maxage)
534 else if (LEAF_CCC(leaf) == DECOMPOSE)
535 ret += strlen(LEAF_STR(leaf));
550 utf8leaf_t *leaf;
557 leaf = utf8nlookup(data, hangul, s, len);
558 if (!leaf)
560 if (utf8agetab[LEAF_GEN(leaf)] > data->maxage)
562 else if (LEAF_CCC(leaf) == DECOMPOSE)
563 ret += strlen(LEAF_STR(leaf));
654 utf8leaf_t *leaf;
681 leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s);
683 leaf = utf8nlookup(u8c->data, u8c->hangul,
687 /* No leaf found implies that the input is a binary blob. */
688 if (!leaf)
691 ccc = LEAF_CCC(leaf);
693 if (utf8agetab[LEAF_GEN(leaf)] > u8c->data->maxage) {
698 u8c->s = LEAF_STR(leaf);
707 leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s);
708 if (!leaf)
710 ccc = LEAF_CCC(leaf);