Skip to main content

QRegularExpression

Struct QRegularExpression 

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

C++ class: QRegularExpression.

Implementations§

Source§

impl QRegularExpression

Source

pub unsafe fn anchored_pattern_q_string( expression: impl CastInto<Ref<QString>>, ) -> CppBox<QString>

Calls C++ function: static QString QRegularExpression::anchoredPattern(const QString& expression).

Source

pub unsafe fn anchored_pattern_q_string_view( expression: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>

Calls C++ function: static QString QRegularExpression::anchoredPattern(QStringView expression).

Source

pub unsafe fn capture_count(&self) -> c_int

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

Source

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

Calls C++ function: QRegularExpression& QRegularExpression::operator=(const QRegularExpression& re).

Source

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

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

Source

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

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

Source

pub unsafe fn escape_q_string_view( str: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>

Calls C++ function: static QString QRegularExpression::escape(QStringView str).

Source

pub unsafe fn global_match_q_string_int_match_type_q_flags_match_option( &self, subject: impl CastInto<Ref<QString>>, offset: c_int, match_type: MatchType, match_options: QFlags<MatchOption>, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QString& subject, int offset = …, QRegularExpression::MatchType matchType = …, QFlags<QRegularExpression::MatchOption> matchOptions = …) const.

Source

pub unsafe fn global_match_q_string_ref_int_match_type_q_flags_match_option( &self, subject_ref: impl CastInto<Ref<QStringRef>>, offset: c_int, match_type: MatchType, match_options: QFlags<MatchOption>, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QStringRef& subjectRef, int offset = …, QRegularExpression::MatchType matchType = …, QFlags<QRegularExpression::MatchOption> matchOptions = …) const.

Source

pub unsafe fn global_match_q_string_view_int_match_type_q_flags_match_option( &self, subject: impl CastInto<Ref<QStringView>>, offset: c_int, match_type: MatchType, match_options: QFlags<MatchOption>, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(QStringView subject, int offset = …, QRegularExpression::MatchType matchType = …, QFlags<QRegularExpression::MatchOption> matchOptions = …) const.

Source

pub unsafe fn global_match_q_string_int_match_type( &self, subject: impl CastInto<Ref<QString>>, offset: c_int, match_type: MatchType, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QString& subject, int offset = …, QRegularExpression::MatchType matchType = …) const.

Source

pub unsafe fn global_match_q_string_int( &self, subject: impl CastInto<Ref<QString>>, offset: c_int, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QString& subject, int offset = …) const.

Source

pub unsafe fn global_match_q_string( &self, subject: impl CastInto<Ref<QString>>, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QString& subject) const.

Source

pub unsafe fn global_match_q_string_ref_int_match_type( &self, subject_ref: impl CastInto<Ref<QStringRef>>, offset: c_int, match_type: MatchType, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QStringRef& subjectRef, int offset = …, QRegularExpression::MatchType matchType = …) const.

Source

pub unsafe fn global_match_q_string_ref_int( &self, subject_ref: impl CastInto<Ref<QStringRef>>, offset: c_int, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QStringRef& subjectRef, int offset = …) const.

Source

pub unsafe fn global_match_q_string_ref( &self, subject_ref: impl CastInto<Ref<QStringRef>>, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QStringRef& subjectRef) const.

Source

pub unsafe fn global_match_q_string_view_int_match_type( &self, subject: impl CastInto<Ref<QStringView>>, offset: c_int, match_type: MatchType, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(QStringView subject, int offset = …, QRegularExpression::MatchType matchType = …) const.

Source

pub unsafe fn global_match_q_string_view_int( &self, subject: impl CastInto<Ref<QStringView>>, offset: c_int, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(QStringView subject, int offset = …) const.

Source

pub unsafe fn global_match_q_string_view( &self, subject: impl CastInto<Ref<QStringView>>, ) -> CppBox<QRegularExpressionMatchIterator>

Calls C++ function: QRegularExpressionMatchIterator QRegularExpression::globalMatch(QStringView subject) const.

Source

pub unsafe fn is_valid(&self) -> bool

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

Source

pub unsafe fn match_q_string_int_match_type_q_flags_match_option( &self, subject: impl CastInto<Ref<QString>>, offset: c_int, match_type: MatchType, match_options: QFlags<MatchOption>, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QString& subject, int offset = …, QRegularExpression::MatchType matchType = …, QFlags<QRegularExpression::MatchOption> matchOptions = …) const.

Source

pub unsafe fn match_q_string_ref_int_match_type_q_flags_match_option( &self, subject_ref: impl CastInto<Ref<QStringRef>>, offset: c_int, match_type: MatchType, match_options: QFlags<MatchOption>, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QStringRef& subjectRef, int offset = …, QRegularExpression::MatchType matchType = …, QFlags<QRegularExpression::MatchOption> matchOptions = …) const.

Source

pub unsafe fn match_q_string_view_int_match_type_q_flags_match_option( &self, subject: impl CastInto<Ref<QStringView>>, offset: c_int, match_type: MatchType, match_options: QFlags<MatchOption>, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(QStringView subject, int offset = …, QRegularExpression::MatchType matchType = …, QFlags<QRegularExpression::MatchOption> matchOptions = …) const.

Source

pub unsafe fn match_q_string_int_match_type( &self, subject: impl CastInto<Ref<QString>>, offset: c_int, match_type: MatchType, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QString& subject, int offset = …, QRegularExpression::MatchType matchType = …) const.

Source

pub unsafe fn match_q_string_int( &self, subject: impl CastInto<Ref<QString>>, offset: c_int, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QString& subject, int offset = …) const.

Source

pub unsafe fn match_q_string( &self, subject: impl CastInto<Ref<QString>>, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QString& subject) const.

Source

pub unsafe fn match_q_string_ref_int_match_type( &self, subject_ref: impl CastInto<Ref<QStringRef>>, offset: c_int, match_type: MatchType, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QStringRef& subjectRef, int offset = …, QRegularExpression::MatchType matchType = …) const.

Source

pub unsafe fn match_q_string_ref_int( &self, subject_ref: impl CastInto<Ref<QStringRef>>, offset: c_int, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QStringRef& subjectRef, int offset = …) const.

Source

pub unsafe fn match_q_string_ref( &self, subject_ref: impl CastInto<Ref<QStringRef>>, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QStringRef& subjectRef) const.

Source

pub unsafe fn match_q_string_view_int_match_type( &self, subject: impl CastInto<Ref<QStringView>>, offset: c_int, match_type: MatchType, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(QStringView subject, int offset = …, QRegularExpression::MatchType matchType = …) const.

Source

pub unsafe fn match_q_string_view_int( &self, subject: impl CastInto<Ref<QStringView>>, offset: c_int, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(QStringView subject, int offset = …) const.

Source

pub unsafe fn match_q_string_view( &self, subject: impl CastInto<Ref<QStringView>>, ) -> CppBox<QRegularExpressionMatch>

Calls C++ function: QRegularExpressionMatch QRegularExpression::match(QStringView subject) const.

Source

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

Calls C++ function: QStringList QRegularExpression::namedCaptureGroups() const.

Source

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

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

Source

pub unsafe fn new_2a( pattern: impl CastInto<Ref<QString>>, options: QFlags<PatternOption>, ) -> CppBox<QRegularExpression>

Calls C++ function: [constructor] void QRegularExpression::QRegularExpression(const QString& pattern, QFlags<QRegularExpression::PatternOption> options = …).

Source

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

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

Source

pub unsafe fn new_copy( re: impl CastInto<Ref<QRegularExpression>>, ) -> CppBox<QRegularExpression>

Calls C++ function: [constructor] void QRegularExpression::QRegularExpression(const QRegularExpression& re).

Source

pub unsafe fn optimize(&self)

Calls C++ function: void QRegularExpression::optimize() const.

Source

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

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

Source

pub unsafe fn pattern_error_offset(&self) -> c_int

Calls C++ function: int QRegularExpression::patternErrorOffset() const.

Source

pub unsafe fn pattern_options(&self) -> QFlags<PatternOption>

Calls C++ function: QFlags<QRegularExpression::PatternOption> QRegularExpression::patternOptions() const.

Source

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

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

Source

pub unsafe fn set_pattern_options(&self, options: QFlags<PatternOption>)

Calls C++ function: void QRegularExpression::setPatternOptions(QFlags<QRegularExpression::PatternOption> options).

Source

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

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

Source

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

Calls C++ function: static QString QRegularExpression::wildcardToRegularExpression(const QString& str).

Source

pub unsafe fn wildcard_to_regular_expression_q_string_view( str: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>

Calls C++ function: static QString QRegularExpression::wildcardToRegularExpression(QStringView str).

Trait Implementations§

Source§

impl CppDeletable for QRegularExpression

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QRegularExpression>> for QRegularExpression

Source§

fn eq(&self, re: &Ref<QRegularExpression>) -> bool

Calls C++ function: bool QRegularExpression::operator==(const QRegularExpression& re) 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.