commit 2025-10-10 07:21 edit a bit ZCppMain/ZMainHead.H

This commit is contained in:
2025-10-10 07:21:49 +09:00
parent 1cb53c967e
commit 0e3b50de91

View File

@ -5405,15 +5405,13 @@ namespace ZNsMain
template<typename TString, typename TObject> template<typename TString, typename TObject>
TString& ZftMakeStr(TString& ARR_SaveCStr, TObject AO_Object) TString& ZftMakeStr(TString& ARR_SaveCStr, TObject AO_Object)
{ return ARR_SaveCStr; } { return ARR_SaveCStr; }
//////////////////////////////////////////// /*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, const string& AR_DataCStr) template<> string& ZftMakeStr(string& ARR_SaveCStr, const string& AR_DataCStr)
{ ARR_SaveCStr.append(AR_DataCStr); return ARR_SaveCStr; } { ARR_SaveCStr.append(AR_DataCStr); return ARR_SaveCStr; }
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, const wstring& AR_DataCStr) template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, const wstring& AR_DataCStr)
{ ARR_SaveCStr.append(AR_DataCStr); return ARR_SaveCStr; } { ARR_SaveCStr.append(AR_DataCStr); return ARR_SaveCStr; }
/*#############################################################################*/ /*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, int AI_Int) template<> string& ZftMakeStr(string& ARR_SaveCStr, int AI_Int)
{ {
ZTycInt CI_BuffSize = 31 ; ZTycInt CI_BuffSize = 31 ;
@ -5438,7 +5436,7 @@ namespace ZNsMain
(VCA_BuffParam, VI_ResultSize) ; (VCA_BuffParam, VI_ResultSize) ;
}/* }/*
template<> string& ZftMakeStr(string& ARR_SaveCStr, int AI_Int)*/ template<> string& ZftMakeStr(string& ARR_SaveCStr, int AI_Int)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, long AL_Long) template<> string& ZftMakeStr(string& ARR_SaveCStr, long AL_Long)
{ {
ZTycInt CI_BuffSize = 31 ; ZTycInt CI_BuffSize = 31 ;
@ -5465,7 +5463,7 @@ namespace ZNsMain
return ARR_SaveCStr; return ARR_SaveCStr;
}/* }/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, long AL_Long)*/ template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, long AL_Long)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypLLong ALL_Long) template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypLLong ALL_Long)
{ {
ZTycInt CI_BuffSize = 41 ; ZTycInt CI_BuffSize = 41 ;
@ -5498,7 +5496,7 @@ namespace ZNsMain
(VCA_BuffParam, VI_ResultSize); (VCA_BuffParam, VI_ResultSize);
}/* }/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypLLong ALL_Long)*/ template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypLLong ALL_Long)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUI AUI_Int) template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUI AUI_Int)
{ {
ZTycInt CI_BuffSize = 31 ; ZTycInt CI_BuffSize = 31 ;
@ -5523,7 +5521,7 @@ namespace ZNsMain
(VCA_BuffParam, VI_ResultSize); (VCA_BuffParam, VI_ResultSize);
}/* }/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUI AUI_Int)*/ template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUI AUI_Int)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUL AUL_Int) template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntUL AUL_Int)
{ {
ZTycInt CI_BuffSize = 41 ; ZTycInt CI_BuffSize = 41 ;
@ -5548,7 +5546,7 @@ namespace ZNsMain
(VCA_BuffParam, VI_ResultSize); (VCA_BuffParam, VI_ResultSize);
}/* }/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUL AUL_Int)*/ template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntUL AUL_Int)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntULL AULL_Int) template<> string& ZftMakeStr(string& ARR_SaveCStr, ZTypIntULL AULL_Int)
{ {
ZTycInt CI_BuffSize = 41 ; ZTycInt CI_BuffSize = 41 ;
@ -5581,8 +5579,7 @@ namespace ZNsMain
(VCA_BuffParam, VI_ResultSize); (VCA_BuffParam, VI_ResultSize);
}/* }/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntULL AULL_Int)*/ template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, ZTypIntULL AULL_Int)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, double AD_Double) template<> string& ZftMakeStr(string& ARR_SaveCStr, double AD_Double)
{ {
ZTycInt CI_BuffSize=51 ; ZTycInt CI_BuffSize=51 ;
@ -5609,11 +5606,12 @@ namespace ZNsMain
(VCA_BuffParam, VI_ResultSize); (VCA_BuffParam, VI_ResultSize);
}/* }/*
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, double AD_Double)*/ template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, double AD_Double)*/
/*============================================================================*/
template<> string& ZftMakeStr(string& ARR_SaveCStr, bool AB_Bool) template<> string& ZftMakeStr(string& ARR_SaveCStr, bool AB_Bool)
{ return ARR_SaveCStr.append( AB_Bool ? "true" : "false" ); } { return ARR_SaveCStr.append( AB_Bool ? "true" : "false" ); }
template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, bool AB_Bool) template<> wstring& ZftMakeStr(wstring& ARR_SaveCStr, bool AB_Bool)
{ return ARR_SaveCStr.append( AB_Bool ? L"true" : L"false" ); } { return ARR_SaveCStr.append( AB_Bool ? L"true" : L"false" ); }
/*============================================================================*/
template<typename TTypeChar, typename TTypeLength> template<typename TTypeChar, typename TTypeLength>