src/PredFinder/common/ElfMultiDoc.cpp
/**
 *  See whether there's a mapping from the normalized name to a URI.
 *  If so, return it.  Otherwise, return an empty string.
 **/
See whether there's a mapping from the normalized name to a URI.
If so, return it.  Otherwise, return an empty string.
See whether there ' s a mapping from the normalized name to a URI . If so return it . Otherwise return an empty string .
std::wstring ElfMultiDoc::find_bound_uri_from_name_in_specified_map(const std::wstring & s,
										const StringToSetOfStringsMap& name_to_bound_uris){
	std::wstring normalized_best_string = UnicodeUtil::normalizeTextString(s);
	SetOfStrings uris;
	StringToSetOfStringsMap::const_iterator val = name_to_bound_uris.find(normalized_best_string);
	if(val != name_to_bound_uris.end()){
		uris = val->second;
	}
	std::wstring uri;
	size_t uri_count = uris.size();
	if (uri_count != 0) {
		uri = *(uris.begin());
	}
	return uri;
}
std :: wstring ElfMultiDoc :: find_bound_uri_from_name_in_specified_map ( const std :: wstring & s , const StringToSetOfStringsMap & name_to_bound_uris ) { std :: wstring normalized_best_string = UnicodeUtil :: normalizeTextString ( s ) ; SetOfStrings uris ; StringToSetOfStringsMap :: const_iterator val = name_to_bound_uris . find ( normalized_best_string ) ; if ( val != name_to_bound_uris . end ( ) ) { uris = val -> second ; } std :: wstring uri ; size_t uri_count = uris . size ( ) ; if ( uri_count != 0 ) { uri = * ( uris . begin ( ) ) ; } return uri ; }
See whether there's a mapping from the normalized name to a URI.
See whether there ' s a mapping from the normalized name to a URI .
//SessionLogger::info("LEARNIT") << "name: <" << normalized_best_string << 
 //	"> yielded bound URI: <" << uri << ">" << std::endl;
 //if (uri_count > 1) {
 //	SessionLogger::info("LEARNIT") << "Warning: returned first URI match for team.";
 //}
