pub struct QTextCodec { /* private fields */ }Expand description
C++ class: QTextCodec.
Implementations§
Source§impl QTextCodec
impl QTextCodec
Sourcepub unsafe fn aliases(&self) -> CppBox<QListOfQByteArray>
pub unsafe fn aliases(&self) -> CppBox<QListOfQByteArray>
Calls C++ function: virtual QList<QByteArray> QTextCodec::aliases() const.
Sourcepub unsafe fn available_codecs() -> CppBox<QListOfQByteArray>
pub unsafe fn available_codecs() -> CppBox<QListOfQByteArray>
Calls C++ function: static QList<QByteArray> QTextCodec::availableCodecs().
Sourcepub unsafe fn available_mibs() -> CppBox<QListOfInt>
pub unsafe fn available_mibs() -> CppBox<QListOfInt>
Calls C++ function: static QList<int> QTextCodec::availableMibs().
Sourcepub unsafe fn can_encode_q_char(&self, arg1: impl CastInto<Ref<QChar>>) -> bool
pub unsafe fn can_encode_q_char(&self, arg1: impl CastInto<Ref<QChar>>) -> bool
Calls C++ function: bool QTextCodec::canEncode(QChar arg1) const.
Sourcepub unsafe fn can_encode_q_string(
&self,
arg1: impl CastInto<Ref<QString>>,
) -> bool
pub unsafe fn can_encode_q_string( &self, arg1: impl CastInto<Ref<QString>>, ) -> bool
Calls C++ function: bool QTextCodec::canEncode(const QString& arg1) const.
Sourcepub unsafe fn can_encode_q_string_view(
&self,
arg1: impl CastInto<Ref<QStringView>>,
) -> bool
pub unsafe fn can_encode_q_string_view( &self, arg1: impl CastInto<Ref<QStringView>>, ) -> bool
Calls C++ function: bool QTextCodec::canEncode(QStringView arg1) const.
Sourcepub unsafe fn codec_for_html_1a(
ba: impl CastInto<Ref<QByteArray>>,
) -> Ptr<QTextCodec>
pub unsafe fn codec_for_html_1a( ba: impl CastInto<Ref<QByteArray>>, ) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForHtml(const QByteArray& ba).
Sourcepub unsafe fn codec_for_html_2a(
ba: impl CastInto<Ref<QByteArray>>,
default_codec: impl CastInto<Ptr<QTextCodec>>,
) -> Ptr<QTextCodec>
pub unsafe fn codec_for_html_2a( ba: impl CastInto<Ref<QByteArray>>, default_codec: impl CastInto<Ptr<QTextCodec>>, ) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForHtml(const QByteArray& ba, QTextCodec* defaultCodec).
Sourcepub unsafe fn codec_for_locale() -> Ptr<QTextCodec>
pub unsafe fn codec_for_locale() -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForLocale().
Sourcepub unsafe fn codec_for_mib(mib: c_int) -> Ptr<QTextCodec>
pub unsafe fn codec_for_mib(mib: c_int) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForMib(int mib).
Sourcepub unsafe fn codec_for_name_q_byte_array(
name: impl CastInto<Ref<QByteArray>>,
) -> Ptr<QTextCodec>
pub unsafe fn codec_for_name_q_byte_array( name: impl CastInto<Ref<QByteArray>>, ) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForName(const QByteArray& name).
Sourcepub unsafe fn codec_for_name_char(name: *const c_char) -> Ptr<QTextCodec>
pub unsafe fn codec_for_name_char(name: *const c_char) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForName(const char* name).
Sourcepub unsafe fn codec_for_utf_text_1a(
ba: impl CastInto<Ref<QByteArray>>,
) -> Ptr<QTextCodec>
pub unsafe fn codec_for_utf_text_1a( ba: impl CastInto<Ref<QByteArray>>, ) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForUtfText(const QByteArray& ba).
Sourcepub unsafe fn codec_for_utf_text_2a(
ba: impl CastInto<Ref<QByteArray>>,
default_codec: impl CastInto<Ptr<QTextCodec>>,
) -> Ptr<QTextCodec>
pub unsafe fn codec_for_utf_text_2a( ba: impl CastInto<Ref<QByteArray>>, default_codec: impl CastInto<Ptr<QTextCodec>>, ) -> Ptr<QTextCodec>
Calls C++ function: static QTextCodec* QTextCodec::codecForUtfText(const QByteArray& ba, QTextCodec* defaultCodec).
Sourcepub unsafe fn from_unicode_q_string(
&self,
uc: impl CastInto<Ref<QString>>,
) -> CppBox<QByteArray>
pub unsafe fn from_unicode_q_string( &self, uc: impl CastInto<Ref<QString>>, ) -> CppBox<QByteArray>
Calls C++ function: QByteArray QTextCodec::fromUnicode(const QString& uc) const.
Sourcepub unsafe fn from_unicode_q_string_view(
&self,
uc: impl CastInto<Ref<QStringView>>,
) -> CppBox<QByteArray>
pub unsafe fn from_unicode_q_string_view( &self, uc: impl CastInto<Ref<QStringView>>, ) -> CppBox<QByteArray>
Calls C++ function: QByteArray QTextCodec::fromUnicode(QStringView uc) const.
Sourcepub unsafe fn make_decoder_1a(
&self,
flags: QFlags<ConversionFlag>,
) -> Ptr<QTextDecoder>
pub unsafe fn make_decoder_1a( &self, flags: QFlags<ConversionFlag>, ) -> Ptr<QTextDecoder>
Calls C++ function: QTextDecoder* QTextCodec::makeDecoder(QFlags<QTextCodec::ConversionFlag> flags = …) const.
Sourcepub unsafe fn make_decoder_0a(&self) -> Ptr<QTextDecoder>
pub unsafe fn make_decoder_0a(&self) -> Ptr<QTextDecoder>
Calls C++ function: QTextDecoder* QTextCodec::makeDecoder() const.
Sourcepub unsafe fn make_encoder_1a(
&self,
flags: QFlags<ConversionFlag>,
) -> Ptr<QTextEncoder>
pub unsafe fn make_encoder_1a( &self, flags: QFlags<ConversionFlag>, ) -> Ptr<QTextEncoder>
Calls C++ function: QTextEncoder* QTextCodec::makeEncoder(QFlags<QTextCodec::ConversionFlag> flags = …) const.
Sourcepub unsafe fn make_encoder_0a(&self) -> Ptr<QTextEncoder>
pub unsafe fn make_encoder_0a(&self) -> Ptr<QTextEncoder>
Calls C++ function: QTextEncoder* QTextCodec::makeEncoder() const.
Sourcepub unsafe fn mib_enum(&self) -> c_int
pub unsafe fn mib_enum(&self) -> c_int
Calls C++ function: pure virtual int QTextCodec::mibEnum() const.
Sourcepub unsafe fn name(&self) -> CppBox<QByteArray>
pub unsafe fn name(&self) -> CppBox<QByteArray>
Calls C++ function: pure virtual QByteArray QTextCodec::name() const.
Sourcepub unsafe fn set_codec_for_locale(c: impl CastInto<Ptr<QTextCodec>>)
pub unsafe fn set_codec_for_locale(c: impl CastInto<Ptr<QTextCodec>>)
Calls C++ function: static void QTextCodec::setCodecForLocale(QTextCodec* c).
Sourcepub unsafe fn to_unicode_q_byte_array(
&self,
arg1: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QString>
pub unsafe fn to_unicode_q_byte_array( &self, arg1: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QString>
Calls C++ function: QString QTextCodec::toUnicode(const QByteArray& arg1) const.