Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: source/i18n/fmtable.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/i18n/filteredbrk.cpp ('k') | source/i18n/fmtableimp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « source/i18n/filteredbrk.cpp ('k') | source/i18n/fmtableimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698