commit 2025-10-08 20:43 add ZtCCharType in ZCppMain/ZMainHead.H

This commit is contained in:
2025-10-08 22:43:47 +09:00
parent 443ebf4fd1
commit 6974c13d16
4 changed files with 182 additions and 14 deletions

View File

@ -131,6 +131,40 @@ namespace ZNsMain
class ZtCStringBase; /*::::::::::::::::::::::::::::::::::::::::::::*/
template //////////////////////////////////////////////////////////////////
<
template<typename, typename, typename, typename>
class ZtCStringBase,
typename TTypCh , typename TAlloc,
typename TAllocSize, typename TTypeString
>
class ZtCCharType
< ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString> >
/*#######################################################################*/
{
public:
typedef ZtCStringBase ///////////////////////////
<
TTypCh, TAlloc, TAllocSize, TTypeString
>
/*/////////////////////////////////*/ TypeCStr ;
public:
typedef TTypCh /*//////////////////*/ TypeChar ;
public:
static const int CI_ByteSize = sizeof(TypeChar) ;
public:
typedef typename
ZtCCharInt<TypeChar>::TypeInt TypeInt ;
public:
typedef TypeChar char_type ; // for stl
typedef TypeInt int_type ; // for stl
public:
};/*
class ZtCCharType /*#####################################################*/
namespace ZNsType
{
@ -258,12 +292,11 @@ namespace ZNsMain
{
public:
typedef typename TTypeString::template ZtCHelpBase< ///////
ZtCStringBase
<
TTypCh, TAlloc, TAllocSize, TTypeString
>
/*////////*/ > TypeHelpBase; /////////////////////////////
typedef typename TTypeString::template ZtCHelpBase ///////////
<
ZtCStringBase<TTypCh, TAlloc, TAllocSize, TTypeString>
>
TypeHelpBase; ////////////////////////////////////////////////
typedef typename TypeHelpBase::ZCStringList ZCStringList ;
@ -298,6 +331,10 @@ namespace ZNsMain
typedef TAlloc TypeAlloc ;
typedef ZCStringList TypeList ;
public:
typedef ZNsMain::ZtCCharType<ZtCStringBase> ZCCharType ;
typedef ZNsMain::ZtCCharType<ZtCStringBase> traits_type;
typedef typename ZCCharType::TypeInt TypeCharInt;
public:
enum EWriteFile // WriteFile() 에서 사용한다.
{