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" | 5 #include "platform/inspector_protocol/InspectorProtocol.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cctype> | 8 #include <cctype> |
9 #include <cstdio> | 9 #include <cstdio> |
10 #include <locale> | 10 #include <locale> |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 namespace protocol { | 13 namespace protocol { |
14 | 14 |
15 const UChar replacementCharacter = 0xFFFD; | 15 const UChar replacementCharacter = 0xFFFD; |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // converted. | 396 // converted. |
397 DCHECK((buffer + 3) <= (buffer + bufferVector.size())); | 397 DCHECK((buffer + 3) <= (buffer + bufferVector.size())); |
398 putUTF8Triple(buffer, *characters); | 398 putUTF8Triple(buffer, *characters); |
399 } | 399 } |
400 | 400 |
401 return std::string(bufferVector.data(), buffer - bufferVector.data()); | 401 return std::string(bufferVector.data(), buffer - bufferVector.data()); |
402 } | 402 } |
403 | 403 |
404 } // namespace protocol | 404 } // namespace protocol |
405 } // namespace blink | 405 } // namespace blink |
OLD | NEW |