| OLD | NEW |
| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // GetApplicationLocale(); | 60 // GetApplicationLocale(); |
| 61 // If |is_for_ui| is true, U+200F is appended so that it can be | 61 // If |is_for_ui| is true, U+200F is appended so that it can be |
| 62 // rendered properly in a RTL Chrome. | 62 // rendered properly in a RTL Chrome. |
| 63 std::wstring GetLocalName(const std::string& locale_code_str, | 63 std::wstring GetLocalName(const std::string& locale_code_str, |
| 64 const std::wstring& app_locale_wstr, | 64 const std::wstring& app_locale_wstr, |
| 65 bool is_for_ui); | 65 bool is_for_ui); |
| 66 | 66 |
| 67 // Pulls resource string from the string bundle and returns it. | 67 // Pulls resource string from the string bundle and returns it. |
| 68 std::wstring GetString(int message_id); | 68 std::wstring GetString(int message_id); |
| 69 std::string GetStringUTF8(int message_id); | 69 std::string GetStringUTF8(int message_id); |
| 70 string16 GetStringUTF16(int message_id); |
| 70 | 71 |
| 71 // Get a resource string and replace $1-$2-$3 with |a| and |b| | 72 // Get a resource string and replace $1-$2-$3 with |a| and |b| |
| 72 // respectively. Additionally, $$ is replaced by $. | 73 // respectively. Additionally, $$ is replaced by $. |
| 73 std::wstring GetStringF(int message_id, | 74 std::wstring GetStringF(int message_id, |
| 74 const std::wstring& a); | 75 const std::wstring& a); |
| 75 std::wstring GetStringF(int message_id, | 76 std::wstring GetStringF(int message_id, |
| 76 const std::wstring& a, | 77 const std::wstring& a, |
| 77 const std::wstring& b); | 78 const std::wstring& b); |
| 78 std::wstring GetStringF(int message_id, | 79 std::wstring GetStringF(int message_id, |
| 79 const std::wstring& a, | 80 const std::wstring& a, |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 372 |
| 372 private: | 373 private: |
| 373 UBiDi* bidi_; | 374 UBiDi* bidi_; |
| 374 | 375 |
| 375 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator); | 376 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator); |
| 376 }; | 377 }; |
| 377 | 378 |
| 378 } | 379 } |
| 379 | 380 |
| 380 #endif // APP_L10N_UTIL_H_ | 381 #endif // APP_L10N_UTIL_H_ |
| OLD | NEW |