commit 2025-08-28 22:02 edit a bit ZCppMain/ZtCStringEx.H
This commit is contained in:
@ -145,6 +145,7 @@ namespace ZNsMain
|
|||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
typedef long TypeLength;
|
typedef long TypeLength;
|
||||||
|
typedef TTypCh TypeData ;
|
||||||
typedef TTypCh TypeChar ;
|
typedef TTypCh TypeChar ;
|
||||||
typedef const TTypCh TypeCharC ;
|
typedef const TTypCh TypeCharC ;
|
||||||
typedef const TTypCh* TypeCharCP;
|
typedef const TTypCh* TypeCharCP;
|
||||||
@ -192,11 +193,16 @@ namespace ZNsMain
|
|||||||
if(AL_ArgLength<1) return *this;
|
if(AL_ArgLength<1) return *this;
|
||||||
|
|
||||||
TypeLength VUL_MaxIndex =
|
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)
|
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)*/
|
for(TypeLength i=ml_Length; i<VUL_MaxIndex; ++i)*/
|
||||||
|
|
||||||
@ -210,41 +216,16 @@ namespace ZNsMain
|
|||||||
}/*
|
}/*
|
||||||
ZtCCharPtr<TypeChar>& Add(TypeChar* APC_ArgChar)*/
|
ZtCCharPtr<TypeChar>& Add(TypeChar* APC_ArgChar)*/
|
||||||
|
|
||||||
operator TypeChar*()
|
operator TypeChar* () {return mpc_Buff ;}
|
||||||
{
|
operator TypeCharC*() const{return mpc_Buff ;}
|
||||||
return mpc_Buff ;
|
|
||||||
}/*
|
|
||||||
operator TypeChar*()*/
|
|
||||||
|
|
||||||
operator TypeCharC*() const
|
TypeChar* data () {return mpc_Buff ;}
|
||||||
{
|
TypeCharC* data () const{return mpc_Buff ;}
|
||||||
return mpc_Buff ;
|
TypeLength size () const{return ml_Length;}
|
||||||
}/*
|
|
||||||
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*/
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
template< typename TTypCh
|
template<typename TTypCh> class ZtCCharPtr*/
|
||||||
>
|
|
||||||
class ZtCCharPtr ////////*/
|
|
||||||
|
|
||||||
|
|
||||||
typedef ZtCCharPtr<char> CCharPtr ;
|
typedef ZtCCharPtr<char> CCharPtr ;
|
||||||
|
Reference in New Issue
Block a user