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

Side by Side Diff: icu46/source/i18n/measfmt.cpp

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « icu46/source/i18n/locdspnm.cpp ('k') | icu46/source/i18n/measure.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 **********************************************************************
3 * Copyright (c) 2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Author: Alan Liu
7 * Created: April 20, 2004
8 * Since: ICU 3.0
9 **********************************************************************
10 */
11 #include "unicode/utypes.h"
12
13 #if !UCONFIG_NO_FORMATTING
14
15 #include "unicode/measfmt.h"
16 #include "currfmt.h"
17
18 U_NAMESPACE_BEGIN
19
20 MeasureFormat::MeasureFormat() {}
21
22 MeasureFormat* U_EXPORT2 MeasureFormat::createCurrencyFormat(const Locale& local e,
23 UErrorCode& ec) {
24 CurrencyFormat* fmt = NULL;
25 if (U_SUCCESS(ec)) {
26 fmt = new CurrencyFormat(locale, ec);
27 if (U_FAILURE(ec)) {
28 delete fmt;
29 fmt = NULL;
30 }
31 }
32 return fmt;
33 }
34
35 MeasureFormat* U_EXPORT2 MeasureFormat::createCurrencyFormat(UErrorCode& ec) {
36 if (U_FAILURE(ec)) {
37 return NULL;
38 }
39 return MeasureFormat::createCurrencyFormat(Locale::getDefault(), ec);
40 }
41
42 U_NAMESPACE_END
43
44 #endif /* #if !UCONFIG_NO_FORMATTING */
OLDNEW
« no previous file with comments | « icu46/source/i18n/locdspnm.cpp ('k') | icu46/source/i18n/measure.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698