| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * Copyright (C) 1997-2010, International Business Machines Corporation and * | 3 * Copyright (C) 1997-2010, International Business Machines Corporation and * |
| 4 * others. All Rights Reserved. * | 4 * others. All Rights Reserved. * |
| 5 ******************************************************************************* | 5 ******************************************************************************* |
| 6 * | 6 * |
| 7 * File FMTABLE.CPP | 7 * File FMTABLE.CPP |
| 8 * | 8 * |
| 9 * Modification History: | 9 * Modification History: |
| 10 * | 10 * |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 52 } |
| 53 | 53 |
| 54 // Return a clone of *a. | 54 // Return a clone of *a. |
| 55 static inline UObject* objectClone(const UObject* a) { | 55 static inline UObject* objectClone(const UObject* a) { |
| 56 // LATER: return a->clone(); | 56 // LATER: return a->clone(); |
| 57 return ((const Measure*) a)->clone(); | 57 return ((const Measure*) a)->clone(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 // Return TRUE if *a is an instance of Measure. | 60 // Return TRUE if *a is an instance of Measure. |
| 61 static inline UBool instanceOfMeasure(const UObject* a) { | 61 static inline UBool instanceOfMeasure(const UObject* a) { |
| 62 return dynamic_cast<const Measure*>(a) != NULL; | 62 return CR_DYNAMIC_CAST<const Measure*>(a) != NULL; |
| 63 } | 63 } |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * Creates a new Formattable array and copies the values from the specified | 66 * Creates a new Formattable array and copies the values from the specified |
| 67 * original. | 67 * original. |
| 68 * @param array the original array | 68 * @param array the original array |
| 69 * @param count the original array count | 69 * @param count the original array count |
| 70 * @return the new Formattable array. | 70 * @return the new Formattable array. |
| 71 */ | 71 */ |
| 72 static Formattable* createArrayCopy(const Formattable* array, int32_t count) { | 72 static Formattable* createArrayCopy(const Formattable* array, int32_t count) { |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 } | 843 } |
| 844 #endif | 844 #endif |
| 845 | 845 |
| 846 #endif | 846 #endif |
| 847 | 847 |
| 848 U_NAMESPACE_END | 848 U_NAMESPACE_END |
| 849 | 849 |
| 850 #endif /* #if !UCONFIG_NO_FORMATTING */ | 850 #endif /* #if !UCONFIG_NO_FORMATTING */ |
| 851 | 851 |
| 852 //eof | 852 //eof |
| OLD | NEW |