Home | History | Annotate | Download | only in fips181

Lines Matching refs:unit

50 struct unit
56 static struct unit rules[] =
1631 * Generate next unit to password, making sure that it follows
1636 * a. Vowel is generated and previous unit is a
1641 * In this case new syllable is started with second unit
1648 * 3. Try generating another unit if:
1663 * first unit is "alternate_vowel".
1669 USHORT unit = 0;
1714 * This loop continues until a valid unit is found for the
1742 * The unit becomes the last unit checked in the
1745 unit = saved_pair[0];
1763 unit = random_unit (VOWEL);
1765 unit = random_unit (NO_SPECIAL_RULE);
1766 length_left -= (short int) strlen (rules[unit].unit_code);
1777 * First unit of syllable. This is special because the
1787 if (rules[unit].flags & NOT_BEGIN_SYLLABLE)
1791 * If this is the last unit of a word,
1792 * we have a one unit syllable. Since each
1794 * the unit is a vowel. Otherwise, we
1799 if (rules[unit].flags & VOWEL)
1824 * Reject a unit that will end a syllable when no
1825 * previous unit was a vowel and neither is this one.
1828 !(rules[unit].flags & VOWEL)))
1834 * Reject the unit if we are at te starting digram of
1844 * Save the previous unit for later tests.
1861 * If this is the last unit of a word, we should
1868 * Reject the unit if the digram it forms wants
1880 * Reject the unit if the digram it forms
1891 * The following checks occur when the current unit
1896 (rules[unit].flags & VOWEL) &&
1935 saved_pair[0] = unit;
1943 * The unit picked and the digram formed are legal.
1945 * in some cases, mean the last unit(s) may be deferred to
1955 (rules[unit].flags & NO_FINAL_SPLIT) &&
1993 saved_pair[0] = unit;
2001 saved_pair[0] = unit;
2016 * If this unit was illegal, redetermine the amount of
2020 length_left += (short int) strlen (rules[unit].unit_code);
2025 * The unit fit OK.
2030 * If the unit were a vowel, count it in.
2031 * However, if the unit were a y and appear
2037 if ((rules[unit].flags & VOWEL) &&
2039 !(rules[unit].flags & ALTERNATE_VOWEL)))
2043 * If a unit or units were to be saved, we must
2045 * append the current unit to the syllable.
2050 units_in_syllable[current_unit] = unit;
2051 (void) strcat (syllable, rules[unit].unit_code);
2166 * This is the standard Random unit generating routine for
2169 * This routine attempts to return unit indexes with a distribution
2173 * array containing unit indices. There are 211 entries in
2175 * of a particular unit being generated is equal to the
2176 * fraction of those 211 entries that contain that unit index.
2177 * For example, the letter `a' is unit number 1. Since unit
2244 * Select a unit (a letter or a consonant group). If a vowel is