nuke tabs

This commit is contained in:
Antz 2017-03-19 12:50:47 +00:00 committed by Antz
parent 0bf26d3e8d
commit a626464ea7
16 changed files with 1431 additions and 1431 deletions

View file

@ -91,7 +91,7 @@ class Config
* @return int32
*/
int32 GetIntDefault(const char* name, const int32 def);
int64 GetInt64Default(const char* name, const int64 def);
int64 GetInt64Default(const char* name, const int64 def);
/**
* @brief
*

View file

@ -102,18 +102,18 @@ class Field
*
* @return bool
*/
bool GetBool() const { return mValue ? atoi(mValue) > 0 : false; }
/**
* @brief
*
* @return double
*/
double GetDouble() const { return mValue ? static_cast<double>(atof(mValue)) : 0.0f; }
/**
* @brief
*
* @return int8
*/
bool GetBool() const { return mValue ? atoi(mValue) > 0 : false; }
/**
* @brief
*
* @return double
*/
double GetDouble() const { return mValue ? static_cast<double>(atof(mValue)) : 0.0f; }
/**
* @brief
*
* @return int8
*/
int8 GetInt8() const { return mValue ? static_cast<int8>(atol(mValue)) : int8(0); }
/**
* @brief
@ -158,11 +158,11 @@ class Field
return value;
}
/**
* @brief
*
* @return int64
*/
/**
* @brief
*
* @return int64
*/
uint64 GetInt64() const
{
int64 value = 0;

View file

@ -388,13 +388,13 @@ void utf8truncate(std::string& utf8str, size_t len)
bool Utf8ToUpperOnlyLatin(std::string& utf8String)
{
std::wstring wstr;
if (!Utf8toWStr(utf8String, wstr))
return false;
std::wstring wstr;
if (!Utf8toWStr(utf8String, wstr))
return false;
std::transform(wstr.begin(), wstr.end(), wstr.begin(), wcharToUpperOnlyLatin);
std::transform(wstr.begin(), wstr.end(), wstr.begin(), wcharToUpperOnlyLatin);
return WStrToUtf8(wstr, utf8String);
return WStrToUtf8(wstr, utf8String);
}
bool Utf8toWStr(char const* utf8str, size_t csize, wchar_t* wstr, size_t& wsize)