std::wstring tzf::ParameterInt64::get_value_str (void) { wchar_t str [32]; _i64tow (value, str, 10); return std::wstring (str); }
BaseFormat& BaseFormat::ToString(INT64 Value, bool Signed) { wchar_t Buffer[65]; Signed?_i64tow(Value, Buffer, Radix):_ui64tow(Value, Buffer, Radix); if (Radix > 10) { UpperBuf(Buffer, ARRAYSIZE(Buffer)); } return Put(Buffer, StrLength(Buffer)); }
BaseFormat& BaseFormat::ToString(T Value) { static_assert(std::is_integral<T>::value, "Value type is not integral"); wchar_t Buffer[65]; std::is_signed<T>::value? _i64tow(Value, Buffer, Radix) : _ui64tow(Value, Buffer, Radix); if (Radix > 10) { UpperBuf(Buffer, ARRAYSIZE(Buffer)); } return Put(Buffer, StrLength(Buffer)); }
static VOID TimeToMsString(LPWSTR String, ULONG Length, LARGE_INTEGER Time) { WCHAR Convstr[40]; LARGE_INTEGER LargeTime; LPWSTR ms; LargeTime.QuadPart = Time.QuadPart / TicksPerMs.QuadPart; _i64tow(LargeTime.QuadPart, Convstr, 10); wcscpy(String, Convstr); ms = String + wcslen(String); LoadString(GetModuleHandle(NULL), IDS_MS, ms, Length - (ms - String)); }
// Returns the well defined text representation of this expression. FdoString* FdoInt64Value::ToString() { static const FdoInt32 iBufLen = 256; wchar_t szBuf[iBufLen]; FdoStringUtility::ClearString(m_toString); if (IsNull()) { m_toString = FdoStringUtility::MakeString(FdoStringUtility::NullString); return m_toString; } #ifdef _WIN32 _i64tow(GetInt64(), szBuf, 10); #else swprintf(szBuf, sizeof(szBuf)/sizeof(wchar_t), L"%lld", GetInt64()); #endif m_toString = FdoStringUtility::MakeString(szBuf); return m_toString; }
static const wchar_t *toString(__int64 num) { static wchar_t str[128]; _i64tow(num, str, 10); return str; };
std::wstring StringUtility::I64ToWString( INT64 n ) { wchar_t buf[256]; return std::wstring(_i64tow(n,buf,256)); }