1 // Copyright 2019 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 #ifndef V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
6 #define V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
7 
8 #include <string>
9 
10 // Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may
11 // want to use string-16.h directly rather than these.
12 namespace v8_inspector {
13 std::basic_string<uint16_t> UTF8ToUTF16(const char* stringStart, size_t length);
14 std::string UTF16ToUTF8(const uint16_t* stringStart, size_t length);
15 }  // namespace v8_inspector
16 
17 #endif  // V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
18