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; }
bool CStVersionInfo::operator == (CStVersionInfo& _ver) { if( (_ver.GetHigh() == GetHigh()) && (_ver.GetMid() == GetMid()) && (_ver.GetLow() == GetLow()) ) { return true; } return false; }
bool SymTypeSubrange::IsEqualType(Symbol* symbol) { SymTypeSubrange* subrange = dynamic_cast<SymTypeSubrange*>(symbol); return subrange != nullptr && GetLow() == subrange->GetLow() && GetHigh() == subrange->GetHigh(); }