OLD | NEW |
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 BASE_I18N_CASE_CONVERSION_H_ | 5 #ifndef BASE_I18N_CASE_CONVERSION_H_ |
6 #define BASE_I18N_CASE_CONVERSION_H_ | 6 #define BASE_I18N_CASE_CONVERSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/i18n/base_i18n_export.h" | 9 #include "base/i18n/base_i18n_export.h" |
10 #include "base/string16.h" | |
11 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
12 | 11 |
13 namespace base { | 12 namespace base { |
14 namespace i18n { | 13 namespace i18n { |
15 | 14 |
16 // Returns the lower case equivalent of string. Uses ICU's default locale. | 15 // Returns the lower case equivalent of string. Uses ICU's default locale. |
17 BASE_I18N_EXPORT string16 ToLower(const StringPiece16& string); | 16 BASE_I18N_EXPORT string16 ToLower(const StringPiece16& string); |
18 | 17 |
19 // Returns the upper case equivalent of string. Uses ICU's default locale. | 18 // Returns the upper case equivalent of string. Uses ICU's default locale. |
20 BASE_I18N_EXPORT string16 ToUpper(const StringPiece16& string); | 19 BASE_I18N_EXPORT string16 ToUpper(const StringPiece16& string); |
21 | 20 |
22 } // namespace i18n | 21 } // namespace i18n |
23 } // namespace base | 22 } // namespace base |
24 | 23 |
25 #endif // BASE_I18N_CASE_CONVERSION_H_ | 24 #endif // BASE_I18N_CASE_CONVERSION_H_ |
OLD | NEW |