#include "src/inspector/string-16.h"
#include <algorithm>
#include <cctype>
#include <cinttypes>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <string>
#include "../../third_party/inspector_protocol/crdtp/cbor.h"
#include "src/base/platform/platform.h"
#include "src/inspector/v8-string-conversions.h"
#include "src/numbers/conversions.h"
namespace v8_inspector {
namespace {
bool isASCII(UChar c) { … }
bool isSpaceOrNewLine(UChar c) { … }
int64_t charactersToInteger(const uint16_t* characters, size_t length,
bool* ok = nullptr) { … }
}
String16::String16(const UChar* characters, size_t size)
: … { … }
String16::String16(const uint16_t* characters, size_t size)
: … { … }
String16::String16(const UChar* characters) : … { … }
String16::String16(const char* characters)
: … { … }
String16::String16(const char* characters, size_t size) { … }
String16::String16(const std::basic_string<UChar>& impl) : … { … }
String16::String16(std::basic_string<UChar>&& impl) : … { … }
String16 String16::fromInteger(int number) { … }
String16 String16::fromInteger(size_t number) { … }
String16 String16::fromInteger64(int64_t number) { … }
String16 String16::fromDouble(double number) { … }
String16 String16::fromDouble(double number, int precision) { … }
int64_t String16::toInteger64(bool* ok) const { … }
int String16::toInteger(bool* ok) const { … }
std::pair<size_t, size_t> String16::getTrimmedOffsetAndLength() const { … }
String16 String16::stripWhiteSpace() const { … }
String16Builder::String16Builder() = default;
void String16Builder::append(const String16& s) { … }
void String16Builder::append(UChar c) { … }
void String16Builder::append(char c) { … }
void String16Builder::append(const UChar* characters, size_t length) { … }
void String16Builder::append(const char* characters, size_t length) { … }
void String16Builder::appendNumber(int number) { … }
void String16Builder::appendNumber(size_t number) { … }
void String16Builder::appendUnsignedAsHex(uint64_t number) { … }
void String16Builder::appendUnsignedAsHex(uint32_t number) { … }
void String16Builder::appendUnsignedAsHex(uint8_t number) { … }
String16 String16Builder::toString() { … }
void String16Builder::reserveCapacity(size_t capacity) { … }
String16 String16::fromUTF8(const char* stringStart, size_t length) { … }
String16 String16::fromUTF16LE(const UChar* stringStart, size_t length) { … }
String16 String16::fromUTF16LE(const uint16_t* stringStart, size_t length) { … }
std::string String16::utf8() const { … }
}