link-grammar-5.8.0/link-grammar/dict-sql/read-sql.c
/**
 * This is used to support wild-card lookup from the command-line
 * client.  That is, a user can type in `!!foo*` and look up all
 * words that begin with the three letters `foo`.  It works ...
 * but it only works if the dictionary also has UNKNOWN-WORD defined!
 */
This is used to support wild-card lookup from the command-line
client.  That is, a user can type in `!!foo*` and look up all
words that begin with the three letters `foo`.  It works
but it only works if the dictionary also has UNKNOWN-WORD defined!
This is used to support wild - card lookup from the command - line client . That is a user can type in ` !!foo * ` and look up all words that begin with the three letters ` foo ` . It works but it only works if the dictionary also has UNKNOWN - WORD defined!
static Dict_node * db_lookup_wild(Dictionary dict, const char *s)
{
	cbdata bs;
	bs.dict = dict;
	bs.dn = NULL;
	db_lookup_common(dict, s, "GLOB", morph_cb, &bs);
	if (verbosity_level(D_SQL))
	{
		if (bs.dn)
		{
			printf("Found expression for glob %s: %s\n",
			       s, lg_exp_stringify(bs.dn->exp));
		}
		else
		{
			printf("No expression for glob %s\n", s);
		}
	}
	return bs.dn;
}
static Dict_node * db_lookup_wild ( Dictionary dict , const char * s ) { cbdata bs ; bs . dict = dict ; bs . dn = NULL ; db_lookup_common ( dict , s , " " , morph_cb , & bs ) ; if ( verbosity_level ( D_SQL ) ) { if ( bs . dn ) { printf ( " \n " , s , lg_exp_stringify ( bs . dn -> exp ) ) ; } else { printf ( " \n " , s ) ; } } return bs . dn ; }
This is used to support wild-card lookup from the command-line
 client.
This is used to support wild - card lookup from the command - line client .