commit 2025-10-09 11:57 edit a bit ZCppMain/ZtCStringEx.H
This commit is contained in:
@ -1521,18 +1521,16 @@ namespace ZNsMain
|
|||||||
ZCStringBase& operator()(TypeCharC* APC_Data, TypeLength AL_Length)
|
ZCStringBase& operator()(TypeCharC* APC_Data, TypeLength AL_Length)
|
||||||
{
|
{
|
||||||
if(mpc_Data==APC_Data || AL_Length<1)
|
if(mpc_Data==APC_Data || AL_Length<1)
|
||||||
{
|
{ return *this; }
|
||||||
return *this;
|
/*+++++++++++++++++++++++++++++++++*/
|
||||||
}
|
|
||||||
/////////////////////////////////////
|
|
||||||
|
|
||||||
ReAllocKeep(ml_UseLen+AL_Length);
|
ReAllocKeep(ml_UseLen+AL_Length);
|
||||||
|
|
||||||
::memcpy ////////////////////////////
|
::memcpy /*>>>>>>>>>>>>>>>>>>>>>>>>*/
|
||||||
(
|
(
|
||||||
mpc_Data+ml_UseLen, APC_Data, AL_Length*sizeof(TypeChar)
|
mpc_Data+ml_UseLen, APC_Data, AL_Length*sizeof(TypeChar)
|
||||||
);
|
);
|
||||||
/////////////////////////////////////
|
/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
|
||||||
|
|
||||||
mpc_Data[ml_UseLen+=AL_Length]=0; return *this;
|
mpc_Data[ml_UseLen+=AL_Length]=0; return *this;
|
||||||
}/*
|
}/*
|
||||||
@ -1567,7 +1565,9 @@ namespace ZNsMain
|
|||||||
ReAllocKeep(ml_UseLen+1);
|
ReAllocKeep(ml_UseLen+1);
|
||||||
|
|
||||||
mpc_Data[ml_UseLen++]=AC_CharParam;
|
mpc_Data[ml_UseLen++]=AC_CharParam;
|
||||||
mpc_Data[ml_UseLen ]=0 ; return *this;
|
mpc_Data[ml_UseLen ]=0 ;
|
||||||
|
|
||||||
|
return *this; /*:::::::::::::::::*/
|
||||||
}/*
|
}/*
|
||||||
ZCStringBase& operator()(TypeChar AC_CharParam)*/
|
ZCStringBase& operator()(TypeChar AC_CharParam)*/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user