commit 2025-08-31 21:32 edit a bit ZCppMain/ZtCStringEx.H

This commit is contained in:
2025-08-31 21:32:58 +09:00
parent c487215065
commit ee9065f37c
3 changed files with 14 additions and 12 deletions

View File

@ -4054,8 +4054,8 @@ namespace ZNsMain
새로운 파일명을 ARR_CStringFileNew 에 전달한다. */ 새로운 파일명을 ARR_CStringFileNew 에 전달한다. */
ZTypLength VL_ExtPos=ZCMainChars::FindPos( ///////// ZTypLength VL_ExtPos=ZCMainChars::FindPos( /////////
APC_FileNow ,".", APC_FileNow , ".",
AI_FileNowLen,1 AI_FileNowLen, 1
/*/////////*/ ); ////////////////////////////////// /*/////////*/ ); //////////////////////////////////
if(VL_ExtPos<0) if(VL_ExtPos<0)

View File

@ -972,9 +972,9 @@ namespace ZNsMain
if(CB_IsBad) return -1; if(CB_IsBad) return -1;
TypeLength VL_Loop=AL_OriginLength-AL_SearchLength; TypeLength VL_Loop= AL_OriginLength-AL_SearchLength;
TypeLength i =AL_StartPos ; TypeLength i = AL_StartPos ;
TypeLength j =0 ; TypeLength j = 0 ;
/*////////////////////////////////////////////////////// /*//////////////////////////////////////////////////////

View File

@ -410,10 +410,10 @@ namespace ZNsMain
{ {
if(i-VL_PrevPos>0) if(i-VL_PrevPos>0)
{ {
VP_CSearchInfo=&(ZCSearchInfo&)ARR_InfoList ; VP_CSearchInfo = &(ZCSearchInfo&)ARR_InfoList ;
VP_CSearchInfo->mp_Char=VP_Origin+VL_PrevPos; VP_CSearchInfo->mp_Char= VP_Origin+VL_PrevPos ;
VP_CSearchInfo->ml_Pos =VL_PrevPos ; VP_CSearchInfo->ml_Pos = VL_PrevPos ;
VP_CSearchInfo->ml_Len =i-VL_PrevPos ; VP_CSearchInfo->ml_Len = i-VL_PrevPos ;
} }
/*<<<<<<<<<<<<<<*/ /*<<<<<<<<<<<<<<*/
@ -1050,7 +1050,7 @@ namespace ZNsMain
{ {
if(this->DoStart(APC_Data, AL_Length)==true) MoveFirst(AL_Length); if(this->DoStart(APC_Data, AL_Length)==true) MoveFirst(AL_Length);
return *this; /*################################################*/ return *this; /*++++++++++++++++++++++++++++++++++++++++++++++++*/
}/* }/*
ZCStringBase& Minus(TypeCharC* APC_Data, TypeLength AL_Length)*/ ZCStringBase& Minus(TypeCharC* APC_Data, TypeLength AL_Length)*/
@ -5288,7 +5288,7 @@ namespace ZNsMain
if(AH_FileDesc == -1) return false; if(AH_FileDesc == -1) return false;
// 파일 기술자를 파일의 맨 끝으로 이동시켜 파일크기를 구한다. // 파일 기술자를 파일의 맨 끝으로 이동시켜 파일 크기를 구한다.
off_t VL_LastPos = ::lseek off_t VL_LastPos = ::lseek
(AH_FileDesc, 0/*Offset*/, SEEK_END); // 실패시 -1 (AH_FileDesc, 0/*Offset*/, SEEK_END); // 실패시 -1
@ -5438,7 +5438,9 @@ namespace ZNsMain
( (
( VL_ReadCnt = ::read ( VL_ReadCnt = ::read
( (
AH_FileDesc, VO_CStringBuff.mpc_Data+VO_CStringBuff.ml_UseLen, VL_LoadLen AH_FileDesc,
VO_CStringBuff.mpc_Data + VO_CStringBuff.ml_UseLen,
VL_LoadLen
) )
) > 0 ) > 0
) )