zorba::transcodeFunctions
Functionsattachbool attach(std::basic_ios< charT, Traits > &ios, char const *charset) Attaches a transcode::streambuf to a stream. Unlike using a transcode::streambuf directly, this function will create the streambuf, attach it to the stream, and manage it for the lifetime of the stream automatically. Parameters
Returnstrue only if a transcode::streambuf was attached.detachbool detach(std::basic_ios< charT, Traits > &ios) Detaches a previously attached transcode::streambuf from a stream. The streambuf is destroyed and the stream's original streambuf is restored. Parameters
Returnstrue only if a transcode::streambuf was detached.is_attachedbool is_attached(std::basic_ios< charT, Traits > &ios) Checks whether the given stream has a transcode::streambuf attached.
Parameters
Returnstrue only if a transcode::streambuf is attached.is_necessaryZORBA_DLL_PUBLIC bool is_necessary(char const *charset) Checks whether it would be necessary to transcode from the given character encoding to UTF-8.
Parameters
Returnstrue only if it would be necessary to transcode from the given character encoding to UTF-8.is_supportedZORBA_DLL_PUBLIC bool is_supported(char const *charset) Checks whether the given character set is supported for transcoding.
Parameters
Returnstrue only if the character encoding is supported.orig_streambufstd::streambuf * orig_streambuf(std::basic_ios< charT, Traits > &ios) Gets the original streambuf of the given iostream.
Parameters
Returnsthe original streambuf. |