OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 "src/inspector/String16.h" | 5 #include "src/inspector/string-16.h" |
6 | |
7 #include "src/base/platform/platform.h" | 6 #include "src/base/platform/platform.h" |
8 #include "src/inspector/ProtocolPlatform.h" | 7 #include "src/inspector/protocol-platform.h" |
9 | 8 |
10 #include <algorithm> | 9 #include <algorithm> |
11 #include <cctype> | 10 #include <cctype> |
12 #include <cstdlib> | 11 #include <cstdlib> |
13 #include <cstring> | 12 #include <cstring> |
14 #include <locale> | 13 #include <locale> |
15 #include <string> | 14 #include <string> |
16 | 15 |
17 namespace v8_inspector { | 16 namespace v8_inspector { |
18 | 17 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 // There should be room left, since one UChar hasn't been | 500 // There should be room left, since one UChar hasn't been |
502 // converted. | 501 // converted. |
503 DCHECK((buffer + 3) <= (buffer + bufferVector.size())); | 502 DCHECK((buffer + 3) <= (buffer + bufferVector.size())); |
504 putUTF8Triple(buffer, *characters); | 503 putUTF8Triple(buffer, *characters); |
505 } | 504 } |
506 | 505 |
507 return std::string(bufferVector.data(), buffer - bufferVector.data()); | 506 return std::string(bufferVector.data(), buffer - bufferVector.data()); |
508 } | 507 } |
509 | 508 |
510 } // namespace v8_inspector | 509 } // namespace v8_inspector |
OLD | NEW |