commit 2025-08-28 20:23 add ZftMakeStr() in ZCppMain/ZMainHead.H and ZtCStringEx.H

This commit is contained in:
2025-08-28 20:23:49 +09:00
parent 6cbb30f285
commit 9a8e5b59fd
2 changed files with 95 additions and 0 deletions

View File

@ -8270,6 +8270,44 @@ namespace ZNsMain
) */
#define _ZCSTRINGBASE_ ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>
#define _ZCSTRINGBASE_ARG_ \
template< typename TTypCh , typename TAlloc , \
typename TAllocSize , typename TTypeString \
>
_ZCSTRINGBASE_ARG_ _ZCSTRINGBASE_& ZftMakeStr
( _ZCSTRINGBASE_& ARR_SaveCStr, const _ZCSTRINGBASE_& AR_DataCStr)
{ return ARR_SaveCStr(AR_DataCStr); }
_ZCSTRINGBASE_ARG_ _ZCSTRINGBASE_& ZftMakeStr
( _ZCSTRINGBASE_& ARR_SaveCStr, int AI_IntI )
{ return ARR_SaveCStr(AI_IntI ); }
_ZCSTRINGBASE_ARG_ _ZCSTRINGBASE_& ZftMakeStr
( _ZCSTRINGBASE_& ARR_SaveCStr, long AL_Long )
{ return ARR_SaveCStr(AL_Long ); }
_ZCSTRINGBASE_ARG_ _ZCSTRINGBASE_& ZftMakeStr
( _ZCSTRINGBASE_& ARR_SaveCStr, double AD_Double )
{ return ARR_SaveCStr(AD_Double ); }
_ZCSTRINGBASE_ARG_ _ZCSTRINGBASE_& ZftMakeStr
( _ZCSTRINGBASE_& ARR_SaveCStr, bool AB_Bool )
{
if (AB_Bool)
ARR_SaveCStr.append("true" );
else ARR_SaveCStr.append("false");
return ARR_SaveCStr;
}/*
_ZCSTRINGBASE_& ZftMakeStr( _ZCSTRINGBASE_& ARR_SaveCStr, bool AB_Bool)*/
#undef _ZCSTRINGBASE_
#undef _ZCSTRINGBASE_ARG_
namespace ZNsFunc
{