| 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_SYS_STRING_CONVERSIONS_H_ | 5 #ifndef BASE_SYS_STRING_CONVERSIONS_H_ |
| 6 #define BASE_SYS_STRING_CONVERSIONS_H_ | 6 #define BASE_SYS_STRING_CONVERSIONS_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 // Provides system-dependent string type conversions for cases where it's | 8 // Provides system-dependent string type conversions for cases where it's |
| 10 // necessary to not use ICU. Generally, you should not need this in Chrome, | 9 // necessary to not use ICU. Generally, you should not need this in Chrome, |
| 11 // but it is used in some shared code. Dependencies should be minimal. | 10 // but it is used in some shared code. Dependencies should be minimal. |
| 12 | 11 |
| 13 #include <string> | 12 #include <string> |
| 14 | 13 |
| 15 #include "base/base_export.h" | 14 #include "base/base_export.h" |
| 16 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 17 #include "base/string16.h" | 16 #include "base/string16.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // string type of length 0. | 78 // string type of length 0. |
| 80 BASE_EXPORT std::string SysNSStringToUTF8(NSString* ref); | 79 BASE_EXPORT std::string SysNSStringToUTF8(NSString* ref); |
| 81 BASE_EXPORT string16 SysNSStringToUTF16(NSString* ref); | 80 BASE_EXPORT string16 SysNSStringToUTF16(NSString* ref); |
| 82 BASE_EXPORT std::wstring SysNSStringToWide(NSString* ref); | 81 BASE_EXPORT std::wstring SysNSStringToWide(NSString* ref); |
| 83 | 82 |
| 84 #endif // defined(OS_MACOSX) | 83 #endif // defined(OS_MACOSX) |
| 85 | 84 |
| 86 } // namespace base | 85 } // namespace base |
| 87 | 86 |
| 88 #endif // BASE_SYS_STRING_CONVERSIONS_H_ | 87 #endif // BASE_SYS_STRING_CONVERSIONS_H_ |
| OLD | NEW |