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

Unified Diff: ui/base/l10n/l10n_util.h

Issue 135963010: Prepare to enable icu_use_data_file_flat on CrOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UTF18 -> UTF8 Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/l10n/l10n_util.h
diff --git a/ui/base/l10n/l10n_util.h b/ui/base/l10n/l10n_util.h
index 4eb6d58114f5a235e64b9a725a6fbd02e19352c9..d2c3f1e8a7e4449c3718549e67930e6be844be98 100644
--- a/ui/base/l10n/l10n_util.h
+++ b/ui/base/l10n/l10n_util.h
@@ -90,9 +90,17 @@ UI_BASE_EXPORT bool IsValidLocaleSyntax(const std::string& locale);
//
// Pulls resource string from the string bundle and returns it.
+// On Linux, RLM (right-to-left mark) is prepended to the string if
+// the locale is RTL and the string starts with a strong LTR character
+// but contains strong RTL characters. These functions require ICU to
+// be initialized on Linux/Chrome OS.
UI_BASE_EXPORT std::string GetStringUTF8(int message_id);
UI_BASE_EXPORT base::string16 GetStringUTF16(int message_id);
+// The same as above but without any RTL adjustment. Use it for
+// reading the default value of a preference.
+UI_BASE_EXPORT std::string GetStringUTF8Raw(int message_id);
+
// Get a resource string and replace $i with replacements[i] for all
// i < replacements.size(). Additionally, $$ is replaced by $.
// If non-NULL |offsets| will be replaced with the start points of the replaced

Powered by Google App Engine
This is Rietveld 408576698