commit 2025-10-10 06:18 add ZftMakeStr(ARR_SaveCStr, ZTypIntUL AUL_Int) etc : ZCppMain/ZMainHead.H etc

This commit is contained in:
2025-10-10 06:18:09 +09:00
parent 7af3c774e4
commit 278eeaefcf
4 changed files with 136 additions and 28 deletions

View File

@ -5476,10 +5476,10 @@ namespace ZNsMain
#ifdef _WIN
ZTypInt VI_ResultSize =
( ::sprintf(VCA_BuffParam, "%I64u", ALL_Long) );
( ::sprintf(VCA_BuffParam, "%I64d", ALL_Long) );
#else
ZTypInt VI_ResultSize =
( ::sprintf(VCA_BuffParam, "%llu" , ALL_Long) );
( ::sprintf(VCA_BuffParam, "%lld" , ALL_Long) );
#endif
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
@ -5492,16 +5492,100 @@ namespace ZNsMain
#ifdef _WIN
ZTypInt VI_ResultSize = ::swprintf
(VCA_BuffParam, CI_BuffSize, L"%I64u", ALL_Long) ;
(VCA_BuffParam, CI_BuffSize, L"%I64d", ALL_Long) ;
#else
ZTypInt VI_ResultSize = ::swprintf
(VCA_BuffParam, CI_BuffSize, L"%llu" , ALL_Long) ;
(VCA_BuffParam, CI_BuffSize, L"%lld" , ALL_Long) ;
#endif
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypLLong ALL_Long)*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUI AUI_Int)
{
ZTycInt CI_BuffSize = 31 ;
ZTypChar VCA_BuffParam[CI_BuffSize] ;
ZTypInt VI_ResultSize =
( ::sprintf(VCA_BuffParam, "%u" , AUI_Int) );
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUI AUI_Int)*/
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUI AUI_Int)
{
ZTycInt CI_BuffSize = 31 ;
ZTypCharW VCA_BuffParam[CI_BuffSize] ;
ZTypInt VI_ResultSize = ::swprintf
(VCA_BuffParam, CI_BuffSize, L"%u" , AUI_Int) ;
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUI AUI_Int)*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUL AUL_Int)
{
ZTycInt CI_BuffSize = 41 ;
ZTypChar VCA_BuffParam[CI_BuffSize] ;
ZTypInt VI_ResultSize =
( ::sprintf(VCA_BuffParam, "%lu" , AUL_Int) );
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUL AUL_Int)*/
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUL AUL_Int)
{
ZTycInt CI_BuffSize = 41 ;
ZTypCharW VCA_BuffParam[CI_BuffSize] ;
ZTypInt VI_ResultSize = ::swprintf
(VCA_BuffParam, CI_BuffSize, L"%lu" , AUL_Int) ;
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUL AUL_Int)*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntULL AULL_Int)
{
ZTycInt CI_BuffSize = 41 ;
ZTypChar VCA_BuffParam[CI_BuffSize] ;
#ifdef _WIN
ZTypInt VI_ResultSize =
( ::sprintf(VCA_BuffParam, "%I64u", AULL_Int) );
#else
ZTypInt VI_ResultSize =
( ::sprintf(VCA_BuffParam, "%llu" , AULL_Int) );
#endif
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntULL AULL_Int)*/
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntULL AULL_Int)
{
ZTycInt CI_BuffSize = 41 ;
ZTypCharW VCA_BuffParam[CI_BuffSize] ;
#ifdef _WIN
ZTypInt VI_ResultSize = ::swprintf
(VCA_BuffParam, CI_BuffSize, L"%I64u", AULL_Int) ;
#else
ZTypInt VI_ResultSize = ::swprintf
(VCA_BuffParam, CI_BuffSize, L"%llu" , AULL_Int) ;
#endif
return ARR_SaveCStr.append
(VCA_BuffParam, VI_ResultSize);
}/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntULL AULL_Int)*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, double AD_Double)
{
ZTycInt CI_BuffSize=51 ;