Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1935

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QByteArrayMatcher" doc="/**
&lt;p&gt;The &lt;a href=&quot;QByteArrayMatcher.html#QByteArrayMatcher(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QByteArrayMatcher&lt;/tt&gt;&lt;/a&gt; class holds a sequence of bytes that can be quickly matched in a byte array.&lt;/p&gt;
&lt;p&gt;This class is useful when you have a sequence of bytes that you want to repeatedly match against some byte arrays (perhaps in a loop), or when you want to search for the same sequence of bytes multiple times in the same byte array. Using a matcher object and &lt;a href=&quot;QByteArrayMatcher.html#indexIn(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; is faster than matching a plain &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; with QByteArray::indexOf() if repeated matching takes place. This class offers no benefit if you are doing one-off byte array matches.&lt;/p&gt;
&lt;p&gt;Create the &lt;a href=&quot;QByteArrayMatcher.html#QByteArrayMatcher(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;QByteArrayMatcher&lt;/tt&gt;&lt;/a&gt; with the &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; you want to search for. Then call &lt;a href=&quot;QByteArrayMatcher.html#indexIn(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; on the &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; that you want to search.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStringMatcher.html&quot;&gt;&lt;tt&gt;QStringMatcher&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QByteArrayMatcher(com.trolltech.qt.core.QByteArrayMatcher other)" doc="/**
&lt;p&gt;Copies the &lt;tt&gt;other&lt;/tt&gt; byte array matcher to this byte array matcher.&lt;/p&gt;
 */"/>
    <method name="public QByteArrayMatcher()" doc="/**
&lt;p&gt;Constructs an empty byte array matcher that won't match anything. Call &lt;a href=&quot;QByteArrayMatcher.html#setPattern(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt; to give it a pattern to match.&lt;/p&gt;
 */"/>
    <method name="public QByteArrayMatcher(com.trolltech.qt.core.QByteArray pattern)" doc="/**
&lt;p&gt;Constructs a byte array matcher that will search for &lt;tt&gt;pattern&lt;/tt&gt;. Call &lt;a href=&quot;QByteArrayMatcher.html#indexIn(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; to perform a search.&lt;/p&gt;
 */"/>
    <method name="public final int indexIn(com.trolltech.qt.core.QByteArray ba, int from)" doc="/**
&lt;p&gt;Searches the byte array &lt;tt&gt;ba&lt;/tt&gt;, from byte position &lt;tt&gt;from&lt;/tt&gt; (default 0, i.e&amp;#x2e; from the first byte), for the byte array &lt;a href=&quot;QByteArrayMatcher.html#pattern()&quot;&gt;&lt;tt&gt;pattern&lt;/tt&gt;&lt;/a&gt; that was set in the constructor or in the most recent call to &lt;a href=&quot;QByteArrayMatcher.html#setPattern(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt;. Returns the position where the &lt;a href=&quot;QByteArrayMatcher.html#pattern()&quot;&gt;&lt;tt&gt;pattern&lt;/tt&gt;&lt;/a&gt; matched in &lt;tt&gt;ba&lt;/tt&gt;, or -1 if no match was found.&lt;/p&gt;
 */"/>
    <method name="public final int indexIn(com.trolltech.qt.core.QByteArray ba)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArrayMatcher.html#indexIn(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;ba&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.core.QByteArray pattern()" doc="/**
&lt;p&gt;Returns the byte array pattern that this byte array matcher will search for.&lt;/p&gt;

@see &lt;a href=&quot;QByteArrayMatcher.html#setPattern(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPattern(com.trolltech.qt.core.QByteArray pattern)" doc="/**
&lt;p&gt;Sets the byte array that this byte array matcher will search for to &lt;tt&gt;pattern&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QByteArrayMatcher.html#pattern()&quot;&gt;&lt;tt&gt;pattern&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArrayMatcher.html#indexIn(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; */"/>
</class>