PythonQt.QtCore.QByteArrayMatcher · declarations 001
Back to PythonQt.QtCore.QByteArrayMatcher
indexIn
indexIn(*args: Any, **kwargs: Any) -> int
X.indexIn(str, len, from) -> int
Supplemental documentation: Qt 5 reference:
int QByteArrayMatcher::indexIn(const QByteArray \&ba, int from \= 0) const
Searches the byte array ba, from byte position from (default 0, i.e. from the first byte), for the byte array pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in ba, or -1 if no match was found.
int QByteArrayMatcher::indexIn(const char *str, int len, int from \= 0) const
Searches the char string str, which has length len, from byte position from (default 0, i.e. from the first byte), for the byte array 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.
Upstream PySide2 reference signatures (binding differences may apply):
indexIn(self, ba: PySide2.QtCore.QByteArray, from_: int=...) -> int
indexIn(self, str: str, len: int, from_: int=...) -> int
Source: https://doc.qt.io/archives/qt-5.15/qbytearraymatcher.html#indexIn
pattern
pattern() -> Any
X.pattern() -> PythonQt.QtCore.QByteArray
Supplemental documentation: Qt 5 reference:
QByteArray QByteArrayMatcher::pattern() const
Returns the byte array pattern that this byte array matcher will search for.
See also setPattern().
Upstream PySide2 reference signatures (binding differences may apply):
pattern(self) -> PySide2.QtCore.QByteArray
Source: https://doc.qt.io/archives/qt-5.15/qbytearraymatcher.html#pattern
setPattern
setPattern(pattern: Any) -> None
X.setPattern(pattern)
Supplemental documentation: Qt 5 reference:
void QByteArrayMatcher::setPattern(const QByteArray \&pattern)
Sets the byte array that this byte array matcher will search for to pattern.
See also pattern() and indexIn().
Upstream PySide2 reference signatures (binding differences may apply):
setPattern(self, pattern: PySide2.QtCore.QByteArray) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbytearraymatcher.html#setPattern