ICU-740 Removed dead code.

X-SVN-Rev: 6914
This commit is contained in:
George Rhoten 2001-11-15 18:24:30 +00:00
parent 11eab0527f
commit cc1947cbc2
2 changed files with 11 additions and 1 deletions

View File

@ -194,7 +194,10 @@ static const uint8_t asciiDigits[] = {
};
static const UChar kUMinus = (UChar)0x002d;
static const char kMinus = 0x2d;
#if LLONG_STRING_CONVERSION
static const char kMinus = '-';
static const uint8_t digitInfo[] = {
0, 0, 0, 0, 0, 0, 0, 0,
@ -311,6 +314,8 @@ uint32_t llong::lltoa(char* buf, uint32_t len, uint32_t radix, UBool raw) const
return len;
}
#endif
uint32_t llong::u_lltoa(UChar* buf, uint32_t len, uint32_t radix, UBool raw) const
{
if (radix > 36) {

View File

@ -18,6 +18,9 @@
#include "unicode/utypes.h"
/* This is set to zero because we want to increase the code coverage percentage */
#define LLONG_STRING_CONVERSION 0
U_NAMESPACE_BEGIN
// machine dependent value, need to move
@ -192,12 +195,14 @@ public:
// absolute value
llong abs() const;
#if LLONG_STRING_CONVERSION
// simple construction from ASCII and Unicode strings
static llong atoll(const char* str, uint32_t radix = 10);
static llong u_atoll(const UChar* str, uint32_t radix = 10);
// output as ASCII or Unicode strings or as raw values, preceeding '-' if signed
uint32_t lltoa(char* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE) const;
#endif
uint32_t u_lltoa(UChar* buffer, uint32_t buflen, uint32_t radix = 10, UBool raw = FALSE) const;
// useful public constants - perhaps should not have class statics