TEST(LongInt, Construct) { std::string number1("13ojp4f12"); ASSERT_THROW(LongInt long_int(number1), std::invalid_argument); number1 = "0x098dcadcCDA23e4462384"; EXPECT_NO_THROW({ LongInt long_int(number1); });
static void initialze_performance_counter() { LARGE_INTEGER count; if (QueryPerformanceFrequency(&count)) { has_performance_count = 1; performance_frequency = long_int(count.LowPart, count.HighPart); QueryPerformanceCounter(&count); initial_performance_count = long_int(count.LowPart, count.HighPart); } else { has_performance_count = 0; } }
void PhosimParser::get(const std::string & key, long & value) const { try { value = long_int(key); } catch (PhosimParserException & eObj) { // do nothing } }