pub struct QTextStream { /* private fields */ }Expand description
C++ class: QTextStream.
Implementations§
Source§impl QTextStream
impl QTextStream
Sourcepub unsafe fn auto_detect_unicode(&self) -> bool
pub unsafe fn auto_detect_unicode(&self) -> bool
Calls C++ function: bool QTextStream::autoDetectUnicode() const.
Sourcepub unsafe fn codec(&self) -> Ptr<QTextCodec>
pub unsafe fn codec(&self) -> Ptr<QTextCodec>
Calls C++ function: QTextCodec* QTextStream::codec() const.
Sourcepub unsafe fn device(&self) -> QPtr<QIODevice>
pub unsafe fn device(&self) -> QPtr<QIODevice>
Calls C++ function: QIODevice* QTextStream::device() const.
Sourcepub unsafe fn field_alignment(&self) -> FieldAlignment
pub unsafe fn field_alignment(&self) -> FieldAlignment
Calls C++ function: QTextStream::FieldAlignment QTextStream::fieldAlignment() const.
Sourcepub unsafe fn field_width(&self) -> c_int
pub unsafe fn field_width(&self) -> c_int
Calls C++ function: int QTextStream::fieldWidth() const.
Sourcepub unsafe fn generate_byte_order_mark(&self) -> bool
pub unsafe fn generate_byte_order_mark(&self) -> bool
Calls C++ function: bool QTextStream::generateByteOrderMark() const.
Sourcepub unsafe fn integer_base(&self) -> c_int
pub unsafe fn integer_base(&self) -> c_int
Calls C++ function: int QTextStream::integerBase() const.
Sourcepub unsafe fn locale(&self) -> CppBox<QLocale>
pub unsafe fn locale(&self) -> CppBox<QLocale>
Calls C++ function: QLocale QTextStream::locale() const.
Sourcepub unsafe fn new() -> CppBox<QTextStream>
pub unsafe fn new() -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream().
Sourcepub unsafe fn from_q_io_device(
device: impl CastInto<Ptr<QIODevice>>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_io_device( device: impl CastInto<Ptr<QIODevice>>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(QIODevice* device).
Sourcepub unsafe fn from_q_string_q_flags_open_mode_flag(
string: impl CastInto<Ptr<QString>>,
open_mode: QFlags<OpenModeFlag>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_string_q_flags_open_mode_flag( string: impl CastInto<Ptr<QString>>, open_mode: QFlags<OpenModeFlag>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(QString* string, QFlags<QIODevice::OpenModeFlag> openMode = …).
Sourcepub unsafe fn from_q_byte_array_q_flags_open_mode_flag(
array: impl CastInto<Ptr<QByteArray>>,
open_mode: QFlags<OpenModeFlag>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_byte_array_q_flags_open_mode_flag( array: impl CastInto<Ptr<QByteArray>>, open_mode: QFlags<OpenModeFlag>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(QByteArray* array, QFlags<QIODevice::OpenModeFlag> openMode = …).
Sourcepub unsafe fn from_q_byte_array_q_flags_open_mode_flag2(
array: impl CastInto<Ref<QByteArray>>,
open_mode: QFlags<OpenModeFlag>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_byte_array_q_flags_open_mode_flag2( array: impl CastInto<Ref<QByteArray>>, open_mode: QFlags<OpenModeFlag>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(const QByteArray& array, QFlags<QIODevice::OpenModeFlag> openMode = …).
Sourcepub unsafe fn from_q_string(
string: impl CastInto<Ptr<QString>>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_string( string: impl CastInto<Ptr<QString>>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(QString* string).
Sourcepub unsafe fn from_q_byte_array(
array: impl CastInto<Ptr<QByteArray>>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_byte_array( array: impl CastInto<Ptr<QByteArray>>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(QByteArray* array).
Sourcepub unsafe fn from_q_byte_array2(
array: impl CastInto<Ref<QByteArray>>,
) -> CppBox<QTextStream>
pub unsafe fn from_q_byte_array2( array: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QTextStream>
Calls C++ function: [constructor] void QTextStream::QTextStream(const QByteArray& array).
Sourcepub unsafe fn number_flags(&self) -> QFlags<NumberFlag>
pub unsafe fn number_flags(&self) -> QFlags<NumberFlag>
Calls C++ function: QFlags<QTextStream::NumberFlag> QTextStream::numberFlags() const.
Sourcepub unsafe fn pad_char(&self) -> CppBox<QChar>
pub unsafe fn pad_char(&self) -> CppBox<QChar>
Calls C++ function: QChar QTextStream::padChar() const.
Sourcepub unsafe fn pos(&self) -> c_longlong
pub unsafe fn pos(&self) -> c_longlong
Calls C++ function: long long QTextStream::pos() const.
Sourcepub unsafe fn read(&self, maxlen: c_longlong) -> CppBox<QString>
pub unsafe fn read(&self, maxlen: c_longlong) -> CppBox<QString>
Calls C++ function: QString QTextStream::read(long long maxlen).
Sourcepub unsafe fn read_all(&self) -> CppBox<QString>
pub unsafe fn read_all(&self) -> CppBox<QString>
Calls C++ function: QString QTextStream::readAll().
Sourcepub unsafe fn read_line_1a(&self, maxlen: c_longlong) -> CppBox<QString>
pub unsafe fn read_line_1a(&self, maxlen: c_longlong) -> CppBox<QString>
Calls C++ function: QString QTextStream::readLine(long long maxlen = …).
Sourcepub unsafe fn read_line_0a(&self) -> CppBox<QString>
pub unsafe fn read_line_0a(&self) -> CppBox<QString>
Calls C++ function: QString QTextStream::readLine().
Sourcepub unsafe fn read_line_into_2a(
&self,
line: impl CastInto<Ptr<QString>>,
maxlen: c_longlong,
) -> bool
pub unsafe fn read_line_into_2a( &self, line: impl CastInto<Ptr<QString>>, maxlen: c_longlong, ) -> bool
Calls C++ function: bool QTextStream::readLineInto(QString* line, long long maxlen = …).
Sourcepub unsafe fn read_line_into_1a(
&self,
line: impl CastInto<Ptr<QString>>,
) -> bool
pub unsafe fn read_line_into_1a( &self, line: impl CastInto<Ptr<QString>>, ) -> bool
Calls C++ function: bool QTextStream::readLineInto(QString* line).
Sourcepub unsafe fn real_number_notation(&self) -> RealNumberNotation
pub unsafe fn real_number_notation(&self) -> RealNumberNotation
Calls C++ function: QTextStream::RealNumberNotation QTextStream::realNumberNotation() const.
Sourcepub unsafe fn real_number_precision(&self) -> c_int
pub unsafe fn real_number_precision(&self) -> c_int
Calls C++ function: int QTextStream::realNumberPrecision() const.
Sourcepub unsafe fn reset_status(&self)
pub unsafe fn reset_status(&self)
Calls C++ function: void QTextStream::resetStatus().
Sourcepub unsafe fn seek(&self, pos: c_longlong) -> bool
pub unsafe fn seek(&self, pos: c_longlong) -> bool
Calls C++ function: bool QTextStream::seek(long long pos).
Sourcepub unsafe fn set_auto_detect_unicode(&self, enabled: bool)
pub unsafe fn set_auto_detect_unicode(&self, enabled: bool)
Calls C++ function: void QTextStream::setAutoDetectUnicode(bool enabled).
Sourcepub unsafe fn set_codec_q_text_codec(
&self,
codec: impl CastInto<Ptr<QTextCodec>>,
)
pub unsafe fn set_codec_q_text_codec( &self, codec: impl CastInto<Ptr<QTextCodec>>, )
Calls C++ function: void QTextStream::setCodec(QTextCodec* codec).
Sourcepub unsafe fn set_codec_char(&self, codec_name: *const c_char)
pub unsafe fn set_codec_char(&self, codec_name: *const c_char)
Calls C++ function: void QTextStream::setCodec(const char* codecName).
Sourcepub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)
pub unsafe fn set_device(&self, device: impl CastInto<Ptr<QIODevice>>)
Calls C++ function: void QTextStream::setDevice(QIODevice* device).
Sourcepub unsafe fn set_field_alignment(&self, alignment: FieldAlignment)
pub unsafe fn set_field_alignment(&self, alignment: FieldAlignment)
Calls C++ function: void QTextStream::setFieldAlignment(QTextStream::FieldAlignment alignment).
Sourcepub unsafe fn set_field_width(&self, width: c_int)
pub unsafe fn set_field_width(&self, width: c_int)
Calls C++ function: void QTextStream::setFieldWidth(int width).
Sourcepub unsafe fn set_generate_byte_order_mark(&self, generate: bool)
pub unsafe fn set_generate_byte_order_mark(&self, generate: bool)
Calls C++ function: void QTextStream::setGenerateByteOrderMark(bool generate).
Sourcepub unsafe fn set_integer_base(&self, base: c_int)
pub unsafe fn set_integer_base(&self, base: c_int)
Calls C++ function: void QTextStream::setIntegerBase(int base).
Sourcepub unsafe fn set_locale(&self, locale: impl CastInto<Ref<QLocale>>)
pub unsafe fn set_locale(&self, locale: impl CastInto<Ref<QLocale>>)
Calls C++ function: void QTextStream::setLocale(const QLocale& locale).
Sourcepub unsafe fn set_number_flags(&self, flags: QFlags<NumberFlag>)
pub unsafe fn set_number_flags(&self, flags: QFlags<NumberFlag>)
Calls C++ function: void QTextStream::setNumberFlags(QFlags<QTextStream::NumberFlag> flags).
Sourcepub unsafe fn set_pad_char(&self, ch: impl CastInto<Ref<QChar>>)
pub unsafe fn set_pad_char(&self, ch: impl CastInto<Ref<QChar>>)
Calls C++ function: void QTextStream::setPadChar(QChar ch).
Sourcepub unsafe fn set_real_number_notation(&self, notation: RealNumberNotation)
pub unsafe fn set_real_number_notation(&self, notation: RealNumberNotation)
Calls C++ function: void QTextStream::setRealNumberNotation(QTextStream::RealNumberNotation notation).
Sourcepub unsafe fn set_real_number_precision(&self, precision: c_int)
pub unsafe fn set_real_number_precision(&self, precision: c_int)
Calls C++ function: void QTextStream::setRealNumberPrecision(int precision).
Sourcepub unsafe fn set_status(&self, status: Status)
pub unsafe fn set_status(&self, status: Status)
Calls C++ function: void QTextStream::setStatus(QTextStream::Status status).
Sourcepub unsafe fn set_string_2a(
&self,
string: impl CastInto<Ptr<QString>>,
open_mode: QFlags<OpenModeFlag>,
)
pub unsafe fn set_string_2a( &self, string: impl CastInto<Ptr<QString>>, open_mode: QFlags<OpenModeFlag>, )
Calls C++ function: void QTextStream::setString(QString* string, QFlags<QIODevice::OpenModeFlag> openMode = …).
Sourcepub unsafe fn set_string_1a(&self, string: impl CastInto<Ptr<QString>>)
pub unsafe fn set_string_1a(&self, string: impl CastInto<Ptr<QString>>)
Calls C++ function: void QTextStream::setString(QString* string).
Sourcepub unsafe fn shl_short(&self, i: c_short) -> Ref<QTextStream>
pub unsafe fn shl_short(&self, i: c_short) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(short i).
Sourcepub unsafe fn shl_ushort(&self, i: c_ushort) -> Ref<QTextStream>
pub unsafe fn shl_ushort(&self, i: c_ushort) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(unsigned short i).
Sourcepub unsafe fn shl_int(&self, i: c_int) -> Ref<QTextStream>
pub unsafe fn shl_int(&self, i: c_int) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(int i).
Sourcepub unsafe fn shl_uint(&self, i: c_uint) -> Ref<QTextStream>
pub unsafe fn shl_uint(&self, i: c_uint) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(unsigned int i).
Sourcepub unsafe fn shl_long(&self, i: c_long) -> Ref<QTextStream>
pub unsafe fn shl_long(&self, i: c_long) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(long i).
Sourcepub unsafe fn shl_ulong(&self, i: c_ulong) -> Ref<QTextStream>
pub unsafe fn shl_ulong(&self, i: c_ulong) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(unsigned long i).
Sourcepub unsafe fn shl_longlong(&self, i: c_longlong) -> Ref<QTextStream>
pub unsafe fn shl_longlong(&self, i: c_longlong) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(long long i).
Sourcepub unsafe fn shl_ulonglong(&self, i: c_ulonglong) -> Ref<QTextStream>
pub unsafe fn shl_ulonglong(&self, i: c_ulonglong) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(unsigned long long i).
Sourcepub unsafe fn shl_double(&self, f: c_double) -> Ref<QTextStream>
pub unsafe fn shl_double(&self, f: c_double) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(double f).
Sourcepub unsafe fn shr_short(&self, i: *mut c_short) -> Ref<QTextStream>
pub unsafe fn shr_short(&self, i: *mut c_short) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(short& i).
Sourcepub unsafe fn shr_ushort(&self, i: *mut c_ushort) -> Ref<QTextStream>
pub unsafe fn shr_ushort(&self, i: *mut c_ushort) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(unsigned short& i).
Sourcepub unsafe fn shr_int(&self, i: *mut c_int) -> Ref<QTextStream>
pub unsafe fn shr_int(&self, i: *mut c_int) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(int& i).
Sourcepub unsafe fn shr_uint(&self, i: *mut c_uint) -> Ref<QTextStream>
pub unsafe fn shr_uint(&self, i: *mut c_uint) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(unsigned int& i).
Sourcepub unsafe fn shr_long(&self, i: *mut c_long) -> Ref<QTextStream>
pub unsafe fn shr_long(&self, i: *mut c_long) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(long& i).
Sourcepub unsafe fn shr_ulong(&self, i: *mut c_ulong) -> Ref<QTextStream>
pub unsafe fn shr_ulong(&self, i: *mut c_ulong) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(unsigned long& i).
Sourcepub unsafe fn shr_longlong(&self, i: *mut c_longlong) -> Ref<QTextStream>
pub unsafe fn shr_longlong(&self, i: *mut c_longlong) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(long long& i).
Sourcepub unsafe fn shr_ulonglong(&self, i: *mut c_ulonglong) -> Ref<QTextStream>
pub unsafe fn shr_ulonglong(&self, i: *mut c_ulonglong) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(unsigned long long& i).
Sourcepub unsafe fn shr_double(&self, f: *mut c_double) -> Ref<QTextStream>
pub unsafe fn shr_double(&self, f: *mut c_double) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(double& f).
Sourcepub unsafe fn shr_char(&self, c: *mut c_char) -> Ref<QTextStream>
pub unsafe fn shr_char(&self, c: *mut c_char) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(char* c).
Sourcepub unsafe fn skip_white_space(&self)
pub unsafe fn skip_white_space(&self)
Calls C++ function: void QTextStream::skipWhiteSpace().
Trait Implementations§
Source§impl CppDeletable for QTextStream
impl CppDeletable for QTextStream
Source§impl Shl<Ref<QByteArray>> for &QTextStream
impl Shl<Ref<QByteArray>> for &QTextStream
Source§fn shl(self, array: Ref<QByteArray>) -> Ref<QTextStream>
fn shl(self, array: Ref<QByteArray>) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(const QByteArray& array).
Source§type Output = Ref<QTextStream>
type Output = Ref<QTextStream>
<< operator.Source§impl Shl<Ref<QLatin1String>> for &QTextStream
impl Shl<Ref<QLatin1String>> for &QTextStream
Source§fn shl(self, s: Ref<QLatin1String>) -> Ref<QTextStream>
fn shl(self, s: Ref<QLatin1String>) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(QLatin1String s).
Source§type Output = Ref<QTextStream>
type Output = Ref<QTextStream>
<< operator.Source§impl Shl<Ref<QStringRef>> for &QTextStream
impl Shl<Ref<QStringRef>> for &QTextStream
Source§fn shl(self, s: Ref<QStringRef>) -> Ref<QTextStream>
fn shl(self, s: Ref<QStringRef>) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(const QStringRef& s).
Source§type Output = Ref<QTextStream>
type Output = Ref<QTextStream>
<< operator.Source§impl Shl<Ref<QStringView>> for &QTextStream
impl Shl<Ref<QStringView>> for &QTextStream
Source§fn shl(self, s: Ref<QStringView>) -> Ref<QTextStream>
fn shl(self, s: Ref<QStringView>) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator<<(QStringView s).
Source§type Output = Ref<QTextStream>
type Output = Ref<QTextStream>
<< operator.Source§impl Shl<Ref<QTextStreamManipulator>> for &QTextStream
impl Shl<Ref<QTextStreamManipulator>> for &QTextStream
Source§fn shl(self, m: Ref<QTextStreamManipulator>) -> Ref<QTextStream>
fn shl(self, m: Ref<QTextStreamManipulator>) -> Ref<QTextStream>
Calls C++ function: QTextStream& operator<<(QTextStream& s, QTextStreamManipulator m).
Source§type Output = Ref<QTextStream>
type Output = Ref<QTextStream>
<< operator.Source§impl Shl<f32> for &QTextStream
impl Shl<f32> for &QTextStream
Source§impl Shl<i8> for &QTextStream
impl Shl<i8> for &QTextStream
Source§impl Shr<Ref<QByteArray>> for &QTextStream
impl Shr<Ref<QByteArray>> for &QTextStream
Source§fn shr(self, array: Ref<QByteArray>) -> Ref<QTextStream>
fn shr(self, array: Ref<QByteArray>) -> Ref<QTextStream>
Calls C++ function: QTextStream& QTextStream::operator>>(QByteArray& array).
Source§type Output = Ref<QTextStream>
type Output = Ref<QTextStream>
>> operator.