Home | History | Annotate | Download | only in common

Lines Matching refs:lengths

528  * expandGroupLengths() reads a block of compressed lengths of 32 strings and
529 * expands them into offsets and lengths for each string.
530 * Lengths are stored with a variable-width encoding in consecutive nibbles:
534 * The offsets and lengths
539 uint16_t offsets[LINES_PER_GROUP+1], uint16_t lengths[LINES_PER_GROUP+1]) {
540 /* read the lengths of the 32 strings in this group and get each string's offset */
544 /* all 32 lengths must be read to get the offset of the first group string */
563 *lengths++=length;
575 *lengths++=length;
593 uint16_t offsets[LINES_PER_GROUP+2], lengths[LINES_PER_GROUP+2];
595 s=expandGroupLengths(s, offsets, lengths);
596 return expandName(names, s+offsets[lineNumber], lengths[lineNumber], nameChoice,
626 uint16_t offsets[LINES_PER_GROUP+2], lengths[LINES_PER_GROUP+2];
629 s=expandGroupLengths(s, offsets, lengths);
635 length=expandName(names, s+offsets[start&GROUP_MASK], lengths[start&GROUP_MASK], nameChoice, buffer, sizeof(buffer));
650 if(compareName(names, s+offsets[start&GROUP_MASK], lengths[start&GROUP_MASK], nameChoice, otherName)) {
1221 /* sets of name characters, maximum name lengths ---------------------------- */
1366 uint16_t offsets[LINES_PER_GROUP+2], lengths[LINES_PER_GROUP+2];
1390 s=expandGroupLengths(s, offsets, lengths);
1395 length=lengths[lineNumber];
1454 /* set sets and lengths from algorithmic names */
1457 /* set sets and lengths from extended names */
1460 /* set sets and lengths from group names, set global maximum values */
2007 * swap the string bytes but not the nibble-encoded string lengths
2010 uint16_t offsets[LINES_PER_GROUP+1], lengths[LINES_PER_GROUP+1];
2024 nextInStrings=expandGroupLengths(inStrings, offsets, lengths);
2031 count=offsets[31]+lengths[31]; /* total number of string bytes in this group */