OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 1997-2013, International Business Machines Corporation and * | 3 * Copyright (C) 1997-2014, 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 * |
11 * Date Name Description | 11 * Date Name Description |
12 * 03/25/97 clhuang Initial Implementation. | 12 * 03/25/97 clhuang Initial Implementation. |
13 ******************************************************************************** | 13 ******************************************************************************** |
14 */ | 14 */ |
15 | 15 |
16 #include "unicode/utypes.h" | 16 #include "unicode/utypes.h" |
17 | 17 |
18 #if !UCONFIG_NO_FORMATTING | 18 #if !UCONFIG_NO_FORMATTING |
19 | 19 |
20 #include <math.h> | 20 #include <math.h> |
21 #include "unicode/fmtable.h" | 21 #include "unicode/fmtable.h" |
22 #include "unicode/ustring.h" | 22 #include "unicode/ustring.h" |
23 #include "unicode/measure.h" | 23 #include "unicode/measure.h" |
24 #include "unicode/curramt.h" | 24 #include "unicode/curramt.h" |
25 #include "unicode/uformattable.h" | 25 #include "unicode/uformattable.h" |
26 #include "charstr.h" | 26 #include "charstr.h" |
27 #include "cmemory.h" | 27 #include "cmemory.h" |
28 #include "cstring.h" | 28 #include "cstring.h" |
29 #include "decNumber.h" | 29 #include "decNumber.h" |
30 #include "digitlst.h" | 30 #include "digitlst.h" |
| 31 #include "fmtableimp.h" |
31 | 32 |
32 // ***************************************************************************** | 33 // ***************************************************************************** |
33 // class Formattable | 34 // class Formattable |
34 // ***************************************************************************** | 35 // ***************************************************************************** |
35 | 36 |
36 U_NAMESPACE_BEGIN | 37 U_NAMESPACE_BEGIN |
37 | 38 |
38 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable) | 39 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable) |
39 | 40 |
40 #include "fmtableimp.h" | |
41 | 41 |
42 //-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | 42 //-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. |
43 | 43 |
44 // NOTE: As of 3.0, there are limitations to the UObject API. It does | 44 // NOTE: As of 3.0, there are limitations to the UObject API. It does |
45 // not (yet) support cloning, operator=, nor operator==. To | 45 // not (yet) support cloning, operator=, nor operator==. To |
46 // work around this, I implement some simple inlines here. Later | 46 // work around this, I implement some simple inlines here. Later |
47 // these can be modified or removed. [alan] | 47 // these can be modified or removed. [alan] |
48 | 48 |
49 // NOTE: These inlines assume that all fObjects are in fact instances | 49 // NOTE: These inlines assume that all fObjects are in fact instances |
50 // of the Measure class, which is true as of 3.0. [alan] | 50 // of the Measure class, which is true as of 3.0. [alan] |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 | 1037 |
1038 U_DRAFT int64_t U_EXPORT2 | 1038 U_DRAFT int64_t U_EXPORT2 |
1039 ufmt_getInt64(UFormattable *fmt, UErrorCode *status) { | 1039 ufmt_getInt64(UFormattable *fmt, UErrorCode *status) { |
1040 Formattable *obj = Formattable::fromUFormattable(fmt); | 1040 Formattable *obj = Formattable::fromUFormattable(fmt); |
1041 return obj->getInt64(*status); | 1041 return obj->getInt64(*status); |
1042 } | 1042 } |
1043 | 1043 |
1044 #endif /* #if !UCONFIG_NO_FORMATTING */ | 1044 #endif /* #if !UCONFIG_NO_FORMATTING */ |
1045 | 1045 |
1046 //eof | 1046 //eof |
OLD | NEW |