commit 2025-08-21 13:57 edit a bit ZMainHead.H
This commit is contained in:
@ -2338,14 +2338,14 @@ namespace ZNsMain
|
||||
|
||||
// 절대값을 가져온다.
|
||||
|
||||
template<typename TLong> TLong ABS(TLong AL_Value)
|
||||
template<typename TLong> TLong ZfABS(TLong AL_Value)
|
||||
{
|
||||
if(AL_Value<0) return -AL_Value; return AL_Value;
|
||||
}/*
|
||||
template<typename TLong> TLong ABS(TLong AL_Value) */
|
||||
template<typename TLong> TLong ZfABS(TLong AL_Value) */
|
||||
|
||||
template<typename TypeInt>
|
||||
TypeInt AToInt(const char* ApcChar, ZTypIntI AI_Length)
|
||||
TypeInt ZfAToInt(const char* ApcChar, ZTypIntI AI_Length)
|
||||
{
|
||||
if(AI_Length<1) return 0;
|
||||
|
||||
@ -2371,64 +2371,80 @@ namespace ZNsMain
|
||||
return VL_Result;
|
||||
}/*
|
||||
template<typename TypeInt>
|
||||
TypeInt AToInt(const char* ApcChar, ZTypIntI AI_Length) */
|
||||
TypeInt ZfAToInt(const char* ApcChar, ZTypIntI AI_Length) */
|
||||
|
||||
#ifdef _WIN
|
||||
|
||||
inline ZTypLLong ATOLL(const char* ApcChar)
|
||||
inline ZTypLLong ZfATOLL(const char* ApcChar)
|
||||
{
|
||||
if(ApcChar==0) return 0; return ::_atoi64(ApcChar);
|
||||
}/*
|
||||
inline ZTypLLong ATOLL(const char* ApcChar)*/
|
||||
inline ZTypLLong ZfATOLL(const char* ApcChar)*/
|
||||
|
||||
#else // !defined(_WIN)
|
||||
|
||||
inline ZTypLLong ATOLL(const char* ApcChar)
|
||||
inline ZTypLLong ZfATOLL(const char* ApcChar)
|
||||
{
|
||||
if(ApcChar==0) return 0; return ::atoll(ApcChar);
|
||||
}/*
|
||||
inline ZTypLLong ATOLL(const char* ApcChar)*/
|
||||
inline ZTypLLong ZfATOLL(const char* ApcChar)*/
|
||||
|
||||
#endif // !defined(_WIN)
|
||||
|
||||
|
||||
inline ZTypLLong ATOLL(const char* ApcChar, ZTypIntI AI_Length)
|
||||
inline ZTypLLong ZfATOLL(const char* ApcChar, ZTypIntI AI_Length)
|
||||
{
|
||||
return AToInt<ZTypLLong>(ApcChar, AI_Length);
|
||||
return ZfAToInt<ZTypLLong>(ApcChar, AI_Length);
|
||||
}/*
|
||||
inline ZTypLLong ATOL(const char* ApcChar, ZTypIntI AI_Length)*/
|
||||
inline ZTypLLong ZfATOL(const char* ApcChar, ZTypIntI AI_Length)*/
|
||||
|
||||
|
||||
inline ZTypLong ATOL(const char* ApcChar)
|
||||
inline ZTypLong ZfATOL(const char* ApcChar)
|
||||
{
|
||||
if(ApcChar==0) return 0; return atol(ApcChar);
|
||||
if(ApcChar==0) return 0; return ::atol(ApcChar);
|
||||
}/*
|
||||
inline ZTypLong ATOL(const char* ApcChar)*/
|
||||
inline ZTypLong ZfATOL(const char* ApcChar)*/
|
||||
|
||||
inline ZTypLong ATOL(const char* ApcChar, ZTypIntI AI_Length)
|
||||
inline ZTypLong ZfATOL(const char* ApcChar, ZTypIntI AI_Length)
|
||||
{
|
||||
return AToInt<ZTypLong>(ApcChar, AI_Length);
|
||||
return ZfAToInt<ZTypLong>(ApcChar, AI_Length);
|
||||
}/*
|
||||
inline ZTypLong ATOL(const char* ApcChar, ZTypIntI AI_Length)*/
|
||||
inline ZTypLong ZfATOL(const char* ApcChar, ZTypIntI AI_Length)*/
|
||||
|
||||
|
||||
inline ZTypIntI ATOI(const char* ApcChar)
|
||||
inline ZTypIntI ZfATOI(const char* ApcChar)
|
||||
{
|
||||
if(ApcChar==0) return 0; return atoi(ApcChar);
|
||||
if(ApcChar==0) return 0; return ::atoi(ApcChar);
|
||||
}/*
|
||||
inline ZTypIntI ATOI(const char* ApcChar)*/
|
||||
inline ZTypIntI ZfATOI(const char* ApcChar)*/
|
||||
|
||||
inline ZTypIntI ATOI(const char* ApcChar, ZTypIntI AI_Length)
|
||||
inline ZTypIntI ZfATOI(const char* ApcChar, ZTypIntI AI_Length)
|
||||
{
|
||||
return AToInt<ZTypIntI>(ApcChar, AI_Length);
|
||||
return ZfAToInt<ZTypIntI>(ApcChar, AI_Length);
|
||||
}/*
|
||||
inline ZTypIntI ATOI(const char* ApcChar, ZTypIntI AI_Length)*/
|
||||
inline ZTypIntI ZfATOI(const char* ApcChar, ZTypIntI AI_Length)*/
|
||||
|
||||
inline double ATOD(const char* ApcChar)
|
||||
inline double ZfATOD(const char* ApcChar)
|
||||
{
|
||||
return ApcChar==0 ? 0 : ::atof(ApcChar) ;
|
||||
}/*
|
||||
inline double ATOD(const char* ApcChar)*/
|
||||
inline double ZfATOD(const char* ApcChar)*/
|
||||
|
||||
|
||||
|
||||
|
||||
inline ZTypLLong ATOLL(const char* ApcChar){return ZfATOLL(ApcChar);}
|
||||
inline ZTypLong ATOL (const char* ApcChar){return ZfATOL (ApcChar);}
|
||||
inline ZTypIntI ATOI (const char* ApcChar){return ZfATOI (ApcChar);}
|
||||
inline double ATOD (const char* ApcChar){return ZfATOD (ApcChar);}
|
||||
|
||||
inline ZTypLLong ATOLL(const char* ApcChar, ZTypIntI AI_Length)
|
||||
{ return ZfAToInt<ZTypLLong>(ApcChar, AI_Length); }
|
||||
inline ZTypLong ATOL (const char* ApcChar, ZTypIntI AI_Length)
|
||||
{ return ZfAToInt<ZTypLong >(ApcChar, AI_Length); }
|
||||
inline ZTypIntI ATOI (const char* ApcChar, ZTypIntI AI_Length)
|
||||
{ return ZfAToInt<ZTypIntI >(ApcChar, AI_Length); }
|
||||
|
||||
|
||||
|
||||
template<typename TTypeCh>
|
||||
|
Reference in New Issue
Block a user