src/English/names/en_NameRecognizer.cpp
// concatenate symbols with spaces, and make them all uppercase

concatenate symbols with spaces, and make them all uppercase
concatenate symbols with spaces and make them all uppercase
wstring EnglishNameRecognizer::getNameString(int start, int end,
									 PIdFSentence* sent)
{
	wchar_t nameStr[MAX_SENTENCE_LENGTH];
	int i;
	int offset = 0;
	for (i = start; i <= end; i++) {
		Symbol word = sent->getWord(i);
		offset += swprintf(nameStr+offset, MAX_SENTENCE_LENGTH - offset,
						   L"%ls", word.to_string());
		if (i < end)
			offset += swprintf(nameStr+offset, MAX_SENTENCE_LENGTH - offset,
							   L" ");
	}
	for (i = 0; i < offset; i++)
		nameStr[i] = towupper(nameStr[i]);
	return wstring(nameStr);
}
wstring EnglishNameRecognizer :: getNameString ( int start , int end , PIdFSentence * sent ) { wchar_t nameStr [ MAX_SENTENCE_LENGTH ] ; int i ; int offset = 0 ; for ( i = start ; i <= end ; i ++ ) { Symbol word = sent -> getWord ( i ) ; offset += swprintf ( nameStr + offset , MAX_SENTENCE_LENGTH - offset , L" " , word . to_string ( ) ) ; if ( i < end ) offset += swprintf ( nameStr + offset , MAX_SENTENCE_LENGTH - offset , L" " ) ; } for ( i = 0 ; i < offset ; i ++ ) nameStr [ i ] = towupper ( nameStr [ i ] ) ; return wstring ( nameStr ) ; }
concatenate symbols with spaces, and make them all uppercase
concatenate symbols with spaces and make them all uppercase
// transform to uppercase
