OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1997-2012, International Business Machines | 4 * Copyright (C) 1997-2013, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * | 8 * |
9 * File DIGITLST.H | 9 * File DIGITLST.H |
10 * | 10 * |
11 * Modification History: | 11 * Modification History: |
12 * | 12 * |
13 * Date Name Description | 13 * Date Name Description |
14 * 02/25/97 aliu Converted from java. | 14 * 02/25/97 aliu Converted from java. |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 kDouble, | 406 kDouble, |
407 kInt64 | 407 kInt64 |
408 } fHave; | 408 } fHave; |
409 | 409 |
410 | 410 |
411 | 411 |
412 UBool shouldRoundUp(int32_t maximumDigits) const; | 412 UBool shouldRoundUp(int32_t maximumDigits) const; |
413 | 413 |
414 public: | 414 public: |
415 | 415 |
| 416 #if U_OVERRIDE_CXX_ALLOCATION |
416 using UMemory::operator new; | 417 using UMemory::operator new; |
417 using UMemory::operator delete; | 418 using UMemory::operator delete; |
| 419 #else |
| 420 static inline void * U_EXPORT2 operator new(size_t size) U_NO_THROW { return
::operator new(size); }; |
| 421 static inline void U_EXPORT2 operator delete(void *ptr ) U_NO_THROW { ::ope
rator delete(ptr); }; |
| 422 #endif |
418 | 423 |
419 /** | 424 /** |
420 * Placement new for stack usage | 425 * Placement new for stack usage |
421 * @internal | 426 * @internal |
422 */ | 427 */ |
423 static inline void * U_EXPORT2 operator new(size_t /*size*/, void * onStack,
EStackMode /*mode*/) U_NO_THROW { return onStack; } | 428 static inline void * U_EXPORT2 operator new(size_t /*size*/, void * onStack,
EStackMode /*mode*/) U_NO_THROW { return onStack; } |
424 | 429 |
425 /** | 430 /** |
426 * Placement delete for stack usage | 431 * Placement delete for stack usage |
427 * @internal | 432 * @internal |
(...skipping 14 matching lines...) Expand all Loading... |
442 } | 447 } |
443 }; | 448 }; |
444 | 449 |
445 | 450 |
446 U_NAMESPACE_END | 451 U_NAMESPACE_END |
447 | 452 |
448 #endif // #if !UCONFIG_NO_FORMATTING | 453 #endif // #if !UCONFIG_NO_FORMATTING |
449 #endif // _DIGITLST | 454 #endif // _DIGITLST |
450 | 455 |
451 //eof | 456 //eof |
OLD | NEW |