示例#1
0
int Dynvar_CompleteCountPossible(
        const char *partial
)
{
	unsigned int matches = 0;
	assert( partial );
	if( *partial )
		Trie_NoOfMatchesIf( dynvar_trie, partial, Dynvar_Console, NULL, &matches );
	return matches;
}
示例#2
0
/*
* CVar_CompleteCountPossible
*/
int Cvar_CompleteCountPossible( const char *partial )
{
	unsigned int matches;
	assert( cvar_trie );
	assert( partial );
#ifdef PUBLIC_BUILD
	Trie_NoOfMatchesIf( cvar_trie, partial, Cvar_NotDeveloper, NULL, &matches );
#else
	Trie_NoOfMatches( cvar_trie, partial, &matches );
#endif
	return matches;
}