PythonQt.Qt.QStringMatcher
QStringMatcher
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
This class is useful when you have a sequence of QChars that you want to repeatedly match against some strings (perhaps in a loop), or when you want to search for the same sequence of characters multiple times in the same string. Using a matcher object and indexIn() is faster than matching a plain QString with QString::indexOf() if repeated matching takes place. This class offers no benefit if you are doing one-off string matches.
Create the QStringMatcher with the QString you want to search for. Then call indexIn() on the QString that you want to search.
Source: https://doc.qt.io/archives/qt-5.15/qstringmatcher.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
caseSensitivity |
function | (self) -> Any |
Returns the case sensitivity setting for this string matcher. (shared captured text) |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
indexIn |
function | (self, *args: Any, **kwargs: Any) -> Any |
X.indexIn(str, from) -> int (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
pattern |
function | (self) -> str |
X.pattern() -> str (shared captured text) |
setCaseSensitivity |
function | (self, cs: Any) -> Any |
Sets the case sensitivity setting of this string matcher to cs. (shared captured text) |
setPattern |
function | (self, pattern: Any) -> Any |
Sets the string that this string matcher will search for to pattern. (shared captured text) |