| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|