link-grammar-5.8.0/link-grammar/dict-file/read-dict.c
/**
 * file_lookup_wild -- allows for wildcard searches (globs)
 * Used to support the !! command in the parser command-line tool.
 */
- allows for wildcard searches (globs)
Used to support the !. command in the parser command-line tool.
- allows for wildcard searches ( globs ) Used to support the ! . command in the parser command - line tool .
Dict_node * file_lookup_wild(Dictionary dict, const char *s)
{
	bool lookup_idioms = test_enabled("lookup-idioms");
	char * ds = strrchr(s, SUBSCRIPT_DOT); 
	char * ws = strrchr(s, WILD_TYPE);     
	Dict_node * result;
	char * stmp = strdup(s);
	if ((NULL != ds) && ('\0' != ds[1]) && ((NULL == ws) || (ds > ws)))
		stmp[ds-s] = SUBSCRIPT_MARK;
	result =
	 rdictionary_lookup(NULL, dict->root, stmp, lookup_idioms, dict_order_wild);
	free(stmp);
	return result;
}
Dict_node * file_lookup_wild ( Dictionary dict , const char * s ) { bool lookup_idioms = test_enabled ( " " ) ; char * ds = strrchr ( s , SUBSCRIPT_DOT ) ; char * ws = strrchr ( s , WILD_TYPE ) ; Dict_node * result ; char * stmp = strdup ( s ) ; if ( ( NULL != ds ) && ( ' \0 ' != ds [ 1 ] ) && ( ( NULL == ws ) || ( ds > ws ) ) ) stmp [ ds - s ] = SUBSCRIPT_MARK ; result = rdictionary_lookup ( NULL , dict -> root , stmp , lookup_idioms , dict_order_wild ) ; free ( stmp ) ; return result ; }
file_lookup_wild -- allows for wildcard searches (globs)
 Used to support the !
file_lookup_wild -- allows for wildcard searches ( globs ) Used to support the !
/* Only the rightmost dot is a
	                                          candidate for SUBSCRIPT_DOT */ /* A SUBSCRIPT_DOT can only appear
                                             after a wild-card */ /* It is not a SUBSCRIPT_DOT if it is at the end or before the wild-card.
	 * E.g: "Dr.", "i.*", "." */