v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8-string-conversions.h
Go to the documentation of this file.
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
9#include <cstdint>
10#include <string>
11
12// Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may
13// want to use string-16.h directly rather than these.
14namespace v8_inspector {
15std::basic_string<char16_t> UTF8ToUTF16(const char* stringStart, size_t length);
16std::string UTF16ToUTF8(const char16_t* stringStart, size_t length);
17} // namespace v8_inspector
18
19#endif // V8_INSPECTOR_V8_STRING_CONVERSIONS_H_
std::basic_string< UChar > UTF8ToUTF16(const char *stringStart, size_t length)
std::string UTF16ToUTF8(const UChar *stringStart, size_t length)