From a38ad468e31d5f9397112459487ff2236f6642e0 Mon Sep 17 00:00:00 2001 From: sauron Date: Thu, 9 Oct 2025 15:39:24 +0900 Subject: [PATCH] commit 2025-10-09 15:39 edit a bit ZCppMain/ZtCStringEx.H --- ZCppMain/ZtCStringEx.H | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/ZCppMain/ZtCStringEx.H b/ZCppMain/ZtCStringEx.H index 636cdd8..0988e3a 100644 --- a/ZCppMain/ZtCStringEx.H +++ b/ZCppMain/ZtCStringEx.H @@ -1034,7 +1034,7 @@ namespace ZNsMain { return append(AR_View.data(), AR_View.size()); } - TypeLength MemCopy /*##########################################################*/ + TypeLength MemCopy /*//////////////////////////////////////////////////////////*/ ( TypeChar* APC_Buff, TypeLength AL_BuffSize, bool AB_DoEndNull=true ) @@ -1060,7 +1060,7 @@ namespace ZNsMain return VL_LoopCnt; }/* - TypeLength MemCopy ############################################################# + TypeLength MemCopy ///////////////////////////////////////////////////////////// ( TypeChar* APC_Buff, TypeLength AL_BuffSize, bool AB_DoEndNull=true ) @@ -1118,8 +1118,13 @@ namespace ZNsMain }/* ZCStringBase& InvalidByForce(TypeLength AL_Index=0)*/ - ZCStringBase& InvalidSearch( - TypeCharC* APC_Search, TypeLength AL_SearchLen, TypeLength AL_Index=0) + ZCStringBase& InvalidSearch //////////////////////////////// + ( + TypeCharC* APC_Search , + TypeLength AL_SearchLen , + TypeLength AL_Index=0 + ) + /*########################################################*/ { // APC_Search 를 찾아서 그 부분을 무효화시킨다. @@ -1130,9 +1135,8 @@ namespace ZNsMain mpc_Data[ml_UseLen=VL_Pos]=0; return *this; - }/* - ZCStringBase& InvalidSearch( - TypeCharC* APC_Search, TypeLength AL_SearchLen, TypeLength AL_Index=0)*/ + } + /*########################################################*/ ZCStringBase& InvalidSearch(const ZCCharView& AR_View, TypeLength AL_Index=0) { @@ -1202,21 +1206,25 @@ namespace ZNsMain { // APC_Search 를 앞에서 찾아서 있다면 그 부분을 무효화시킨다. - if(ml_UseLen<1 || AL_SearchLen<1 ) return *this; + if(ml_UseLen<1 || AL_SearchLen<1) + { return *this; } + /*******************************/ - const bool CB_IsOK = this->DoStart(APC_Search, AL_SearchLen); + const bool CB_IsOK = this-> + DoStart(APC_Search, AL_SearchLen); - if(CB_IsOK) MoveFirst(AL_SearchLen); return *this; + if(CB_IsOK) + MoveFirst(AL_SearchLen); + + return *this; /**********************/ }/* ZCStringBase& InvalidHead(TypeCharC* APC_Search, TypeLength AL_SearchLen)*/ ZCStringBase& InvalidHead(TypeCharC* APC_Search) { return InvalidHead - ( - APC_Search, GetLength(APC_Search) - ); - ////////////////// + ( APC_Search, GetLength(APC_Search) ); + /*++++++++++++++*/ }/* ZCStringBase& InvalidHead(TypeCharC* APC_Search)*/ @@ -1252,10 +1260,8 @@ namespace ZNsMain if(this==&rhs) return *this; if(rhs.ml_UseLen<1) - { - Invalid(); return *this; - }/* - /////////////////*/ + { Invalid(); return *this; } + /*+++++++++++++++*/ ReAlloc(rhs.ml_UseLen); ::memcpy (