commit 2025-08-28 22:02 edit a bit ZCppMain/ZtCStringEx.H
This commit is contained in:
@ -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<VUL_MaxIndex; ++i)
|
||||
{
|
||||
mpc_Buff[i]=APC_ArgChar[i-ml_Length] ;
|
||||
mpc_Buff[i] = APC_ArgChar[i-ml_Length] ;
|
||||
}/*
|
||||
for(TypeLength i=ml_Length; i<VUL_MaxIndex; ++i)*/
|
||||
|
||||
@ -210,41 +216,16 @@ namespace ZNsMain
|
||||
}/*
|
||||
ZtCCharPtr<TypeChar>& 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<typename TTypCh> class ZtCCharPtr*/
|
||||
|
||||
|
||||
typedef ZtCCharPtr<char> CCharPtr ;
|
||||
|
Reference in New Issue
Block a user