src/English/timex/en_TemporalNormalizer.cpp
/* returns the code used to access the given time unit (str) in a TimeObj */
returns the code used to access the given time unit (str) in a TimeObj
returns the code used to access the given time unit ( str ) in a TimeObj
wstring EnglishTemporalNormalizer::timeUnit2Code(const wstring &str) {
	for (int i = 0; i < num_ptu; i++)
		if (Strings::startsWith(str, pureTimeUnits[i])) 
			return timeUnitCodes[i];
	return L"";
}
wstring EnglishTemporalNormalizer :: timeUnit2Code ( const wstring & str ) { for ( int i = 0 ; i < num_ptu ; i ++ ) if ( Strings :: startsWith ( str , pureTimeUnits [ i ] ) ) return timeUnitCodes [ i ] ; return L" " ; }
returns the code used to access the given time unit (str) in a TimeObj
returns the code used to access the given time unit ( str ) in a TimeObj