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

Side by Side Diff: base/i18n/number_formatting.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « base/i18n/icu_util.cc ('k') | base/i18n/rtl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/i18n/number_formatting.h" 5 #include "base/i18n/number_formatting.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "third_party/icu/public/common/unicode/ustring.h" 14 #include "third_party/icu/source/common/unicode/ustring.h"
15 #include "third_party/icu/public/i18n/unicode/numfmt.h" 15 #include "third_party/icu/source/i18n/unicode/numfmt.h"
16 16
17 namespace base { 17 namespace base {
18 18
19 namespace { 19 namespace {
20 20
21 // A simple wrapper around icu::NumberFormat that allows for resetting it 21 // A simple wrapper around icu::NumberFormat that allows for resetting it
22 // (as LazyInstance does not). 22 // (as LazyInstance does not).
23 struct NumberFormatWrapper { 23 struct NumberFormatWrapper {
24 NumberFormatWrapper() { 24 NumberFormatWrapper() {
25 Reset(); 25 Reset();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 namespace testing { 78 namespace testing {
79 79
80 void ResetFormatters() { 80 void ResetFormatters() {
81 g_number_format_int.Get().Reset(); 81 g_number_format_int.Get().Reset();
82 g_number_format_float.Get().Reset(); 82 g_number_format_float.Get().Reset();
83 } 83 }
84 84
85 } // namespace testing 85 } // namespace testing
86 86
87 } // namespace base 87 } // namespace base
OLDNEW
« no previous file with comments | « base/i18n/icu_util.cc ('k') | base/i18n/rtl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698