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