From b1eaa036d13c3baf6509dc5404d0601bffd800f1 Mon Sep 17 00:00:00 2001 From: sauron Date: Thu, 28 Aug 2025 22:02:25 +0900 Subject: [PATCH] commit 2025-08-28 22:02 edit a bit ZCppMain/ZtCStringEx.H --- ZCppMain/ZtCStringEx.H | 47 ++++++++++++++--------------------------------- 1 file changed, 14 insertions(+), 33 deletions(-) diff --git a/ZCppMain/ZtCStringEx.H b/ZCppMain/ZtCStringEx.H index 7b2da61..72b1a97 100644 --- a/ZCppMain/ZtCStringEx.H +++ b/ZCppMain/ZtCStringEx.H @@ -145,6 +145,7 @@ namespace ZNsMain { public : typedef long TypeLength; + typedef TTypCh TypeData ; typedef TTypCh TypeChar ; typedef const TTypCh TypeCharC ; typedef const TTypCh* TypeCharCP; @@ -192,11 +193,16 @@ namespace ZNsMain if(AL_ArgLength<1) return *this; TypeLength VUL_MaxIndex = - ( (ml_Length +AL_ArgLength >= ml_AllLen) ? ml_AllLen : ml_Length +AL_ArgLength) ; + ( + (ml_Length +AL_ArgLength >= ml_AllLen) ? + ml_AllLen : + ml_Length +AL_ArgLength + ) ; + /*:::::::::::::::::::::*/ for(TypeLength i=ml_Length; i& Add(TypeChar* APC_ArgChar)*/ - operator TypeChar*() - { - return mpc_Buff ; - }/* - operator TypeChar*()*/ + operator TypeChar* () {return mpc_Buff ;} + operator TypeCharC*() const{return mpc_Buff ;} - operator TypeCharC*() const - { - return mpc_Buff ; - }/* - operator TypeCharC*() const*/ - - TypeChar* data() - { - return mpc_Buff ; - }/* - TypeChar* data()*/ - - TypeCharC* data() const - { - return mpc_Buff ; - }/* - TypeCharC* data() const*/ - - TypeLength size() const - { - return ml_Length; - }/* - TypeLength size() const*/ + TypeChar* data () {return mpc_Buff ;} + TypeCharC* data () const{return mpc_Buff ;} + TypeLength size () const{return ml_Length;} public: };/* - template< typename TTypCh - > - class ZtCCharPtr ////////*/ + template class ZtCCharPtr*/ typedef ZtCCharPtr CCharPtr ;