Garry's Mod Wiki

Revision Difference

string.StripExtension#511938

<function name="StripExtension" parent="string" type="libraryfunc">⤶ <description>Removes the extension of a path.</description>⤶ <realm>Shared and Menu</realm>⤶ <file line="129">lua/includes/extensions/string.lua</file>⤶ <args>⤶ <arg name="Inputstring" type="string">The path to change.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">Modifiedstring</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Demonstrates the use of string.StripExtension</description>⤶ <code>MsgN(string.StripExtension("garrysmod/lua/modules/string.lua"))</code>⤶ <output>"garrysmod/lua/modules/string"</output>⤶ ⤶ </example>