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 <limits.h> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "third_party/icu/source/common/unicode/unistr.h" | 13 #include "third_party/icu/source/common/unicode/unistr.h" |
12 #include "third_party/icu/source/i18n/unicode/msgfmt.h" | 14 #include "third_party/icu/source/i18n/unicode/msgfmt.h" |
13 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/strings/grit/ui_strings.h" | 16 #include "ui/strings/grit/ui_strings.h" |
15 | 17 |
16 namespace ui { | 18 namespace ui { |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 314 |
313 void FormatterContainer::Shutdown() { | 315 void FormatterContainer::Shutdown() { |
314 for (int format = 0; format < TimeFormat::FORMAT_COUNT; ++format) { | 316 for (int format = 0; format < TimeFormat::FORMAT_COUNT; ++format) { |
315 for (int length = 0; length < TimeFormat::LENGTH_COUNT; ++length) { | 317 for (int length = 0; length < TimeFormat::LENGTH_COUNT; ++length) { |
316 formatter_[format][length].reset(); | 318 formatter_[format][length].reset(); |
317 } | 319 } |
318 } | 320 } |
319 } | 321 } |
320 | 322 |
321 } // namespace ui | 323 } // namespace ui |
OLD | NEW |