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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 | 8 |
9 #include "app/app_paths.h" | 9 #include "app/app_paths.h" |
10 #include "app/app_switches.h" | 10 #include "app/app_switches.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 std::wstring GetString(int message_id) { | 297 std::wstring GetString(int message_id) { |
298 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 298 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
299 return UTF16ToWide(rb.GetLocalizedString(message_id)); | 299 return UTF16ToWide(rb.GetLocalizedString(message_id)); |
300 } | 300 } |
301 | 301 |
302 std::string GetStringUTF8(int message_id) { | 302 std::string GetStringUTF8(int message_id) { |
303 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 303 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
304 return UTF16ToUTF8(rb.GetLocalizedString(message_id)); | 304 return UTF16ToUTF8(rb.GetLocalizedString(message_id)); |
305 } | 305 } |
306 | 306 |
| 307 string16 GetStringUTF16(int message_id) { |
| 308 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 309 return rb.GetLocalizedString(message_id); |
| 310 } |
| 311 |
307 static string16 GetStringF(int message_id, | 312 static string16 GetStringF(int message_id, |
308 const string16& a, | 313 const string16& a, |
309 const string16& b, | 314 const string16& b, |
310 const string16& c, | 315 const string16& c, |
311 const string16& d, | 316 const string16& d, |
312 std::vector<size_t>* offsets) { | 317 std::vector<size_t>* offsets) { |
313 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 318 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
314 const string16& format_string = rb.GetLocalizedString(message_id); | 319 const string16& format_string = rb.GetLocalizedString(message_id); |
315 std::vector<string16> subst; | 320 std::vector<string16> subst; |
316 subst.push_back(a); | 321 subst.push_back(a); |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 } | 763 } |
759 | 764 |
760 void BiDiLineIterator::GetLogicalRun(int start, | 765 void BiDiLineIterator::GetLogicalRun(int start, |
761 int* end, | 766 int* end, |
762 UBiDiLevel* level) { | 767 UBiDiLevel* level) { |
763 DCHECK(bidi_ != NULL); | 768 DCHECK(bidi_ != NULL); |
764 ubidi_getLogicalRun(bidi_, start, end, level); | 769 ubidi_getLogicalRun(bidi_, start, end, level); |
765 } | 770 } |
766 | 771 |
767 } | 772 } |
OLD | NEW |