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

Unified Diff: include/v8.h

Issue 2042253002: [icu] Support loading data file from default location (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | src/file-utils.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 1c50d9b473b916ac115e58cd2ae6f9c92990beb4..17bd0b884400be528f156a82fce34b798628c6fd 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6710,6 +6710,19 @@ class V8_EXPORT V8 {
static bool InitializeICU(const char* icu_data_file = NULL);
/**
+ * Initialize the ICU library bundled with V8. The embedder should only
+ * invoke this method when V8 was compiled with the ICU data in an external
+ * file and when the default location of that file should be used. The
+ * default is a file called icudtl.dat side-by-side with the executable.
+ * Returns true on success.
jochen (gone - plz use gerrit) 2016/06/07 19:05:44 or icudtl.dll on windows
Michael Achenbach 2016/06/08 07:08:18 Don't understand. This is only about the data file
Michael Achenbach 2016/06/08 08:00:25 I rewrote the docu a bit.
+ *
+ * A path to the executable must be provided. Optionally, the location of the
+ * data file can be provided to override the default.
+ */
+ static bool InitializeICUDefaultLocation(const char* exec_path,
jochen (gone - plz use gerrit) 2016/06/07 19:05:44 what about just replacing the old API? Or at least
Michael Achenbach 2016/06/08 07:08:18 Is chromium at all using the old API? They must ha
Michael Achenbach 2016/06/08 08:00:25 Marked.
+ const char* icu_data_file = NULL);
jochen (gone - plz use gerrit) 2016/06/07 19:05:44 nullptr
Michael Achenbach 2016/06/08 08:00:25 Done. Also in the old api.
+
+ /**
* Initialize the external startup data. The embedder only needs to
* invoke this method when external startup data was enabled in a build.
*
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | src/file-utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698