| 668 | |
| 669 | template<typename InputStream, typename OutputStream> |
| 670 | RAPIDJSON_FORCEINLINE static bool TranscodeUnsafe(InputStream& is, OutputStream& os) { |
| 671 | unsigned codepoint; |
| 672 | if (!SourceEncoding::Decode(is, &codepoint)) |
| 673 | return false; |
| 674 | TargetEncoding::EncodeUnsafe(os, codepoint); |
| 675 | return true; |
| 676 | } |
| 677 | |
| 678 | //! Validate one Unicode codepoint from an encoded stream. |
| 679 | template<typename InputStream, typename OutputStream> |
nothing calls this directly
no test coverage detected