remove tabs

This commit is contained in:
Dane Springmeyer 2011-04-02 03:45:50 +00:00
parent 819a67fd42
commit 5a1842aad1
40 changed files with 702 additions and 696 deletions

View file

@ -67,9 +67,11 @@ std::string numeric2string(const char* buf)
while ( i >= 0)
{
if (i <= weight && d < ndigits) {
if (i <= weight && d < ndigits)
{
// All digits after the first must be padded to make the field 4 characters long
if (d != 0) {
if (d != 0)
{
#ifdef _WINDOWS
int dig = digits[d];
if (dig < 10)
@ -85,7 +87,8 @@ std::string numeric2string(const char* buf)
ss << "0"; // 0100 - 0999;
}
#else
switch(digits[d]) {
switch(digits[d])
{
case 0 ... 9:
ss << "000"; // 0000 - 0009
break;
@ -99,12 +102,15 @@ std::string numeric2string(const char* buf)
#endif
}
ss << digits[d++];
} else {
}
else
{
if (d == 0)
ss << "0";
else
ss << "0000";
}
i--;
}
if (dscale > 0)