OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/base/l10n/formatter.h" | 5 #include "ui/base/l10n/formatter.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "grit/ui_strings.h" | |
11 #include "third_party/icu/source/common/unicode/unistr.h" | 10 #include "third_party/icu/source/common/unicode/unistr.h" |
12 #include "ui/base/l10n/l10n_util_plurals.h" | 11 #include "ui/base/l10n/l10n_util_plurals.h" |
| 12 #include "ui/strings/grit/ui_strings.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 UI_BASE_EXPORT bool formatter_force_fallback = false; | 16 UI_BASE_EXPORT bool formatter_force_fallback = false; |
17 | 17 |
18 static const size_t kNumberPluralities = 6; | 18 static const size_t kNumberPluralities = 6; |
19 struct Pluralities { | 19 struct Pluralities { |
20 int ids[kNumberPluralities]; | 20 int ids[kNumberPluralities]; |
21 const char* fallback_one; | 21 const char* fallback_one; |
22 const char* fallback_other; | 22 const char* fallback_other; |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 void FormatterContainer::Shutdown() { | 319 void FormatterContainer::Shutdown() { |
320 for (int format = 0; format < TimeFormat::FORMAT_COUNT; ++format) { | 320 for (int format = 0; format < TimeFormat::FORMAT_COUNT; ++format) { |
321 for (int length = 0; length < TimeFormat::LENGTH_COUNT; ++length) { | 321 for (int length = 0; length < TimeFormat::LENGTH_COUNT; ++length) { |
322 formatter_[format][length].reset(); | 322 formatter_[format][length].reset(); |
323 } | 323 } |
324 } | 324 } |
325 } | 325 } |
326 | 326 |
327 } // namespace ui | 327 } // namespace ui |
OLD | NEW |