Skip to content

PythonQt.QtCore.QStringMatcher · declarations 001

Back to PythonQt.QtCore.QStringMatcher

caseSensitivity

caseSensitivity() -> Any

X.caseSensitivity()

Supplemental documentation: Qt 5 reference:

Qt::CaseSensitivity QStringMatcher::caseSensitivity() const

Returns the case sensitivity setting for this string matcher.

See also setCaseSensitivity().

Source: https://doc.qt.io/archives/qt-5.15/qstringmatcher.html#caseSensitivity

indexIn

indexIn(*args: Any, **kwargs: Any) -> Any

X.indexIn(str, from) -> int

Supplemental documentation: Qt 5 reference:

int QStringMatcher::indexIn(const QString \&str, int from \= 0) const

Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

See also setPattern() and setCaseSensitivity().

int QStringMatcher::indexIn(const QChar *str, int length, int from \= 0) const

Searches the string starting at str (of length length) from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

This function was introduced in Qt 4.5.

See also setPattern() and setCaseSensitivity().

int QStringMatcher::indexIn(QStringView, int) const

Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.

This function was introduced in Qt 5.14.

See also setPattern() and setCaseSensitivity().

Source: https://doc.qt.io/archives/qt-5.15/qstringmatcher.html#indexIn

pattern

pattern() -> str

X.pattern() -> str

Supplemental documentation: Qt 5 reference:

QString QStringMatcher::pattern() const

Returns the string pattern that this string matcher will search for.

See also setPattern().

Source: https://doc.qt.io/archives/qt-5.15/qstringmatcher.html#pattern

setCaseSensitivity

setCaseSensitivity(cs: Any) -> Any

X.setCaseSensitivity(cs)

Supplemental documentation: Qt 5 reference:

void QStringMatcher::setCaseSensitivity(Qt::CaseSensitivity cs)

Sets the case sensitivity setting of this string matcher to cs.

See also caseSensitivity(), setPattern(), and indexIn().

Source: https://doc.qt.io/archives/qt-5.15/qstringmatcher.html#setCaseSensitivity

setPattern

setPattern(pattern: Any) -> Any

X.setPattern(pattern)

Supplemental documentation: Qt 5 reference:

void QStringMatcher::setPattern(const QString \&pattern)

Sets the string that this string matcher will search for to pattern.

See also pattern(), setCaseSensitivity(), and indexIn().

Source: https://doc.qt.io/archives/qt-5.15/qstringmatcher.html#setPattern