| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_OSTREAMS_H_ | 5 #ifndef V8_OSTREAMS_H_ |
| 6 #define V8_OSTREAMS_H_ | 6 #define V8_OSTREAMS_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <cstdio> | 9 #include <cstdio> |
| 10 #include <cstring> | 10 #include <cstring> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 uint64_t value; | 73 uint64_t value; |
| 74 uint8_t min_width; | 74 uint8_t min_width; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 // Writes the given character to the output escaping everything outside of | 77 // Writes the given character to the output escaping everything outside of |
| 78 // printable/space ASCII range. Additionally escapes '\' making escaping | 78 // printable/space ASCII range. Additionally escapes '\' making escaping |
| 79 // reversible. | 79 // reversible. |
| 80 std::ostream& operator<<(std::ostream& os, const AsReversiblyEscapedUC16& c); | 80 std::ostream& operator<<(std::ostream& os, const AsReversiblyEscapedUC16& c); |
| 81 | 81 |
| 82 // Same as AsReversiblyEscapedUC16 with additional escaping of \n, \r, " and '. | 82 // Same as AsReversiblyEscapedUC16 with additional escaping of \n, \r, " and '. |
| 83 std::ostream& operator<<(std::ostream& os, const AsEscapedUC16ForJSON& c); | 83 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
| 84 const AsEscapedUC16ForJSON& c); |
| 84 | 85 |
| 85 // Writes the given character to the output escaping everything outside | 86 // Writes the given character to the output escaping everything outside |
| 86 // of printable ASCII range. | 87 // of printable ASCII range. |
| 87 std::ostream& operator<<(std::ostream& os, const AsUC16& c); | 88 std::ostream& operator<<(std::ostream& os, const AsUC16& c); |
| 88 | 89 |
| 89 // Writes the given character to the output escaping everything outside | 90 // Writes the given character to the output escaping everything outside |
| 90 // of printable ASCII range. | 91 // of printable ASCII range. |
| 91 std::ostream& operator<<(std::ostream& os, const AsUC32& c); | 92 std::ostream& operator<<(std::ostream& os, const AsUC32& c); |
| 92 | 93 |
| 93 // Writes the given number to the output in hexadecimal notation. | 94 // Writes the given number to the output in hexadecimal notation. |
| 94 std::ostream& operator<<(std::ostream& os, const AsHex& v); | 95 std::ostream& operator<<(std::ostream& os, const AsHex& v); |
| 95 | 96 |
| 96 } // namespace internal | 97 } // namespace internal |
| 97 } // namespace v8 | 98 } // namespace v8 |
| 98 | 99 |
| 99 #endif // V8_OSTREAMS_H_ | 100 #endif // V8_OSTREAMS_H_ |
| OLD | NEW |