Sophie

Sophie

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

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

<class name="QStringMatcher" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStringMatcher.html#QStringMatcher(com.trolltech.qt.core.QStringMatcher)&quot;&gt;&lt;tt&gt;QStringMatcher&lt;/tt&gt;&lt;/a&gt; class holds a sequence of characters that can be quickly matched in a Unicode string.&lt;/p&gt;
&lt;p&gt;This class is useful when you have a sequence of &lt;tt&gt;QChar&lt;/tt&gt;s 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 &lt;a href=&quot;QStringMatcher.html#indexIn(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; is faster than matching a plain &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; with QString::indexOf() if repeated matching takes place. This class offers no benefit if you are doing one-off string matches.&lt;/p&gt;
&lt;p&gt;Create the &lt;a href=&quot;QStringMatcher.html#QStringMatcher(com.trolltech.qt.core.QStringMatcher)&quot;&gt;&lt;tt&gt;QStringMatcher&lt;/tt&gt;&lt;/a&gt; with the &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; you want to search for. Then call &lt;a href=&quot;QStringMatcher.html#indexIn(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; on the &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; that you want to search.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArrayMatcher.html&quot;&gt;&lt;tt&gt;QByteArrayMatcher&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRegExp.html&quot;&gt;&lt;tt&gt;QRegExp&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStringMatcher()" doc="/**
&lt;p&gt;Constructs an empty string matcher that won't match anything. Call &lt;a href=&quot;QStringMatcher.html#setPattern(java.lang.String)&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 QStringMatcher(java.lang.String pattern, com.trolltech.qt.core.Qt.CaseSensitivity cs)" doc="/**
&lt;p&gt;Constructs a string matcher that will search for &lt;tt&gt;pattern&lt;/tt&gt;, with case sensitivity &lt;tt&gt;cs&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Call &lt;a href=&quot;QStringMatcher.html#indexIn(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; to perform a search.&lt;/p&gt;
 */"/>
    <method name="public QStringMatcher(java.lang.String pattern)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QStringMatcher.html#QStringMatcher(com.trolltech.qt.core.QStringMatcher)&quot;&gt;&lt;tt&gt;QStringMatcher&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pattern&lt;/tt&gt;, Qt::CaseSensitive). */"/>
    <method name="public QStringMatcher(com.trolltech.qt.core.QStringMatcher other)" doc="/**
&lt;p&gt;Copies the &lt;tt&gt;other&lt;/tt&gt; string matcher to this string matcher.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.CaseSensitivity caseSensitivity()" doc="/**
&lt;p&gt;Returns the case sensitivity setting for this string matcher.&lt;/p&gt;

@see &lt;a href=&quot;QStringMatcher.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int indexIn(java.lang.String str, int from)" doc="/**
&lt;p&gt;Searches the string &lt;tt&gt;str&lt;/tt&gt; from character position &lt;tt&gt;from&lt;/tt&gt; (default 0, i.e&amp;#x2e; from the first character), for the string &lt;a href=&quot;QStringMatcher.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;QStringMatcher.html#setPattern(java.lang.String)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt;. Returns the position where the &lt;a href=&quot;QStringMatcher.html#pattern()&quot;&gt;&lt;tt&gt;pattern&lt;/tt&gt;&lt;/a&gt; matched in &lt;tt&gt;str&lt;/tt&gt;, or -1 if no match was found.&lt;/p&gt;

@see &lt;a href=&quot;QStringMatcher.html#setPattern(java.lang.String)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStringMatcher.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int indexIn(java.lang.String str)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QStringMatcher.html#indexIn(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;str&lt;/tt&gt;, 0). */"/>
    <method name="public final java.lang.String pattern()" doc="/**
&lt;p&gt;Returns the string pattern that this string matcher will search for.&lt;/p&gt;

@see &lt;a href=&quot;QStringMatcher.html#setPattern(java.lang.String)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity cs)" doc="/**
&lt;p&gt;Sets the case sensitivity setting of this string matcher to &lt;tt&gt;cs&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStringMatcher.html#caseSensitivity()&quot;&gt;&lt;tt&gt;caseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStringMatcher.html#setPattern(java.lang.String)&quot;&gt;&lt;tt&gt;setPattern&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStringMatcher.html#indexIn(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPattern(java.lang.String pattern)" doc="/**
&lt;p&gt;Sets the string that this string matcher will search for to &lt;tt&gt;pattern&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStringMatcher.html#pattern()&quot;&gt;&lt;tt&gt;pattern&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStringMatcher.html#setCaseSensitivity(com.trolltech.qt.core.Qt.CaseSensitivity)&quot;&gt;&lt;tt&gt;setCaseSensitivity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStringMatcher.html#indexIn(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexIn&lt;/tt&gt;&lt;/a&gt; */"/>
</class>