Compare commits

..

2 Commits

Author SHA1 Message Date
/* User with id == 0 is a fake user from git author */ sauron
f52ff234d7 commit 2025-09-02 14:37 refine Replace() in ZCppMain/ZtCStringEx.H 2025-09-02 14:37:39 +09:00
/* User with id == 0 is a fake user from git author */ sauron
832cd98558 commit 2025-09-02 14:24 fix bug in Replace() in ZCppMain/ZtCStringEx.H 2025-09-02 14:36:49 +09:00
2 changed files with 4 additions and 4 deletions

View File

@ -160,7 +160,7 @@ namespace ZNsMain
}/*
__for1(TypeLength, i, VL_PosListSize)*/
if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)
if(VL_ThisSize > VL_MoveStart)
{
::memmove /*::::::::::::::::::::::::::::::*/
(
@ -170,7 +170,7 @@ namespace ZNsMain
);
/*::::::::::::::::::::::::::::::::::::::::*/
}/*
if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)*/
if(VL_ThisSize > VL_MoveStart)*/
this->resize(VL_NeedSize); return *this;
}/*

View File

@ -430,7 +430,7 @@ namespace ZNsMain
}/*
__for1(TypeLength, i, VL_PosListSize)*/
if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)
if(VL_ThisSize > VL_MoveStart)
{
::memmove /*::::::::::::::::::::::::::::::::::::::::*/
(
@ -440,7 +440,7 @@ namespace ZNsMain
);
/*::::::::::::::::::::::::::::::::::::::::::::::::::*/
}/*
if(VL_DestStart<VL_MoveStart && VL_DestStart<VL_ThisSize)*/
if(VL_ThisSize > VL_MoveStart)*/
this->resize(VL_NeedSize); return *this;
}/*