Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file contains utility functions for dealing with localized content that | |
| 6 // expose ICU types in their interface. | |
|
tony
2013/09/20 16:56:44
Nit: I have a slight preference for a file name li
Sam McNally
2013/09/22 22:53:03
Done.
| |
| 7 | |
| 8 #ifndef UI_BASE_L10N_L10N_UTIL_INTERNAL_H_ | |
| 9 #define UI_BASE_L10N_L10N_UTIL_INTERNAL_H_ | |
| 10 | |
| 11 #include <string> | |
| 12 #include <vector> | |
| 13 | |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "third_party/icu/source/i18n/unicode/plurfmt.h" | |
| 16 #include "third_party/icu/source/i18n/unicode/plurrule.h" | |
| 17 | |
| 18 namespace l10n_util { | |
| 19 | |
| 20 // Returns a PluralRules for the current locale. | |
| 21 scoped_ptr<icu::PluralRules> BuildPluralRules(); | |
| 22 | |
| 23 // Returns a PluralFormat from |message_ids|. |message_ids| must be size 6 and | |
| 24 // in order: default, singular, zero, two, few, many. | |
| 25 scoped_ptr<icu::PluralFormat> BuildPluralFormat(std::vector<int> message_ids); | |
|
tony
2013/09/20 16:56:44
|message_ids| should be a const ref.
Sam McNally
2013/09/22 22:53:03
Done.
| |
| 26 | |
| 27 } // namespace l10n_util | |
| 28 | |
| 29 #endif // UI_BASE_L10N_L10N_UTIL_INTERNAL_H_ | |
| OLD | NEW |