Lines Matching full: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
203 #define LEAF_GEN(LEAF) ((LEAF)[0]) argument
204 #define LEAF_CCC(LEAF) ((LEAF)[1]) argument
205 #define LEAF_STR(LEAF) ((const char *)((LEAF) + 2)) argument
214 /* Size of the synthesized leaf used for Hangul syllable decomposition. */
289 /* Fill in base of leaf. */ in utf8hangul()
313 * Returns the leaf if one exists, NULL otherwise.
391 * Returns the leaf if one exists, NULL otherwise.
408 utf8leaf_t *leaf; in utf8agemax() local
417 leaf = utf8lookup(data, hangul, s); in utf8agemax()
418 if (!leaf) in utf8agemax()
421 leaf_age = utf8agetab[LEAF_GEN(leaf)]; in utf8agemax()
437 utf8leaf_t *leaf; in utf8agemin() local
446 leaf = utf8lookup(data, hangul, s); in utf8agemin()
447 if (!leaf) in utf8agemin()
449 leaf_age = utf8agetab[LEAF_GEN(leaf)]; in utf8agemin()
464 utf8leaf_t *leaf; in utf8nagemax() local
473 leaf = utf8nlookup(data, hangul, s, len); in utf8nagemax()
474 if (!leaf) in utf8nagemax()
476 leaf_age = utf8agetab[LEAF_GEN(leaf)]; in utf8nagemax()
492 utf8leaf_t *leaf; in utf8nagemin() local
501 leaf = utf8nlookup(data, hangul, s, len); in utf8nagemin()
502 if (!leaf) in utf8nagemin()
504 leaf_age = utf8agetab[LEAF_GEN(leaf)]; in utf8nagemin()
522 utf8leaf_t *leaf; in utf8len() local
529 leaf = utf8lookup(data, hangul, s); in utf8len()
530 if (!leaf) in utf8len()
532 if (utf8agetab[LEAF_GEN(leaf)] > data->maxage) in utf8len()
534 else if (LEAF_CCC(leaf) == DECOMPOSE) in utf8len()
535 ret += strlen(LEAF_STR(leaf)); in utf8len()
550 utf8leaf_t *leaf; in utf8nlen() local
557 leaf = utf8nlookup(data, hangul, s, len); in utf8nlen()
558 if (!leaf) in utf8nlen()
560 if (utf8agetab[LEAF_GEN(leaf)] > data->maxage) in utf8nlen()
562 else if (LEAF_CCC(leaf) == DECOMPOSE) in utf8nlen()
563 ret += strlen(LEAF_STR(leaf)); in utf8nlen()
654 utf8leaf_t *leaf; in utf8byte() local
681 leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s); in utf8byte()
683 leaf = utf8nlookup(u8c->data, u8c->hangul, in utf8byte()
687 /* No leaf found implies that the input is a binary blob. */ in utf8byte()
688 if (!leaf) in utf8byte()
691 ccc = LEAF_CCC(leaf); in utf8byte()
693 if (utf8agetab[LEAF_GEN(leaf)] > u8c->data->maxage) { in utf8byte()
698 u8c->s = LEAF_STR(leaf); in utf8byte()
707 leaf = utf8lookup(u8c->data, u8c->hangul, u8c->s); in utf8byte()
708 if (!leaf) in utf8byte()
710 ccc = LEAF_CCC(leaf); in utf8byte()