Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 1 | // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | |
| 6 | #ifndef V8_ICU_UTIL_H_ |
| 7 | #define V8_ICU_UTIL_H_ |
| 8 | |
| 9 | namespace v8 { |
| 10 | |
| 11 | namespace internal { |
| 12 | |
| 13 | // Call this function to load ICU's data tables for the current process. This |
| 14 | // function should be called before ICU is used. |
| 15 | bool InitializeICU(const char* icu_data_file); |
| 16 | |
Ben Murdoch | 61f157c | 2016-09-16 13:49:30 +0100 | [diff] [blame] | 17 | // Like above, but using the default icudtl.dat location if icu_data_file is |
| 18 | // not specified. |
| 19 | bool InitializeICUDefaultLocation(const char* exec_path, |
| 20 | const char* icu_data_file); |
| 21 | |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 22 | } // namespace internal |
| 23 | } // namespace v8 |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 24 | |
| 25 | #endif // V8_ICU_UTIL_H_ |