| 659 | //! Take one Unicode codepoint from source encoding, convert it to target encoding and put it to the output stream. |
| 660 | template<typename InputStream, typename OutputStream> |
| 661 | RAPIDJSON_FORCEINLINE static bool Transcode(InputStream& is, OutputStream& os) { |
| 662 | unsigned codepoint; |
| 663 | if (!SourceEncoding::Decode(is, &codepoint)) |
| 664 | return false; |
| 665 | TargetEncoding::Encode(os, codepoint); |
| 666 | return true; |
| 667 | } |
| 668 | |
| 669 | template<typename InputStream, typename OutputStream> |
| 670 | RAPIDJSON_FORCEINLINE static bool TranscodeUnsafe(InputStream& is, OutputStream& os) { |