commit 2025-09-03 13:56 edit ZCChars::Init() in ZCppMain/ZtCMainChars.H

This commit is contained in:
2025-09-03 13:57:05 +09:00
parent 6aa460f380
commit 6a3b673a19
3 changed files with 46 additions and 27 deletions

View File

@ -278,13 +278,29 @@ namespace ZNsMain
}/*
ZCChars(TypeCharC* APC_TypeChar, TypeLength AL_Length)*/
void Init(TypeCharC* APC_TypeChar=0, TypeLength AL_Length=0)
void Init()
{
mp_TypeChar = 0;
ml_TypeLength= 0;
}/*
void Init()*/
void Init(TypeCharC* APC_TypeChar)
{
mp_TypeChar = const_cast<TypeChar*> (APC_TypeChar);
ml_TypeLength= ZtCTypeChars::GetLength(mp_TypeChar );
}/*
void Init(TypeCharC* APC_TypeChar)*/
void Init(TypeCharC* APC_TypeChar, TypeLength AL_Length)
{
mp_TypeChar =const_cast
<TypeChar*>(APC_TypeChar) ;
ml_TypeLength=AL_Length ;
}/*
void Init(TypeCharC* APC_TypeChar=0, TypeLength AL_Length=0)*/
void Init(TypeCharC* APC_TypeChar, TypeLength AL_Length)*/
void InitData(TypeCharC* APC_TypeChar)
{
@ -298,23 +314,9 @@ namespace ZNsMain
}/*
void InitLength(TypeLength AL_Length)*/
TypeChar* data()
{
return mp_TypeChar;
}/*
TypeChar* data()*/
TypeCharC* data() const
{
return mp_TypeChar;
}/*
TypeCharC* data() const*/
TypeLength size() const
{
return ml_TypeLength;
}/*
TypeLength size() const*/
TypeChar* data() {return mp_TypeChar ;}
TypeCharC* data() const{return mp_TypeChar ;}
TypeLength size() const{return ml_TypeLength;}
ZCChars& operator+=(TypeLength AI_MovePos)
{