commit 2025-10-08 18:06 add ZftMakeStr(string& ARR_SaveCStr, const ZCCharView& AR_View) in ZCppMain/ZMainHead.H
This commit is contained in:
@ -5313,6 +5313,14 @@ namespace ZNsMain
|
||||
template<> string& ZftMakeStr(string& ARR_SaveCStr, bool AB_Bool)*/
|
||||
|
||||
|
||||
template<typename TTypeChar, typename TTypeLength>
|
||||
class ZtCChars ;
|
||||
/*++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||
|
||||
template<> string& ZftMakeStr
|
||||
(string& ARR_SaveCStr, const ZtCChars<char, ZTypLength>& AR_View);
|
||||
|
||||
|
||||
|
||||
// class ZtCBaseList : circular double linked list
|
||||
|
||||
@ -7301,8 +7309,16 @@ namespace ZNsMain
|
||||
typedef ZtCChars<char > ZCChars ;
|
||||
typedef ZtCChars<wchar_t> ZCCharsW ;
|
||||
|
||||
typedef ZtCChars<char > ZCCharsView ; // for string_view in C++17
|
||||
typedef ZtCChars<wchar_t> ZCCharsViewW;
|
||||
typedef ZtCChars<char > ZCCharView ; // for string_view in C++17
|
||||
typedef ZtCChars<wchar_t> 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)*/
|
||||
|
||||
|
||||
|
||||
|
@ -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<<"# "<<VO_ZCStringStd<<endl;
|
||||
|
||||
|
Reference in New Issue
Block a user