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

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

Issue 6484022: Autofill i18n: Set postal code and state field labels based on the selected country. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Properly merged with ToT Created 9 years, 9 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 | « chrome/test/data/web_database/version_33.sql ('k') | no next file » | 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 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <functional> 10 #include <functional>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/scoped_ptr.h"
14 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
15 #include "unicode/coll.h" 16 #include "unicode/coll.h"
16 17
17 namespace l10n_util { 18 namespace l10n_util {
18 19
19 // Compares the two strings using the specified collator. 20 // Compares the two strings using the specified collator.
20 UCollationResult CompareString16WithCollator(const icu::Collator* collator, 21 UCollationResult CompareString16WithCollator(const icu::Collator* collator,
21 const string16& lhs, 22 const string16& lhs,
22 const string16& rhs); 23 const string16& rhs);
23 24
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void SortVectorWithStringKey(const std::string& locale, 146 void SortVectorWithStringKey(const std::string& locale,
146 std::vector<Element>* elements, 147 std::vector<Element>* elements,
147 bool needs_stable_sort) { 148 bool needs_stable_sort) {
148 SortVectorWithStringKey<Element>(locale, elements, 0, elements->size(), 149 SortVectorWithStringKey<Element>(locale, elements, 0, elements->size(),
149 needs_stable_sort); 150 needs_stable_sort);
150 } 151 }
151 152
152 } // namespace l10n_util 153 } // namespace l10n_util
153 154
154 #endif // UI_BASE_L10N_L10N_UTIL_COLLATOR_H_ 155 #endif // UI_BASE_L10N_L10N_UTIL_COLLATOR_H_
OLDNEW
« no previous file with comments | « chrome/test/data/web_database/version_33.sql ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698