blob: d3650e021a9c770860b55963c6c1fc17bc1b2b3b [file] [log] [blame]
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "include/v8config.h"
// The v8config.h above is needed to turn on V8_OS_STARBOARD
#if defined(V8_OS_STARBOARD)
#include "starboard/types.h"
// Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may
// want to use string-16.h directly rather than these.
namespace v8_inspector {
std::basic_string<uint16_t> UTF8ToUTF16(const char* stringStart, size_t length);
std::string UTF16ToUTF8(const uint16_t* stringStart, size_t length);
} // namespace v8_inspector