commit 2025-10-09 22:11 delete operator()(TypeLength AL_AddSize, TypeCharC* APC_Format, ...) : ZCppMain/ZtCStringEx.H
This commit is contained in:
@ -1719,31 +1719,6 @@ namespace ZNsMain
|
|||||||
ZCStringBase& operator()(bool AB_Bool)*/
|
ZCStringBase& operator()(bool AB_Bool)*/
|
||||||
|
|
||||||
|
|
||||||
ZCStringBase& operator()(
|
|
||||||
TypeLength AL_AddSize, TypeCharC* APC_Format, ...)
|
|
||||||
{
|
|
||||||
if(AL_AddSize<1) return *this;
|
|
||||||
|
|
||||||
|
|
||||||
ReAllocKeep(ml_UseLen+AL_AddSize);
|
|
||||||
|
|
||||||
// ml_UseLen+AL_AddSize 의 크기가 가변인수 문자열을 담을 만큼 커야한다.
|
|
||||||
|
|
||||||
va_list VP_VarParam;
|
|
||||||
va_start( VP_VarParam, APC_Format);
|
|
||||||
vsprintf //////////////////////////
|
|
||||||
(
|
|
||||||
mpc_Data+ml_UseLen, APC_Format, VP_VarParam
|
|
||||||
);
|
|
||||||
///////////////////////////////////
|
|
||||||
|
|
||||||
InvalidNull(ml_UseLen); return *this;
|
|
||||||
}/*
|
|
||||||
ZCStringBase& operator()(
|
|
||||||
TypeLength AL_AddSize, TypeCharC* APC_Format, ...)*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template<typename TObject> ZCStringBase& AddObject(TObject& AR_CObject)
|
template<typename TObject> ZCStringBase& AddObject(TObject& AR_CObject)
|
||||||
{
|
{
|
||||||
return (*this)((TypeCharC*)&AR_CObject, sizeof(AR_CObject));
|
return (*this)((TypeCharC*)&AR_CObject, sizeof(AR_CObject));
|
||||||
@ -1757,11 +1732,11 @@ namespace ZNsMain
|
|||||||
|
|
||||||
if(AL_StartPos>=ml_AllLen) return *this ;
|
if(AL_StartPos>=ml_AllLen) return *this ;
|
||||||
|
|
||||||
do /////////
|
do /*++++++++++++++++++++++++++++++++++*/
|
||||||
{
|
{
|
||||||
if(mpc_Data[AL_StartPos++]==0) break;
|
if(mpc_Data[AL_StartPos++]==0) break;
|
||||||
}
|
}
|
||||||
while(true);
|
while(true); /*++++++++++++++++++++++++*/
|
||||||
|
|
||||||
ml_UseLen=AL_StartPos-1; return *this;
|
ml_UseLen=AL_StartPos-1; return *this;
|
||||||
}/*
|
}/*
|
||||||
|
Reference in New Issue
Block a user