| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2 ********************************************************************** | 2 ********************************************************************** | 
| 3 *   Copyright (C) 1997-2012, International Business Machines | 3 *   Copyright (C) 1997-2014, International Business Machines | 
| 4 *   Corporation and others.  All Rights Reserved. | 4 *   Corporation and others.  All Rights Reserved. | 
| 5 ********************************************************************** | 5 ********************************************************************** | 
| 6 * | 6 * | 
| 7 * File DIGITLST.CPP | 7 * File DIGITLST.CPP | 
| 8 * | 8 * | 
| 9 * Modification History: | 9 * Modification History: | 
| 10 * | 10 * | 
| 11 *   Date        Name        Description | 11 *   Date        Name        Description | 
| 12 *   03/21/97    clhuang     Converted from java. | 12 *   03/21/97    clhuang     Converted from java. | 
| 13 *   03/21/97    clhuang     Implemented with new APIs. | 13 *   03/21/97    clhuang     Implemented with new APIs. | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 51  * Note that it is the platform invariant digit, and is not Unicode. | 51  * Note that it is the platform invariant digit, and is not Unicode. | 
| 52  */ | 52  */ | 
| 53 #define kZero '0' | 53 #define kZero '0' | 
| 54 | 54 | 
| 55 | 55 | 
| 56 /* Only for 32 bit numbers. Ignore the negative sign. */ | 56 /* Only for 32 bit numbers. Ignore the negative sign. */ | 
| 57 //static const char LONG_MIN_REP[] = "2147483648"; | 57 //static const char LONG_MIN_REP[] = "2147483648"; | 
| 58 //static const char I64_MIN_REP[] = "9223372036854775808"; | 58 //static const char I64_MIN_REP[] = "9223372036854775808"; | 
| 59 | 59 | 
| 60 | 60 | 
| 61 static const uint8_t DIGIT_HAVE_NONE=0; |  | 
| 62 static const uint8_t DIGIT_HAVE_DOUBLE=1; |  | 
| 63 static const uint8_t DIGIT_HAVE_INT64=2; |  | 
| 64 |  | 
| 65 U_NAMESPACE_BEGIN | 61 U_NAMESPACE_BEGIN | 
| 66 | 62 | 
| 67 // ------------------------------------- | 63 // ------------------------------------- | 
| 68 // default constructor | 64 // default constructor | 
| 69 | 65 | 
| 70 DigitList::DigitList() | 66 DigitList::DigitList() | 
| 71 { | 67 { | 
| 72     uprv_decContextDefault(&fContext, DEC_INIT_BASE); | 68     uprv_decContextDefault(&fContext, DEC_INIT_BASE); | 
| 73     fContext.traps  = 0; | 69     fContext.traps  = 0; | 
| 74     uprv_decContextSetRounding(&fContext, DEC_ROUND_HALF_EVEN); | 70     uprv_decContextSetRounding(&fContext, DEC_ROUND_HALF_EVEN); | 
| (...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 943 UBool | 939 UBool | 
| 944 DigitList::isZero() const | 940 DigitList::isZero() const | 
| 945 { | 941 { | 
| 946     return decNumberIsZero(fDecNumber); | 942     return decNumberIsZero(fDecNumber); | 
| 947 } | 943 } | 
| 948 | 944 | 
| 949 U_NAMESPACE_END | 945 U_NAMESPACE_END | 
| 950 #endif // #if !UCONFIG_NO_FORMATTING | 946 #endif // #if !UCONFIG_NO_FORMATTING | 
| 951 | 947 | 
| 952 //eof | 948 //eof | 
| OLD | NEW | 
|---|