commit 2025-10-09 14:31 add size_type in ZtCCharType : ZCppMain/ZtCStringEx.H etc
This commit is contained in:
@ -7502,11 +7502,14 @@ namespace ZNsMain
|
|||||||
typedef TTypString /*++*/ TypeCStr;
|
typedef TTypString /*++*/ TypeCStr;
|
||||||
typedef typename
|
typedef typename
|
||||||
ZtCCharInt<TypeChar>::TypeInt TypeInt ;
|
ZtCCharInt<TypeChar>::TypeInt TypeInt ;
|
||||||
|
typedef typename TypeCStr::
|
||||||
|
size_type /*++*/ TypeSize;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
static const int CI_ByteSize = sizeof(TypeChar);
|
static const int CI_ByteSize = sizeof(TypeChar);
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef TypeChar char_type ; // for stl string/wstring
|
typedef TypeChar char_type ; // for stl string/wstring
|
||||||
typedef TypeInt int_type ; // for stl string/wstring
|
typedef TypeInt int_type ; // for stl string/wstring
|
||||||
|
typedef TypeSize size_type ; // for stl string/wstring
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
@ -7517,6 +7520,8 @@ namespace ZNsMain
|
|||||||
public:
|
public:
|
||||||
typedef std::string /*+++++++*/ TypeCStr;
|
typedef std::string /*+++++++*/ TypeCStr;
|
||||||
typedef char /*+++++++*/ TypeChar;
|
typedef char /*+++++++*/ TypeChar;
|
||||||
|
typedef typename TypeCStr::
|
||||||
|
size_type /*++*/ TypeSize;
|
||||||
typedef typename
|
typedef typename
|
||||||
ZtCCharInt<char>::TypeInt TypeInt ;
|
ZtCCharInt<char>::TypeInt TypeInt ;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
@ -7524,6 +7529,7 @@ namespace ZNsMain
|
|||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef TypeChar char_type ;
|
typedef TypeChar char_type ;
|
||||||
typedef TypeInt int_type ;
|
typedef TypeInt int_type ;
|
||||||
|
typedef TypeSize size_type ;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
@ -7536,11 +7542,14 @@ namespace ZNsMain
|
|||||||
typedef wchar_t /*+++++++*/ TypeChar;
|
typedef wchar_t /*+++++++*/ TypeChar;
|
||||||
typedef typename
|
typedef typename
|
||||||
ZtCCharInt<wchar_t>::TypeInt TypeInt ;
|
ZtCCharInt<wchar_t>::TypeInt TypeInt ;
|
||||||
|
typedef typename TypeCStr::
|
||||||
|
size_type /*+++++++*/ TypeSize;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
static const int CI_ByteSize = sizeof(TypeChar);
|
static const int CI_ByteSize = sizeof(TypeChar);
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef TypeChar char_type ;
|
typedef TypeChar char_type ;
|
||||||
typedef TypeInt int_type ;
|
typedef TypeInt int_type ;
|
||||||
|
typedef TypeSize size_type ;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
|
@ -152,10 +152,12 @@ namespace ZNsMain
|
|||||||
typedef TTypCh /*//////////////////*/ TypeChar ;
|
typedef TTypCh /*//////////////////*/ TypeChar ;
|
||||||
static const int CI_ByteSize = sizeof(TypeChar) ;
|
static const int CI_ByteSize = sizeof(TypeChar) ;
|
||||||
typedef typename
|
typedef typename
|
||||||
ZtCCharInt<TypeChar>::TypeInt TypeInt ;
|
ZtCCharInt<TypeChar> ::TypeInt TypeInt ;
|
||||||
|
typedef typename TypeCStr::TypeSize TypeSize ;
|
||||||
public:
|
public:
|
||||||
typedef TypeChar char_type ; // for stl string/wstring
|
typedef TypeChar char_type ; // for stl string/wstring
|
||||||
typedef TypeInt int_type ; // for stl string/wstring
|
typedef TypeInt int_type ; // for stl string/wstring
|
||||||
|
typedef TypeSize size_type ; // for stl string/wstring
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
class ZtCCharType /*#####################################################*/
|
class ZtCCharType /*#####################################################*/
|
||||||
@ -299,18 +301,18 @@ namespace ZNsMain
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
typedef TAlloc ZCAllocator ;
|
typedef TAlloc ZCAllocator ;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef TTypCh TypeChar ;
|
typedef TTypCh TypeChar ;
|
||||||
typedef const TTypCh TypeCharC ;
|
typedef const TTypCh TypeCharC ;
|
||||||
typedef const TTypCh* TypeCharCP ;
|
typedef const TTypCh* TypeCharCP ;
|
||||||
typedef const TTypCh* TypeCPChar ;
|
typedef const TTypCh* TypeCPChar ;
|
||||||
typedef TTypCh* TypePChar ;
|
typedef TTypCh* TypePChar ;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef TTypeString ZCTypeString;
|
typedef TTypeString ZCTypeString;
|
||||||
typedef ZtCStringBase ZCStringBase;
|
typedef ZtCStringBase ZCStringBase;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef ZtCStringBase TypeThis ;
|
typedef ZtCStringBase TypeThis ;
|
||||||
/*++++++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
typedef typename ZCTypeString::ZCSearchInfo ZCSearchInfo ;
|
typedef typename ZCTypeString::ZCSearchInfo ZCSearchInfo ;
|
||||||
typedef typename ZCTypeString::ZCSearchInfoList ZCSearchInfoList ;
|
typedef typename ZCTypeString::ZCSearchInfoList ZCSearchInfoList ;
|
||||||
typedef typename ZCTypeString::ZCTypeChars ZCTypeChars ;
|
typedef typename ZCTypeString::ZCTypeChars ZCTypeChars ;
|
||||||
@ -326,13 +328,13 @@ namespace ZNsMain
|
|||||||
typedef const ZCChars ZCCharViewC;
|
typedef const ZCChars ZCCharViewC;
|
||||||
public:
|
public:
|
||||||
typedef TypeChar TypeData ;
|
typedef TypeChar TypeData ;
|
||||||
public:
|
|
||||||
typedef TAlloc TypeAlloc ;
|
|
||||||
typedef ZCStringList TypeList ;
|
typedef ZCStringList TypeList ;
|
||||||
public:
|
public:
|
||||||
typedef ZNsMain::ZtCCharType<ZtCStringBase> ZCCharType ;
|
typedef ZNsMain::ZtCCharType<ZtCStringBase> ZCCharType ;
|
||||||
typedef ZNsMain::ZtCCharType<ZtCStringBase> traits_type; // for strl string/wstring
|
|
||||||
typedef typename ZCCharType::TypeInt TypeCharInt;
|
typedef typename ZCCharType::TypeInt TypeCharInt;
|
||||||
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
|
typedef ZNsMain::ZtCCharType<ZtCStringBase> traits_type; // for strl string/wstring
|
||||||
|
typedef TypeSize size_type ; // for strl string/wstring
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum EWriteFile // WriteFile() 에서 사용한다.
|
enum EWriteFile // WriteFile() 에서 사용한다.
|
||||||
|
@ -26,12 +26,14 @@ namespace ZNsMain
|
|||||||
typedef ZtCStringStd<TTypeBaseStr> TypeCStr ;
|
typedef ZtCStringStd<TTypeBaseStr> TypeCStr ;
|
||||||
typedef typename TypeCStr::traits_type::char_type TypeChar ;
|
typedef typename TypeCStr::traits_type::char_type TypeChar ;
|
||||||
typedef typename TypeCStr::traits_type::int_type TypeInt ;
|
typedef typename TypeCStr::traits_type::int_type TypeInt ;
|
||||||
|
typedef typename TypeCStr::size_type TypeSize ;
|
||||||
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
static const int CI_ByteSize = sizeof(TypeChar) ;
|
static const int CI_ByteSize = sizeof(TypeChar) ;
|
||||||
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||||
public:
|
public:
|
||||||
typedef TypeChar char_type ; // for stl string/wstring
|
typedef TypeChar char_type ; // for stl string/wstring
|
||||||
typedef TypeInt int_type ; // for stl string/wstring
|
typedef TypeInt int_type ; // for stl string/wstring
|
||||||
|
typedef TypeSize size_type ; // for stl string/wstring
|
||||||
public:
|
public:
|
||||||
};/*
|
};/*
|
||||||
class ZtCCharType /*#####################################################*/
|
class ZtCCharType /*#####################################################*/
|
||||||
|
@ -66,6 +66,13 @@ namespace ZNsMain
|
|||||||
cout<<"*****************************************************"<<endl;
|
cout<<"*****************************************************"<<endl;
|
||||||
cout<<"# ZCStringBase ::TypeCharInt="<<typeid(ZCStringBase ::TypeCharInt).name()<<endl;
|
cout<<"# ZCStringBase ::TypeCharInt="<<typeid(ZCStringBase ::TypeCharInt).name()<<endl;
|
||||||
cout<<"# ZCStringBaseW::TypeCharInt="<<typeid(ZCStringBaseW::TypeCharInt).name()<<endl;
|
cout<<"# ZCStringBaseW::TypeCharInt="<<typeid(ZCStringBaseW::TypeCharInt).name()<<endl;
|
||||||
|
cout<<"# ZCStringBase ::size_type ="<<typeid(ZCStringBase ::size_type ).name()<<endl;
|
||||||
|
cout<<"# ZCStringBaseW::size_type ="<<typeid(ZCStringBaseW::size_type ).name()<<endl;
|
||||||
|
cout<<"*****************************************************"<<endl;
|
||||||
|
cout<<"# ZCStringStd ::TypeCharInt="<<typeid(ZCStringStd ::TypeCharInt).name()<<endl;
|
||||||
|
cout<<"# ZCStringStdW ::TypeCharInt="<<typeid(ZCStringStdW ::TypeCharInt).name()<<endl;
|
||||||
|
cout<<"# ZCStringStd ::size_type ="<<typeid(ZCStringStd ::size_type ).name()<<endl;
|
||||||
|
cout<<"# ZCStringStdW ::size_type ="<<typeid(ZCStringStdW ::size_type ).name()<<endl;
|
||||||
cout<<"*****************************************************"<<endl;
|
cout<<"*****************************************************"<<endl;
|
||||||
cout<<"# ZCStringBase ::traits_type::char_type="<<typeid(ZCStringBase ::traits_type::char_type).name()<<endl;
|
cout<<"# ZCStringBase ::traits_type::char_type="<<typeid(ZCStringBase ::traits_type::char_type).name()<<endl;
|
||||||
cout<<"# ZCStringBaseW::traits_type::char_type="<<typeid(ZCStringBaseW::traits_type::char_type).name()<<endl;
|
cout<<"# ZCStringBaseW::traits_type::char_type="<<typeid(ZCStringBaseW::traits_type::char_type).name()<<endl;
|
||||||
|
Reference in New Issue
Block a user