11 #ifdef AJA_USE_CPLUSPLUS11
24 void AJAVariant::initialize()
88 if (mStringValue.empty())
90 std::string tmp(mStringValue);
92 if (tmp ==
"true" || tmp ==
"1" || tmp ==
"y")
118 #ifdef AJA_USE_CPLUSPLUS11
119 : std::strtof(mStringValue.data(),
NULL);
121 : float(atof(mStringValue.data()));
232 case AJA_VARIANT_STRING:
return mStringValue.empty() ? 0 : uint16_t(strtol(mStringValue.data(),
NULL, 0));
299 #ifdef AJA_USE_CPLUSPLUS11
300 : std::strtoll(mStringValue.data(),
NULL, 0);
302 : atol(mStringValue.data());
327 if (mStringValue.empty())
329 #ifdef AJA_USE_CPLUSPLUS11
330 return std::strtoull(mStringValue.data(),
NULL, 0);
333 const char* data = mStringValue.data();
334 #if defined(_MSC_VER) && _MSC_VER < 1900
335 unsigned long value = _strtoui64(data, &endptr, 10);
337 unsigned long value = strtoull(data, &endptr, 10);
369 return std::string();