Lines Matching defs:word
270 countWord(Word *word);
343 Word *word;
356 /* get a word and add it if it is longer than 1 */
360 word=findWord(name+start, wordLength);
361 if(word==NULL) {
362 word=addWord(name+start, wordLength);
364 countWord(word);
369 * if there was a word before this
374 word=findWord(name+prevStart, wordLength);
375 if(word==NULL) {
376 word=addWord(name+prevStart, wordLength);
378 countWord(word);
398 /* skip anything that is not part of a word in this sense */
410 /* a unicode character name word consists of A-Z0-9 */
524 printf("tokens[0x%03x]: word%8ld \"%.*s\"\n",
575 /* set token 0 to word 0 */
578 printf("tokens[0x000]: word%8ld \"%.*s\"\n",
595 printf("tokens[0x%03x]: word%8ld \"%.*s\"\n",
610 printf("tokens[0x%03x]: word%8ld \"%.*s\"\n",
717 /* write a word, as token or directly */
744 /* reverse sort by word weight */
947 Word *word;
957 word=words+wordCount;
963 word->weight=-(length+1+2);
964 word->count=0;
965 word->length=length;
966 word->s=stringStart;
970 return word;
974 countWord(Word *word) {
975 /* add to the weight the savings: the length of the word minus 1 byte for the token */
976 word->weight+=word->length-1;
977 ++word->count;