This commit is contained in:
Igor Pavlov
2005-05-30 00:00:00 +00:00
committed by Kornel Lesiński
parent 8c1b5c7b7e
commit 3c510ba80b
926 changed files with 40559 additions and 23519 deletions

View File

@@ -4,9 +4,9 @@
#include "StringToInt.h"
UINT64 ConvertStringToUINT64(const char *s, const char **end)
UInt64 ConvertStringToUInt64(const char *s, const char **end)
{
UINT64 result = 0;
UInt64 result = 0;
while(true)
{
char c = *s;
@@ -22,9 +22,9 @@ UINT64 ConvertStringToUINT64(const char *s, const char **end)
}
}
UINT64 ConvertStringToUINT64(const wchar_t *s, const wchar_t **end)
UInt64 ConvertStringToUInt64(const wchar_t *s, const wchar_t **end)
{
UINT64 result = 0;
UInt64 result = 0;
while(true)
{
wchar_t c = *s;
@@ -41,10 +41,9 @@ UINT64 ConvertStringToUINT64(const wchar_t *s, const wchar_t **end)
}
INT64 ConvertStringToINT64(const char *s, const char **end)
Int64 ConvertStringToInt64(const char *s, const char **end)
{
INT64 result = 0;
if (*s == '-')
return -(INT64)ConvertStringToUINT64(s + 1, end);
return ConvertStringToUINT64(s, end);
return -(Int64)ConvertStringToUInt64(s + 1, end);
return ConvertStringToUInt64(s, end);
}