commit 2025-10-07 15:40 edit a bit ZCppMain/ZtCLinkList.H

This commit is contained in:
2025-10-07 15:40:40 +09:00
parent 27eb6b19a6
commit 59a8cb3708
2 changed files with 12 additions and 12 deletions

View File

@ -781,25 +781,25 @@ namespace ZNsMain
namespace ZNsEnum*/
template<typename ZtpChar, typename ZtpiLength> ZTypIntE ZftGetCompareCode
template<typename TTyChar, typename TTyiLength> ZTypIntE ZftGetCompareCode
(
const ZtpChar* ZApcLeft , ZtpiLength ZAiLenLeft ,
const ZtpChar* ZApcRight, ZtpiLength zAiLenRight
const TTyChar* ZApcLeft , TTyiLength ZAiLenLeft ,
const TTyChar* ZApcRight, TTyiLength zAiLenRight
)
/*######################################################################*/
{
if(ZAiLenLeft<1 && zAiLenRight<1)
return ZNsEnum::ZECompareResult_Equal;
ZtpiLength ViLoopCnt =
TTyiLength ViLoopCnt =
(ZAiLenLeft<=zAiLenRight ? ZAiLenLeft : zAiLenRight);
__for0(ZtpiLength, i, ViLoopCnt)
__for0(TTyiLength, i, ViLoopCnt)
{
if(ZApcLeft[i] > ZApcRight[i]) return ZNsEnum::ZECompareResult_More;
if(ZApcLeft[i] < ZApcRight[i]) return ZNsEnum::ZECompareResult_Less;
}/*
__for0(ZtpiLength, i, ViLoopCnt)*/
__for0(TTyiLength, i, ViLoopCnt)*/
if(ZAiLenLeft==zAiLenRight) return ZNsEnum::ZECompareResult_Equal;
if(ZAiLenLeft> zAiLenRight) return ZNsEnum::ZECompareResult_More ;
@ -807,10 +807,10 @@ namespace ZNsMain
return ZNsEnum::ZECompareResult_Equal;
}/*
template<typename ZtpChar, typename ZtpiLength> ZTypIntE ZftGetCompareCode
template<typename TTyChar, typename TTyiLength> ZTypIntE ZftGetCompareCode
(
const ZtpChar* ZApcLeft , ZtpiLength ZAiLenLeft ,
const ZtpChar* ZApcRight, ZtpiLength zAiLenRight
const TTyChar* ZApcLeft , TTyiLength ZAiLenLeft ,
const TTyChar* ZApcRight, TTyiLength zAiLenRight
)
/*######################################################################*/