commit 2025-09-02 14:37 refine Replace() in ZCppMain/ZtCStringEx.H

This commit is contained in:
2025-09-02 14:37:39 +09:00
parent 832cd98558
commit f52ff234d7
2 changed files with 4 additions and 4 deletions

View File

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

View File

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