commit 2025-10-09 21:53 add ZtCBoolStr : ZCppMain/ZMainHead.H
This commit is contained in:
@ -22,10 +22,12 @@ namespace ZNsMain
|
||||
|
||||
typedef ZCStringBase ::ZCCharView ZCCharView ;
|
||||
typedef ZCStringBaseW::ZCCharView ZCCharViewW ;
|
||||
typedef ZCStringStd ::ZCCharView ZCCharViewS ;
|
||||
typedef ZCStringStdW ::ZCCharView ZCCharViewSW ;
|
||||
typedef ZtCCharType<ZCStringBase> ZCCharType ;
|
||||
typedef ZtCCharType<ZCStringBaseW> ZCCharTypeW ;
|
||||
typedef ZtCCharType<ZCStringStd > ZCCharTypeS ;
|
||||
typedef ZtCCharType<ZCStringStdW > ZCCharTypeSW ;
|
||||
typedef ZtCCharType<ZCStringStd > ZCCharTypeS ;
|
||||
typedef ZtCCharType<ZCStringStdW> ZCCharTypeSW ;
|
||||
|
||||
typedef ZCCharType ::TypeChar TypeChar ;
|
||||
typedef ZCCharTypeW ::TypeChar TypeCharW ;
|
||||
@ -123,7 +125,7 @@ namespace ZNsMain
|
||||
ZCStringBase VO_ZCStringStd(CO_ZCCharView);
|
||||
cout<<"# "<<VO_ZCStringStd<<endl;
|
||||
|
||||
cout<<"* after Replace('12', '***')"<<endl;
|
||||
cout<<"* after VO_ZCStringStd.Replace('12', '***')"<<endl;
|
||||
VO_ZCStringStd.Replace(ZCCharView("12"), ZCCharView("***"));
|
||||
cout<<"# "<<VO_ZCStringStd<<endl;
|
||||
cout<<"*****************************************************"<<endl;
|
||||
@ -154,19 +156,32 @@ namespace ZNsMain
|
||||
cout<<"*****************************************************"<<endl;
|
||||
|
||||
|
||||
ZftMakeStr(VO_ZCStringStd, 1234);
|
||||
ZftMakeStr(VO_ZCStringStd, ZCCharView("--"));
|
||||
ZftMakeStr(VO_ZCStringStd, double(10.01));
|
||||
ZftMakeStr(VO_ZCStringStd, true);
|
||||
ZftMakeStr(VO_ZCStringStd,'Z');
|
||||
ZftMakeStr(VO_ZCStringStd, ZCCharView("_Z_"));
|
||||
ZftMakeStr(VO_ZCStringStd , 1234);
|
||||
ZftMakeStr(VO_ZCStringStd , ZCCharView("--"));
|
||||
ZftMakeStr(VO_ZCStringStd , double(10.01));
|
||||
ZftMakeStr(VO_ZCStringStd , true);
|
||||
ZftMakeStr(VO_ZCStringStd , 'Z');
|
||||
ZftMakeStr(VO_ZCStringStd , ZCCharView("_Z_"));
|
||||
|
||||
ZftMakeStr(VO_ZCStringStdW, 1234);
|
||||
ZftMakeStr(VO_ZCStringStdW, ZCCharViewSW(L"--"));
|
||||
ZftMakeStr(VO_ZCStringStdW, double(10.01));
|
||||
ZftMakeStr(VO_ZCStringStdW, true);
|
||||
ZftMakeStr(VO_ZCStringStdW, L'Z');
|
||||
ZftMakeStr(VO_ZCStringStdW, ZCCharViewSW(L"_Z_"));
|
||||
|
||||
VO_ZCStringStdW(false);
|
||||
|
||||
|
||||
cout<<"* after ZftMakeStr(VO_ZCStringStd, ~)"<<endl;
|
||||
cout<<"# "<<VO_ZCStringStd<<endl;
|
||||
cout<<"*****************************************************"<<endl;
|
||||
|
||||
cout<<"* after Replace('T#', '')"<<endl;
|
||||
cout<<"* after ZftMakeStr(VO_ZCStringStdW, ~)"<<endl;
|
||||
cout<<"# "<<VO_ZCStringStdW<<endl;
|
||||
cout<<"*****************************************************"<<endl;
|
||||
|
||||
cout<<"* after VO_ZCStringStd.Replace('T#', '')"<<endl;
|
||||
VO_ZCStringStd.Replace(ZCCharView("T#"), ZCCharView(""));
|
||||
cout<<"# "<<VO_ZCStringStd<<endl;
|
||||
cout<<"*****************************************************"<<endl;
|
||||
|
Reference in New Issue
Block a user