Ejemplo n.º 1
0
wstring CStVersionInfo::GetVersionString()
{
#if !defined(TARGET_OS_MAC)
	wchar_t ver[MAX_PATH];
	swprintf_s(ver, MAX_PATH, L"%03d.%03d.%03d", GetHigh(), GetMid(), GetLow());
#else
	char ver[256];   //! \todo Figure out a clean way to handle the max path length.
	snprintf(ver, sizeof(ver)-sizeof(char), "%03d.%03d.%03d", GetHigh(), GetMid(), GetLow());
#endif
	return ver;
}
Ejemplo n.º 2
0
bool CStVersionInfo::operator == (CStVersionInfo& _ver)
{
	if( (_ver.GetHigh() == GetHigh()) && (_ver.GetMid() == GetMid()) &&
		(_ver.GetLow() == GetLow()) )
	{
		return true;
	}
	return false;
}
Ejemplo n.º 3
0
bool SymTypeSubrange::IsEqualType(Symbol* symbol)
{
	SymTypeSubrange* subrange = dynamic_cast<SymTypeSubrange*>(symbol);
	return subrange != nullptr && GetLow() == subrange->GetLow() && GetHigh() == subrange->GetHigh();
}