DEE

数据交换


[是否以指定字符串开头]

<p><strong>方法签名:</strong> </p> <p><code>str_startWith(str,prefix,isIgnoreCase)</code></p> <p><strong>简要描述:</strong> </p> <ul> <li>是否以指定字符串开头</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">str</td> <td style="text-align: left;">String</td> <td style="text-align: left;">指定需要判断的字符串</td> </tr> <tr> <td style="text-align: left;">prifix</td> <td style="text-align: left;">String</td> <td style="text-align: left;">判断的前缀</td> </tr> <tr> <td style="text-align: left;">isIgnoreCase</td> <td style="text-align: left;">boolean</td> <td style="text-align: left;">判断时是否忽略大小写</td> </tr> </tbody> </table> <p><strong>返回值说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">类型</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">boolean</td> <td style="text-align: left;">返回true或者false</td> </tr> </tbody> </table> <p><strong>使用例子</strong></p> <pre><code>String str = &amp;quot;Hello world&amp;quot;; String prefix = &amp;quot;hello&amp;quot;; println(str_startWith(str,prefix,true));</code></pre> <p><strong>输出结果</strong></p> <pre><code>true</code></pre> <p><strong>备注</strong> </p> <ul> <li>无</li> </ul>

页面列表

ITEM_HTML