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

Side by Side Diff: ui/base/l10n/l10n_util_collator.h

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 | « ui/base/l10n/l10n_util_android.cc ('k') | ui/base/l10n/l10n_util_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_BASE_L10N_L10N_UTIL_COLLATOR_H_ 5 #ifndef UI_BASE_L10N_L10N_UTIL_COLLATOR_H_
6 #define UI_BASE_L10N_L10N_UTIL_COLLATOR_H_ 6 #define UI_BASE_L10N_L10N_UTIL_COLLATOR_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <functional> 9 #include <functional>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/i18n/string_compare.h" 13 #include "base/i18n/string_compare.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "third_party/icu/public/i18n/unicode/coll.h" 15 #include "third_party/icu/source/i18n/unicode/coll.h"
16 #include "ui/base/ui_export.h" 16 #include "ui/base/ui_export.h"
17 17
18 namespace l10n_util { 18 namespace l10n_util {
19 19
20 // Used by SortStringsUsingMethod. Invokes a method on the objects passed to 20 // Used by SortStringsUsingMethod. Invokes a method on the objects passed to
21 // operator (), comparing the string results using a collator. 21 // operator (), comparing the string results using a collator.
22 template <class T, class Method> 22 template <class T, class Method>
23 class StringMethodComparatorWithCollator 23 class StringMethodComparatorWithCollator
24 : public std::binary_function<const string16&, 24 : public std::binary_function<const string16&,
25 const string16&, 25 const string16&,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void SortVectorWithStringKey(const std::string& locale, 141 void SortVectorWithStringKey(const std::string& locale,
142 std::vector<Element>* elements, 142 std::vector<Element>* elements,
143 bool needs_stable_sort) { 143 bool needs_stable_sort) {
144 SortVectorWithStringKey<Element>(locale, elements, 0, elements->size(), 144 SortVectorWithStringKey<Element>(locale, elements, 0, elements->size(),
145 needs_stable_sort); 145 needs_stable_sort);
146 } 146 }
147 147
148 } // namespace l10n_util 148 } // namespace l10n_util
149 149
150 #endif // UI_BASE_L10N_L10N_UTIL_COLLATOR_H_ 150 #endif // UI_BASE_L10N_L10N_UTIL_COLLATOR_H_
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util_android.cc ('k') | ui/base/l10n/l10n_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698