5#ifndef V8_INSPECTOR_STRING_16_H_
6#define V8_INSPECTOR_STRING_16_H_
26 static const size_t kNotFound =
static_cast<size_t>(-1);
32 String16(const uint16_t* characters,
size_t size);
35 String16(const
char* characters,
size_t size);
56 return reinterpret_cast<const uint16_t*
>(
m_impl.c_str());
101 return m_impl == other.m_impl;
104 return m_impl < other.m_impl;
107 return m_impl != other.m_impl;
118 template <
typename... T>
137 void append(
const char*,
size_t);
146 template <
typename T,
typename... R>
157template <
typename... T>
166#if !defined(__APPLE__) || defined(_LIBCPP_VERSION)
172 return string.hash();
void append(const String16 &)
void appendAll(T first, R... rest)
std::vector< UChar > m_buffer
void reserveCapacity(size_t)
void appendUnsignedAsHex(uint64_t)
String16 substring(size_t pos, size_t len=UINT_MAX) const
size_t reverseFind(UChar c, size_t start=UINT_MAX) const
String16 & operator+=(const String16 &other)
static V8_EXPORT String16 fromUTF8(const char *stringStart, size_t length)
bool operator==(const String16 &other) const
String16 stripWhiteSpace() const
static String16 fromInteger(int)
int toInteger(bool *ok=nullptr) const
String16(const String16 &) V8_NOEXCEPT=default
static String16 fromInteger64(int64_t)
static String16 concat(T... args)
static String16 fromDouble(double)
static V8_EXPORT String16 fromUTF16LE(const UChar *stringStart, size_t length)
void swap(String16 &other)
std::basic_string< UChar > m_impl
static String16 fromUInt64(uint64_t)
int64_t toInteger64(bool *ok=nullptr) const
bool operator!=(const String16 &other) const
V8_EXPORT std::string utf8() const
String16(String16 &&) V8_NOEXCEPT=default
bool operator<(const String16 &other) const
size_t find(const String16 &str, size_t start=0) const
size_t reverseFind(const String16 &str, size_t start=UINT_MAX) const
const uint16_t * characters16() const
String16 operator+(const String16 &other) const
std::pair< size_t, size_t > getTrimmedOffsetAndLength() const
uint64_t toUInt64(bool *ok=nullptr) const
static const size_t kNotFound
UChar operator[](size_t index) const
size_t find(UChar c, size_t start=0) const
base::Vector< const DirectHandle< Object > > args
String16 operator+(const char *a, const String16 &b)
std::size_t operator()(const v8_inspector::String16 &string) const