<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QStringMatcher Class Reference ## [[QtCore](index.htm) module] 該QStringMatcher類認為,可以快速匹配一個Unicode字符串的字符序列。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QString?pattern, Qt.CaseSensitivity?cs?=?Qt.CaseSensitive)` * `__init__ (self, QStringMatcher?other)` * `Qt.CaseSensitivity caseSensitivity (self)` * `int indexIn (self, QString?str, int?from?=?0)` * `QString pattern (self)` * `setCaseSensitivity (self, Qt.CaseSensitivity?cs)` * `setPattern (self, QString?pattern)` * * * ## Detailed Description 該QStringMatcher類認為,可以快速匹配一個Unicode字符串的字符序列。 當你有一個序列這個類是非常有用的[QChar](qchar.html)要反復對一些字符串(也許在一個循環)相匹配,或s當你要搜索的字符中多次相同的字符串相同的序列。使用一個匹配對象,[indexIn](qstringmatcher.html#indexIn)()比匹配的一個普通速度[QString](qstring.html)同[QString.indexOf](qstring.html#indexOf)()如果匹配的重復發生。這個類沒有提供任何好處,如果你正在做一次性的字符串匹配。 創建QStringMatcher與[QString](qstring.html)你要搜索的內容。然后調用[indexIn](qstringmatcher.html#indexIn)()對[QString](qstring.html)您要搜索。 * * * ## Method Documentation ``` QStringMatcher.__init__ (self) ``` 構造一個空字符串匹配,將不符合任何東西。通話[setPattern](qstringmatcher.html#setPattern)()給它一個模式來匹配。 ``` QStringMatcher.__init__ (self, QString?pattern, Qt.CaseSensitivity?cs?=?Qt.CaseSensitive) ``` 構造一個字符串匹配,將搜索_pattern_,有區分大小寫_cs_。 Call [indexIn](qstringmatcher.html#indexIn)()來執行搜索。 ``` QStringMatcher.__init__ (self, QStringMatcher?other) ``` 構造一個字符串匹配,將搜索者提到的模式_uc_用給定的_length_并通過指定的區分大小寫_cs_。 此功能被引入Qt的4.5 。 ``` Qt.CaseSensitivity QStringMatcher.caseSensitivity (self) ``` [ 返回區分大小寫設置該字符串匹配。 ](qt.html#CaseSensitivity-enum) [**See also**](qt.html#CaseSensitivity-enum) [setCaseSensitivity](qstringmatcher.html#setCaseSensitivity)( ) 。 ``` int QStringMatcher.indexIn (self, QString?str, int?from?=?0) ``` 搜索字符串_str_從字符位置_from_(默認為0 ,即從第一個字符) ,字符串[pattern](qstringmatcher.html#pattern)( ),這是設置在構造函數中,或在最近一次調用[setPattern](qstringmatcher.html#setPattern)( ) 。返回該位置處[pattern](qstringmatcher.html#pattern)( )匹配_str_,或-1,如果沒有找到匹配項。 **See also** [setPattern](qstringmatcher.html#setPattern)()和[setCaseSensitivity](qstringmatcher.html#setCaseSensitivity)( ) 。 ``` QString QStringMatcher.pattern (self) ``` 返回字符串的模式,這個字符串匹配器將搜索。 **See also** [setPattern](qstringmatcher.html#setPattern)( ) 。 ``` QStringMatcher.setCaseSensitivity (self, Qt.CaseSensitivity?cs) ``` 設置該字符串匹配的區分大小寫設置為_cs_。 **See also** [caseSensitivity](qstringmatcher.html#caseSensitivity)( )[setPattern](qstringmatcher.html#setPattern)()和[indexIn](qstringmatcher.html#indexIn)( ) 。 ``` QStringMatcher.setPattern (self, QString?pattern) ``` 設置該字符串匹配器將搜索到的字符串_pattern_。 **See also** [pattern](qstringmatcher.html#pattern)( )[setCaseSensitivity](qstringmatcher.html#setCaseSensitivity)()和[indexIn](qstringmatcher.html#indexIn)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看