Skip to main content

QRegExp

Struct QRegExp 

Source
pub struct QRegExp { /* private fields */ }
Expand description

C++ class: QRegExp.

Implementations§

Source§

impl QRegExp

Source

pub unsafe fn cap_1a(&self, nth: c_int) -> CppBox<QString>

Calls C++ function: QString QRegExp::cap(int nth = …) const.

Source

pub unsafe fn cap_1a_mut(&self, nth: c_int) -> CppBox<QString>

Calls C++ function: QString QRegExp::cap(int nth = …).

Source

pub unsafe fn cap_0a(&self) -> CppBox<QString>

Calls C++ function: QString QRegExp::cap() const.

Source

pub unsafe fn cap_0a_mut(&self) -> CppBox<QString>

Calls C++ function: QString QRegExp::cap().

Source

pub unsafe fn capture_count(&self) -> c_int

Calls C++ function: int QRegExp::captureCount() const.

Source

pub unsafe fn captured_texts(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QRegExp::capturedTexts() const.

Source

pub unsafe fn captured_texts_mut(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QRegExp::capturedTexts().

Source

pub unsafe fn case_sensitivity(&self) -> CaseSensitivity

Calls C++ function: Qt::CaseSensitivity QRegExp::caseSensitivity() const.

Source

pub unsafe fn copy_from(&self, rx: impl CastInto<Ref<QRegExp>>) -> Ref<QRegExp>

Calls C++ function: QRegExp& QRegExp::operator=(const QRegExp& rx).

Source

pub unsafe fn error_string(&self) -> CppBox<QString>

Calls C++ function: QString QRegExp::errorString() const.

Source

pub unsafe fn error_string_mut(&self) -> CppBox<QString>

Calls C++ function: QString QRegExp::errorString().

Source

pub unsafe fn escape(str: impl CastInto<Ref<QString>>) -> CppBox<QString>

Calls C++ function: static QString QRegExp::escape(const QString& str).

Source

pub unsafe fn exact_match(&self, str: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: bool QRegExp::exactMatch(const QString& str) const.

Source

pub unsafe fn index_in_3a( &self, str: impl CastInto<Ref<QString>>, offset: c_int, caret_mode: CaretMode, ) -> c_int

Calls C++ function: int QRegExp::indexIn(const QString& str, int offset = …, QRegExp::CaretMode caretMode = …) const.

Source

pub unsafe fn index_in_2a( &self, str: impl CastInto<Ref<QString>>, offset: c_int, ) -> c_int

Calls C++ function: int QRegExp::indexIn(const QString& str, int offset = …) const.

Source

pub unsafe fn index_in_1a(&self, str: impl CastInto<Ref<QString>>) -> c_int

Calls C++ function: int QRegExp::indexIn(const QString& str) const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QRegExp::isEmpty() const.

Source

pub unsafe fn is_minimal(&self) -> bool

Calls C++ function: bool QRegExp::isMinimal() const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QRegExp::isValid() const.

Source

pub unsafe fn last_index_in_3a( &self, str: impl CastInto<Ref<QString>>, offset: c_int, caret_mode: CaretMode, ) -> c_int

Calls C++ function: int QRegExp::lastIndexIn(const QString& str, int offset = …, QRegExp::CaretMode caretMode = …) const.

Source

pub unsafe fn last_index_in_2a( &self, str: impl CastInto<Ref<QString>>, offset: c_int, ) -> c_int

Calls C++ function: int QRegExp::lastIndexIn(const QString& str, int offset = …) const.

Source

pub unsafe fn last_index_in_1a(&self, str: impl CastInto<Ref<QString>>) -> c_int

Calls C++ function: int QRegExp::lastIndexIn(const QString& str) const.

Source

pub unsafe fn matched_length(&self) -> c_int

Calls C++ function: int QRegExp::matchedLength() const.

Source

pub unsafe fn new_0a() -> CppBox<QRegExp>

Calls C++ function: [constructor] void QRegExp::QRegExp().

Source

pub unsafe fn new_3a( pattern: impl CastInto<Ref<QString>>, cs: CaseSensitivity, syntax: PatternSyntax, ) -> CppBox<QRegExp>

Calls C++ function: [constructor] void QRegExp::QRegExp(const QString& pattern, Qt::CaseSensitivity cs = …, QRegExp::PatternSyntax syntax = …).

Source

pub unsafe fn new_2a( pattern: impl CastInto<Ref<QString>>, cs: CaseSensitivity, ) -> CppBox<QRegExp>

Calls C++ function: [constructor] void QRegExp::QRegExp(const QString& pattern, Qt::CaseSensitivity cs = …).

Source

pub unsafe fn new_1a(pattern: impl CastInto<Ref<QString>>) -> CppBox<QRegExp>

Calls C++ function: [constructor] void QRegExp::QRegExp(const QString& pattern).

Source

pub unsafe fn new_copy(rx: impl CastInto<Ref<QRegExp>>) -> CppBox<QRegExp>

Calls C++ function: [constructor] void QRegExp::QRegExp(const QRegExp& rx).

Source

pub unsafe fn pattern(&self) -> CppBox<QString>

Calls C++ function: QString QRegExp::pattern() const.

Source

pub unsafe fn pattern_syntax(&self) -> PatternSyntax

Calls C++ function: QRegExp::PatternSyntax QRegExp::patternSyntax() const.

Source

pub unsafe fn pos_1a(&self, nth: c_int) -> c_int

Calls C++ function: int QRegExp::pos(int nth = …) const.

Source

pub unsafe fn pos_1a_mut(&self, nth: c_int) -> c_int

Calls C++ function: int QRegExp::pos(int nth = …).

Source

pub unsafe fn pos_0a(&self) -> c_int

Calls C++ function: int QRegExp::pos() const.

Source

pub unsafe fn pos_0a_mut(&self) -> c_int

Calls C++ function: int QRegExp::pos().

Source

pub unsafe fn set_case_sensitivity(&self, cs: CaseSensitivity)

Calls C++ function: void QRegExp::setCaseSensitivity(Qt::CaseSensitivity cs).

Source

pub unsafe fn set_minimal(&self, minimal: bool)

Calls C++ function: void QRegExp::setMinimal(bool minimal).

Source

pub unsafe fn set_pattern(&self, pattern: impl CastInto<Ref<QString>>)

Calls C++ function: void QRegExp::setPattern(const QString& pattern).

Source

pub unsafe fn set_pattern_syntax(&self, syntax: PatternSyntax)

Calls C++ function: void QRegExp::setPatternSyntax(QRegExp::PatternSyntax syntax).

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QRegExp>>)

Calls C++ function: void QRegExp::swap(QRegExp& other).

Trait Implementations§

Source§

impl CppDeletable for QRegExp

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QRegExp::~QRegExp().

Source§

impl PartialEq<Ref<QRegExp>> for QRegExp

Source§

fn eq(&self, rx: &Ref<QRegExp>) -> bool

Calls C++ function: bool QRegExp::operator==(const QRegExp& rx) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.