commit 2025-08-28 23:17 edit a bit ZCppMain/ZtCMainChars.H
This commit is contained in:
@ -833,10 +833,13 @@ namespace ZNsMain
|
|||||||
static bool DoClose(
|
static bool DoClose(
|
||||||
TypeCharC* APC_Origin, TypeCharC* APC_Search, TypeLength AL_OriginLength, TypeLength AL_SearchLength)
|
TypeCharC* APC_Origin, TypeCharC* APC_Search, TypeLength AL_OriginLength, TypeLength AL_SearchLength)
|
||||||
{
|
{
|
||||||
const bool CB_IsBad = (
|
const bool CB_IsBad = /*:::::::::::::::*/
|
||||||
AL_OriginLength<1 || AL_SearchLength<1 || AL_OriginLength<AL_OriginLength);
|
(
|
||||||
|
AL_OriginLength < 1 ||
|
||||||
if(CB_IsBad) return false;
|
AL_SearchLength < 1 ||
|
||||||
|
AL_OriginLength < AL_OriginLength
|
||||||
|
);
|
||||||
|
if(CB_IsBad) return false; /*:::::::::*/
|
||||||
|
|
||||||
const TypeChar* VP_Char1 = APC_Origin+(AL_OriginLength-AL_SearchLength);
|
const TypeChar* VP_Char1 = APC_Origin+(AL_OriginLength-AL_SearchLength);
|
||||||
const TypeChar* VP_Char2 = APC_Search ;
|
const TypeChar* VP_Char2 = APC_Search ;
|
||||||
@ -868,12 +871,14 @@ namespace ZNsMain
|
|||||||
TypeLength AL_OriginLength1, TypeLength AL_OriginLength2, TypeLength AL_SearchLength )
|
TypeLength AL_OriginLength1, TypeLength AL_OriginLength2, TypeLength AL_SearchLength )
|
||||||
{
|
{
|
||||||
/* APC_Origin1 와 APC_Origin2 을 연속된 문자열로 보았을때,
|
/* APC_Origin1 와 APC_Origin2 을 연속된 문자열로 보았을때,
|
||||||
전체 문자열이 APC_Search 로 끝나면 true 를 반환한다. */
|
전체 문자열이 APC_Search 로 끝나면 true 를 반환한다.
|
||||||
|
*/
|
||||||
const bool CB_IsBad = (
|
const bool CB_IsBad = /*:::::::::::::::::::::::::::::::::::::*/
|
||||||
AL_SearchLength<1 || AL_OriginLength1+AL_OriginLength2<AL_SearchLength );
|
(
|
||||||
|
AL_SearchLength<1 ||
|
||||||
if(CB_IsBad) return false; //////////////////////////////////////////////////
|
AL_OriginLength1 + AL_OriginLength2 < AL_SearchLength
|
||||||
|
);
|
||||||
|
if(CB_IsBad) return false; /*::::::::::::::::::::::::::::::::*/
|
||||||
|
|
||||||
|
|
||||||
/*/////////////////////////////////////////////////////
|
/*/////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user