pub struct QRegularExpression { /* private fields */ }Expand description
C++ class: QRegularExpression.
Implementations§
Source§impl QRegularExpression
impl QRegularExpression
Sourcepub unsafe fn anchored_pattern_q_string(
expression: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
pub unsafe fn anchored_pattern_q_string( expression: impl CastInto<Ref<QString>>, ) -> CppBox<QString>
Calls C++ function: static QString QRegularExpression::anchoredPattern(const QString& expression).
Sourcepub unsafe fn anchored_pattern_q_string_view(
expression: impl CastInto<Ref<QStringView>>,
) -> CppBox<QString>
pub unsafe fn anchored_pattern_q_string_view( expression: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>
Calls C++ function: static QString QRegularExpression::anchoredPattern(QStringView expression).
Sourcepub unsafe fn capture_count(&self) -> c_int
pub unsafe fn capture_count(&self) -> c_int
Calls C++ function: int QRegularExpression::captureCount() const.
Sourcepub unsafe fn copy_from(
&self,
re: impl CastInto<Ref<QRegularExpression>>,
) -> Ref<QRegularExpression>
pub unsafe fn copy_from( &self, re: impl CastInto<Ref<QRegularExpression>>, ) -> Ref<QRegularExpression>
Calls C++ function: QRegularExpression& QRegularExpression::operator=(const QRegularExpression& re).
Sourcepub unsafe fn error_string(&self) -> CppBox<QString>
pub unsafe fn error_string(&self) -> CppBox<QString>
Calls C++ function: QString QRegularExpression::errorString() const.
Sourcepub unsafe fn escape_q_string(
str: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
pub unsafe fn escape_q_string( str: impl CastInto<Ref<QString>>, ) -> CppBox<QString>
Calls C++ function: static QString QRegularExpression::escape(const QString& str).
Sourcepub unsafe fn escape_q_string_view(
str: impl CastInto<Ref<QStringView>>,
) -> CppBox<QString>
pub unsafe fn escape_q_string_view( str: impl CastInto<Ref<QStringView>>, ) -> CppBox<QString>
Calls C++ function: static QString QRegularExpression::escape(QStringView str).
Sourcepub 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>
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.
Sourcepub 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>
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.
Sourcepub 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>
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.
Sourcepub unsafe fn global_match_q_string_int_match_type(
&self,
subject: impl CastInto<Ref<QString>>,
offset: c_int,
match_type: MatchType,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn global_match_q_string_int(
&self,
subject: impl CastInto<Ref<QString>>,
offset: c_int,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn global_match_q_string(
&self,
subject: impl CastInto<Ref<QString>>,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub 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>
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.
Sourcepub unsafe fn global_match_q_string_ref_int(
&self,
subject_ref: impl CastInto<Ref<QStringRef>>,
offset: c_int,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn global_match_q_string_ref(
&self,
subject_ref: impl CastInto<Ref<QStringRef>>,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn global_match_q_string_view_int_match_type(
&self,
subject: impl CastInto<Ref<QStringView>>,
offset: c_int,
match_type: MatchType,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn global_match_q_string_view_int(
&self,
subject: impl CastInto<Ref<QStringView>>,
offset: c_int,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn global_match_q_string_view(
&self,
subject: impl CastInto<Ref<QStringView>>,
) -> CppBox<QRegularExpressionMatchIterator>
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.
Sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool QRegularExpression::isValid() const.
Sourcepub 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>
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.
Sourcepub 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>
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.
Sourcepub 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>
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.
Sourcepub unsafe fn match_q_string_int_match_type(
&self,
subject: impl CastInto<Ref<QString>>,
offset: c_int,
match_type: MatchType,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string_int(
&self,
subject: impl CastInto<Ref<QString>>,
offset: c_int,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string(
&self,
subject: impl CastInto<Ref<QString>>,
) -> CppBox<QRegularExpressionMatch>
pub unsafe fn match_q_string( &self, subject: impl CastInto<Ref<QString>>, ) -> CppBox<QRegularExpressionMatch>
Calls C++ function: QRegularExpressionMatch QRegularExpression::match(const QString& subject) const.
Sourcepub unsafe fn match_q_string_ref_int_match_type(
&self,
subject_ref: impl CastInto<Ref<QStringRef>>,
offset: c_int,
match_type: MatchType,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string_ref_int(
&self,
subject_ref: impl CastInto<Ref<QStringRef>>,
offset: c_int,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string_ref(
&self,
subject_ref: impl CastInto<Ref<QStringRef>>,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string_view_int_match_type(
&self,
subject: impl CastInto<Ref<QStringView>>,
offset: c_int,
match_type: MatchType,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string_view_int(
&self,
subject: impl CastInto<Ref<QStringView>>,
offset: c_int,
) -> CppBox<QRegularExpressionMatch>
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.
Sourcepub unsafe fn match_q_string_view(
&self,
subject: impl CastInto<Ref<QStringView>>,
) -> CppBox<QRegularExpressionMatch>
pub unsafe fn match_q_string_view( &self, subject: impl CastInto<Ref<QStringView>>, ) -> CppBox<QRegularExpressionMatch>
Calls C++ function: QRegularExpressionMatch QRegularExpression::match(QStringView subject) const.
Sourcepub unsafe fn named_capture_groups(&self) -> CppBox<QStringList>
pub unsafe fn named_capture_groups(&self) -> CppBox<QStringList>
Calls C++ function: QStringList QRegularExpression::namedCaptureGroups() const.
Sourcepub unsafe fn new_0a() -> CppBox<QRegularExpression>
pub unsafe fn new_0a() -> CppBox<QRegularExpression>
Calls C++ function: [constructor] void QRegularExpression::QRegularExpression().
Sourcepub unsafe fn new_2a(
pattern: impl CastInto<Ref<QString>>,
options: QFlags<PatternOption>,
) -> CppBox<QRegularExpression>
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 = …).
Sourcepub unsafe fn new_1a(
pattern: impl CastInto<Ref<QString>>,
) -> CppBox<QRegularExpression>
pub unsafe fn new_1a( pattern: impl CastInto<Ref<QString>>, ) -> CppBox<QRegularExpression>
Calls C++ function: [constructor] void QRegularExpression::QRegularExpression(const QString& pattern).
Sourcepub unsafe fn new_copy(
re: impl CastInto<Ref<QRegularExpression>>,
) -> CppBox<QRegularExpression>
pub unsafe fn new_copy( re: impl CastInto<Ref<QRegularExpression>>, ) -> CppBox<QRegularExpression>
Calls C++ function: [constructor] void QRegularExpression::QRegularExpression(const QRegularExpression& re).
Sourcepub unsafe fn pattern(&self) -> CppBox<QString>
pub unsafe fn pattern(&self) -> CppBox<QString>
Calls C++ function: QString QRegularExpression::pattern() const.
Sourcepub unsafe fn pattern_error_offset(&self) -> c_int
pub unsafe fn pattern_error_offset(&self) -> c_int
Calls C++ function: int QRegularExpression::patternErrorOffset() const.
Sourcepub unsafe fn pattern_options(&self) -> QFlags<PatternOption>
pub unsafe fn pattern_options(&self) -> QFlags<PatternOption>
Calls C++ function: QFlags<QRegularExpression::PatternOption> QRegularExpression::patternOptions() const.
Sourcepub unsafe fn set_pattern(&self, pattern: impl CastInto<Ref<QString>>)
pub unsafe fn set_pattern(&self, pattern: impl CastInto<Ref<QString>>)
Calls C++ function: void QRegularExpression::setPattern(const QString& pattern).
Sourcepub unsafe fn set_pattern_options(&self, options: QFlags<PatternOption>)
pub unsafe fn set_pattern_options(&self, options: QFlags<PatternOption>)
Calls C++ function: void QRegularExpression::setPatternOptions(QFlags<QRegularExpression::PatternOption> options).
Sourcepub unsafe fn swap(&self, other: impl CastInto<Ref<QRegularExpression>>)
pub unsafe fn swap(&self, other: impl CastInto<Ref<QRegularExpression>>)
Calls C++ function: void QRegularExpression::swap(QRegularExpression& other).
Sourcepub unsafe fn wildcard_to_regular_expression_q_string(
str: impl CastInto<Ref<QString>>,
) -> CppBox<QString>
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).
Sourcepub unsafe fn wildcard_to_regular_expression_q_string_view(
str: impl CastInto<Ref<QStringView>>,
) -> CppBox<QString>
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).