src/Generic/edt/SimpleRuleNameLinker.cpp
/* Only check for matches in multiple word names */
Only check for matches in multiple word names
Only check for matches in multiple word names
bool SimpleRuleNameLinker::hasTokenMatchInMultWords(const wchar_t * token) {
	HashTable::iterator iter;
	int max_tokens = 0;
	for (iter = _mentions->begin(); iter != _mentions->end(); ++iter) {
		Symbol * mentTokens = (*iter).first;
		int counter = 0;
		while ((counter < maxTokenCount) && (!mentTokens[counter].is_null())) {
			if (wcscmp(mentTokens[counter].to_string(), token) == 0)
				return true;
			counter++;
		}
	}
	return false;
}
bool SimpleRuleNameLinker :: hasTokenMatchInMultWords ( const wchar_t * token ) { HashTable :: iterator iter ; int max_tokens = 0 ; for ( iter = _mentions -> begin ( ) ; iter != _mentions -> end ( ) ; ++ iter ) { Symbol * mentTokens = ( * iter ) . first ; int counter = 0 ; while ( ( counter < maxTokenCount ) && ( ! mentTokens [ counter ] . is_null ( ) ) ) { if ( wcscmp ( mentTokens [ counter ] . to_string ( ) , token ) == 0 ) return true ; counter ++ ; } } return false ; }
Only check for matches in multiple word names
Only check for matches in multiple word names