예제 #1
0
파일: idiom.c 프로젝트: luyi326/linguo
/** 
 * Look for words that end in ".Ix" where x is a number.
 * Return the largest x found.
 */
static int max_postfix_found(Dict_node * d)
{
	int i, j;
	i = 0;
	while(d != NULL) {
		j = numberfy(d->string);
		if (j > i) i = j;
		d = d->right;
	}
	return i;
}
예제 #2
0
파일: idiom.c 프로젝트: IncorexLLC/Elchi
int max_postfix_found(Dict_node * d) {
    /* Look for words that end in ".Ix" where x is a number.
       Return the largest x found.
       */
    int i, j;
    i = 0;
    while(d != NULL) {
	j = numberfy(d->string);
	if (j > i) i = j;
	d = d->right;
    }
    return i;
}
예제 #3
0
파일: idiom.c 프로젝트: luyi326/linguo
/** 
 * returns TRUE if this is a word ending in ".Ix", where x is a number.
 */
int is_idiom_word(const char * s)
{
	return (numberfy(s) != -1) ;
}
예제 #4
0
파일: idiom.c 프로젝트: IncorexLLC/Elchi
int is_idiom_word(wchar_t * s) {
    /* returns TRUE if this is a word ending in ".Ix", where x is a number. */
    return (numberfy(s) != -1) ;
}