Home | History | Annotate | Download | only in inspector

Lines Matching defs:String16

19 class String16 {
23 String16() {}
24 String16(const String16& other)
26 String16(String16&& other)
28 String16(const UChar* characters, size_t size) : m_impl(characters, size) {}
29 String16(const UChar* characters) // NOLINT(runtime/explicit)
31 String16(const char* characters) // NOLINT(runtime/explicit)
32 : String16(characters, std::strlen(characters)) {}
33 String16(const char* characters, size_t size) {
37 explicit String16(const std::basic_string<UChar>& impl) : m_impl(impl) {}
39 String16& operator=(const String16& other) {
44 String16& operator=(String16&& other) {
50 static String16 fromInteger(int);
51 static String16 fromInteger(size_t);
52 static String16 fromDouble(double);
53 static String16 fromDouble(double, int precision);
56 String16 stripWhiteSpace() const;
61 String16 substring(size_t pos, size_t len = UINT_MAX) const {
62 return String16(m_impl.substr(pos, len));
64 size_t find(const String16& str, size_t start = 0) const {
67 size_t reverseFind(const String16& str, size_t start = UINT_MAX) const {
74 void swap(String16& other) {
81 static String16 fromUTF8(const char* stringStart, size_t length);
93 inline bool operator==(const String16& other) const {
96 inline bool operator<(const String16& other) const {
99 inline bool operator!=(const String16& other) const {
102 inline String16 operator+(const String16& other) const {
103 return String16(m_impl + other.m_impl);
108 static String16 concat(T... args);
115 inline String16 operator+(const char* a, const String16& b) {
116 return String16(a) + b;
122 void append(const String16&);
129 String16 toString();
144 String16 String16::concat(T... args) {
156 struct hash<v8_inspector::String16> {
157 std::size_t operator()(const v8_inspector::String16& string) const {