From 51ea4859d8088a1e60d8e4a1730af830cfbb60c3 Mon Sep 17 00:00:00 2001 From: sauron Date: Thu, 9 Oct 2025 11:34:02 +0900 Subject: [PATCH] commit 2025-10-09 11:33 edit a bit ZCppMain/ZtCStringEx.H --- ZCppMain/ZtCStringEx.H | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ZCppMain/ZtCStringEx.H b/ZCppMain/ZtCStringEx.H index 57f28fc..043e8ee 100644 --- a/ZCppMain/ZtCStringEx.H +++ b/ZCppMain/ZtCStringEx.H @@ -1312,8 +1312,15 @@ namespace ZNsMain bool operator<=(const ZCChars& AR_CChars) const{return Minus(AR_CChars.data(), AR_CChars.size())<=0 ;} + ZCStringBase operator+(const TypeThis& rhs) + { + return (*this)(rhs); + }/* + ZCStringBase operator+(const TypeThis& rhs)*/ + ZCStringBase operator+(TypeCharC* APC_Data) { + #if(_CODE_OLD_) if(APC_Data==0 || APC_Data[0]+=0) return *this; ZCStringBase VO_CStringTemp; @@ -1323,11 +1330,15 @@ namespace ZNsMain VO_CStringTemp(*this) (APC_Data, VL_ArgLen); return VO_CStringTemp; + #else + return (*this)(APC_Data); + #endif }/* ZCStringBase operator+(TypeCharC* APC_Data)*/ ZCStringBase operator+(const ZCCharView& AR_View) { + #if(_CODE_OLD_) ZCStringBase VO_CStringTemp; VO_CStringTemp.ReAlloc @@ -1336,6 +1347,9 @@ namespace ZNsMain ( AR_View.data(), AR_View.size() ); return VO_CStringTemp; + #else + return (*this)(AR_View); + #endif }/* ZCStringBase operator+(const ZCCharView& AR_View)*/