commit 2025-08-21 23:51 ZfATOI => ZfAtoI, ZfATOL => ZfAtoL etc in ZMainHead.H and ZtCStringEx.H etc

This commit is contained in:
2025-08-21 23:51:38 +09:00
parent b1702c58d4
commit 265b18faa7
2 changed files with 28 additions and 28 deletions

View File

@ -2375,68 +2375,68 @@ namespace ZNsMain
#ifdef _WIN
inline ZTypLLong ZfATOLL(const char* ApcChar)
inline ZTypLLong ZfAtoLL(const char* ApcChar)
{
if(ApcChar==0) return 0; return ::_atoi64(ApcChar);
}/*
inline ZTypLLong ZfATOLL(const char* ApcChar)*/
inline ZTypLLong ZfAtoLL(const char* ApcChar)*/
#else // !defined(_WIN)
inline ZTypLLong ZfATOLL(const char* ApcChar)
inline ZTypLLong ZfAtoLL(const char* ApcChar)
{
if(ApcChar==0) return 0; return ::atoll(ApcChar);
}/*
inline ZTypLLong ZfATOLL(const char* ApcChar)*/
inline ZTypLLong ZfAtoLL(const char* ApcChar)*/
#endif // !defined(_WIN)
inline ZTypLLong ZfATOLL(const char* ApcChar, ZTypIntI AI_Length)
inline ZTypLLong ZfAtoLL(const char* ApcChar, ZTypIntI AI_Length)
{
return ZfAToInt<ZTypLLong>(ApcChar, AI_Length);
}/*
inline ZTypLLong ZfATOL(const char* ApcChar, ZTypIntI AI_Length)*/
inline ZTypLLong ZfAtoL(const char* ApcChar, ZTypIntI AI_Length)*/
inline ZTypLong ZfATOL(const char* ApcChar)
inline ZTypLong ZfAtoL(const char* ApcChar)
{
if(ApcChar==0) return 0; return ::atol(ApcChar);
}/*
inline ZTypLong ZfATOL(const char* ApcChar)*/
inline ZTypLong ZfAtoL(const char* ApcChar)*/
inline ZTypLong ZfATOL(const char* ApcChar, ZTypIntI AI_Length)
inline ZTypLong ZfAtoL(const char* ApcChar, ZTypIntI AI_Length)
{
return ZfAToInt<ZTypLong>(ApcChar, AI_Length);
}/*
inline ZTypLong ZfATOL(const char* ApcChar, ZTypIntI AI_Length)*/
inline ZTypLong ZfAtoL(const char* ApcChar, ZTypIntI AI_Length)*/
inline ZTypIntI ZfATOI(const char* ApcChar)
inline ZTypIntI ZfAtoI(const char* ApcChar)
{
if(ApcChar==0) return 0; return ::atoi(ApcChar);
}/*
inline ZTypIntI ZfATOI(const char* ApcChar)*/
inline ZTypIntI ZfAtoI(const char* ApcChar)*/
inline ZTypIntI ZfATOI(const char* ApcChar, ZTypIntI AI_Length)
inline ZTypIntI ZfAtoI(const char* ApcChar, ZTypIntI AI_Length)
{
return ZfAToInt<ZTypIntI>(ApcChar, AI_Length);
}/*
inline ZTypIntI ZfATOI(const char* ApcChar, ZTypIntI AI_Length)*/
inline ZTypIntI ZfAtoI(const char* ApcChar, ZTypIntI AI_Length)*/
inline double ZfATOD(const char* ApcChar)
inline double ZfAtoD(const char* ApcChar)
{
return ApcChar==0 ? 0 : ::atof(ApcChar) ;
}/*
inline double ZfATOD(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){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); }