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

Side by Side Diff: app/l10n_util.h

Issue 194060: Add a "ToUpper" method (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | app/l10n_util.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file contains utility functions for dealing with localized 5 // This file contains utility functions for dealing with localized
6 // content. 6 // content.
7 7
8 #ifndef APP_L10N_UTIL_H_ 8 #ifndef APP_L10N_UTIL_H_
9 #define APP_L10N_UTIL_H_ 9 #define APP_L10N_UTIL_H_
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // less. 172 // less.
173 std::wstring TruncateString(const std::wstring& string, size_t length); 173 std::wstring TruncateString(const std::wstring& string, size_t length);
174 174
175 // Returns the lower case equivalent of string. 175 // Returns the lower case equivalent of string.
176 #if defined(WCHAR_T_IS_UTF32) 176 #if defined(WCHAR_T_IS_UTF32)
177 // Deprecated. The string16 version should be used instead. 177 // Deprecated. The string16 version should be used instead.
178 std::wstring ToLower(const std::wstring& string); 178 std::wstring ToLower(const std::wstring& string);
179 #endif // defined(WCHAR_T_IS_UTF32) 179 #endif // defined(WCHAR_T_IS_UTF32)
180 string16 ToLower(const string16& string); 180 string16 ToLower(const string16& string);
181 181
182 // Returns the upper case equivalent of string.
183 string16 ToUpper(const string16& string);
184
182 // Represents the text direction returned by the GetTextDirection() function. 185 // Represents the text direction returned by the GetTextDirection() function.
183 enum TextDirection { 186 enum TextDirection {
184 UNKNOWN_DIRECTION, 187 UNKNOWN_DIRECTION,
185 RIGHT_TO_LEFT, 188 RIGHT_TO_LEFT,
186 LEFT_TO_RIGHT, 189 LEFT_TO_RIGHT,
187 }; 190 };
188 191
189 // Returns the text direction for the default ICU locale. It is assumed 192 // Returns the text direction for the default ICU locale. It is assumed
190 // that SetICUDefaultLocale has been called to set the default locale to 193 // that SetICUDefaultLocale has been called to set the default locale to
191 // the UI locale of Chrome. Its return is one of the following three: 194 // the UI locale of Chrome. Its return is one of the following three:
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 432
430 private: 433 private:
431 UBiDi* bidi_; 434 UBiDi* bidi_;
432 435
433 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator); 436 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator);
434 }; 437 };
435 438
436 } 439 }
437 440
438 #endif // APP_L10N_UTIL_H_ 441 #endif // APP_L10N_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | app/l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698