2013-07-09 12:26:07 +00:00
|
|
|
// Copyright 2013 the V8 project authors. All rights reserved.
|
2014-04-29 06:42:26 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
2013-07-09 12:26:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef V8_ICU_UTIL_H_
|
|
|
|
#define V8_ICU_UTIL_H_
|
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
|
2013-07-11 09:58:54 +00:00
|
|
|
namespace internal {
|
|
|
|
|
2013-07-09 12:26:07 +00:00
|
|
|
// Call this function to load ICU's data tables for the current process. This
|
|
|
|
// function should be called before ICU is used.
|
2014-03-25 12:05:33 +00:00
|
|
|
bool InitializeICU(const char* icu_data_file);
|
2013-07-09 12:26:07 +00:00
|
|
|
|
2016-07-27 14:37:07 +00:00
|
|
|
// Like above, but using the default icudt[lb].dat location if icu_data_file is
|
2016-06-08 12:09:25 +00:00
|
|
|
// not specified.
|
|
|
|
bool InitializeICUDefaultLocation(const char* exec_path,
|
|
|
|
const char* icu_data_file);
|
|
|
|
|
2015-09-30 13:46:56 +00:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|
2013-07-09 12:26:07 +00:00
|
|
|
|
|
|
|
#endif // V8_ICU_UTIL_H_
|