Revision Difference
string.StartWith#515961
<function name="StartWith" parent="string" type="libraryfunc">
<description>Returns whether or not the first string starts with the second.</description>
<realm>Shared and Menu</realm>
<file line="314">lua/includes/extensions/string.lua</file>
<args>
<arg name="inputStr" type="string">String to check.</arg>
<arg name="start" type="string">String to check with.</arg>
</args>
<rets>
<ret name="" type="boolean">Whether the first string starts with the second.</ret>
</rets>
</function>
⤶
{{Example⤶
| Description = Demonstrates the use of string.StartWith⤶
| Output = true⤶
| Code = print(string.StartWith("hello there", "hell"))⤶
}}⤶
<example>⤶
<description>Demonstrates the use of string.StartWith</description>⤶
<output>true</output>⤶
<code>print(string.StartWith("hello there", "hell"))</code>⤶
⤶
</example>