diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index aa203b0..d06df96 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -5313,6 +5313,14 @@ namespace ZNsMain template<> string& ZftMakeStr(string& ARR_SaveCStr, bool AB_Bool)*/ + template + class ZtCChars ; + /*++++++++++++++++++++++++++++++++++++++++++++++*/ + + template<> string& ZftMakeStr + (string& ARR_SaveCStr, const ZtCChars& AR_View); + + // class ZtCBaseList : circular double linked list @@ -7301,8 +7309,16 @@ namespace ZNsMain typedef ZtCChars ZCChars ; typedef ZtCChars ZCCharsW ; - typedef ZtCChars ZCCharsView ; // for string_view in C++17 - typedef ZtCChars ZCCharsViewW; + typedef ZtCChars ZCCharView ; // for string_view in C++17 + typedef ZtCChars ZCCharViewW ; + + + + template<> string& ZftMakeStr(string& ARR_SaveCStr, const ZCCharView& AR_View) + { + ARR_SaveCStr.append(AR_View.data(), AR_View.size()); return ARR_SaveCStr; + }/* + template<> string& ZftMakeStr(string& ARR_SaveCStr, const ZCCharView& AR_View)*/ diff --git a/ZCppMainTest/ZtCStringBase_000.cpp b/ZCppMainTest/ZtCStringBase_000.cpp index af12d17..f2d6f14 100644 --- a/ZCppMainTest/ZtCStringBase_000.cpp +++ b/ZCppMainTest/ZtCStringBase_000.cpp @@ -25,6 +25,7 @@ namespace ZNsMain static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0) { const ZCCharView CO_ZCCharView("1234AA5678AA90abcAAss"); + CStringBase VO_ZCStringStd(CO_ZCCharView); cout<<"# "<