OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/inspector_protocol/String16.h" | |
6 | |
7 #include <cstdlib> | 5 #include <cstdlib> |
8 #include <cstring> | 6 #include <cstring> |
9 #include <string> | 7 #include <string> |
10 | 8 |
11 namespace blink { | 9 namespace blink { |
12 namespace protocol { | 10 namespace protocol { |
13 | 11 |
14 namespace internal { | 12 namespace internal { |
15 | 13 |
16 void intToStr(int number, char* buffer, size_t length) | 14 void intToStr(int number, char* buffer, size_t length) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return String16(m_buffer.data(), m_buffer.size()); | 90 return String16(m_buffer.data(), m_buffer.size()); |
93 } | 91 } |
94 | 92 |
95 void String16Builder::reserveCapacity(size_t capacity) | 93 void String16Builder::reserveCapacity(size_t capacity) |
96 { | 94 { |
97 m_buffer.reserve(capacity); | 95 m_buffer.reserve(capacity); |
98 } | 96 } |
99 | 97 |
100 } // namespace protocol | 98 } // namespace protocol |
101 } // namespace blink | 99 } // namespace blink |
OLD | NEW |