diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-02 08:16:24 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-08 15:44:40 +0400 |
commit | 270e998c90323785ef5da32acc247b2963afd0b8 (patch) | |
tree | 02d09e95722780fe30ec352160f94870308bd9cd /deps/v8/src/ostreams.h | |
parent | 9116b240c924d37627313416b7ee038d0580afbc (diff) | |
download | node-270e998c90323785ef5da32acc247b2963afd0b8.tar.gz |
deps: apply floating irhydra patch to v8
Reviewed-By: Fedor Indutny <fedor@indutny.com>
PR-URL: https://github.com/joyent/node/pull/8476
Diffstat (limited to 'deps/v8/src/ostreams.h')
-rw-r--r-- | deps/v8/src/ostreams.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/deps/v8/src/ostreams.h b/deps/v8/src/ostreams.h index f70b6de23..08f53c52a 100644 --- a/deps/v8/src/ostreams.h +++ b/deps/v8/src/ostreams.h @@ -117,13 +117,26 @@ class OFStream: public OStream { }; -// A wrapper to disambiguate uint16_t and uc16. +// Wrappers to disambiguate uint16_t and uc16. struct AsUC16 { explicit AsUC16(uint16_t v) : value(v) {} uint16_t value; }; +struct AsReversiblyEscapedUC16 { + explicit AsReversiblyEscapedUC16(uint16_t v) : value(v) {} + uint16_t value; +}; + + +// Writes the given character to the output escaping everything outside of +// printable/space ASCII range. Additionally escapes '\' making escaping +// reversible. +OStream& operator<<(OStream& os, const AsReversiblyEscapedUC16& c); + +// Writes the given character to the output escaping everything outside +// of printable ASCII range. OStream& operator<<(OStream& os, const AsUC16& c); } } // namespace v8::internal |