Merge pull request #4360 from AlexHolly/string-ends_with

string ends_with
This commit is contained in:
Rémi Verschelde 2016-04-18 08:18:52 +02:00
commit df13fdf0e9
2 changed files with 194 additions and 0 deletions

View File

@ -246,6 +246,7 @@ static void _call_##m_type##_##m_method(Variant& r_ret,Variant& p_self,const Var
VCALL_LOCALMEM1R(String,match);
VCALL_LOCALMEM1R(String,matchn);
VCALL_LOCALMEM1R(String,begins_with);
VCALL_LOCALMEM1R(String,ends_with);
VCALL_LOCALMEM2R(String,replace);
VCALL_LOCALMEM2R(String,replacen);
VCALL_LOCALMEM2R(String,insert);
@ -1261,6 +1262,7 @@ _VariantCall::addfunc(Variant::m_vtype,Variant::m_ret,_SCS(#m_method),VCALL(m_cl
ADDFUNC1(STRING,BOOL,String,match,STRING,"expr",varray());
ADDFUNC1(STRING,BOOL,String,matchn,STRING,"expr",varray());
ADDFUNC1(STRING,BOOL,String,begins_with,STRING,"text",varray());
ADDFUNC1(STRING,BOOL,String,ends_with,STRING,"text",varray());
ADDFUNC2(STRING,STRING,String,replace,STRING,"what",STRING,"forwhat",varray());
ADDFUNC2(STRING,STRING,String,replacen,STRING,"what",STRING,"forwhat",varray());

View File

@ -3561,6 +3561,62 @@
<description>
</description>
</method>
<method name="set_collision_mask">
<argument index="0" name="collision_mask" type="int">
</argument>
<description>
</description>
</method>
<method name="get_collision_mask" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="set_layer_mask">
<argument index="0" name="layer_mask" type="int">
</argument>
<description>
</description>
</method>
<method name="get_layer_mask" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="set_collision_mask_bit">
<argument index="0" name="bit" type="int">
</argument>
<argument index="1" name="value" type="bool">
</argument>
<description>
</description>
</method>
<method name="get_collision_mask_bit" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="bit" type="int">
</argument>
<description>
</description>
</method>
<method name="set_layer_mask_bit">
<argument index="0" name="bit" type="int">
</argument>
<argument index="1" name="value" type="bool">
</argument>
<description>
</description>
</method>
<method name="get_layer_mask_bit" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="bit" type="int">
</argument>
<description>
</description>
</method>
<method name="set_monitorable">
<argument index="0" name="enable" type="bool">
</argument>
@ -9683,6 +9739,14 @@ This approximation makes straight segments between each point, then subdivides t
Return true if the dictionary has a given key.
</description>
</method>
<method name="has_all">
<return type="bool">
</return>
<argument index="0" name="values" type="Array">
</argument>
<description>
</description>
</method>
<method name="hash">
<return type="int">
</return>
@ -25065,6 +25129,50 @@ This method controls whether the position between two cached points is interpola
<description>
</description>
</method>
<method name="set_collision_mask">
<argument index="0" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="get_collision_mask" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="set_collision_mask_bit">
<argument index="0" name="bit" type="int">
</argument>
<argument index="1" name="value" type="bool">
</argument>
<description>
</description>
</method>
<method name="get_collision_mask_bit" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="bit" type="int">
</argument>
<description>
</description>
</method>
<method name="set_layer_mask_bit">
<argument index="0" name="bit" type="int">
</argument>
<argument index="1" name="value" type="bool">
</argument>
<description>
</description>
</method>
<method name="get_layer_mask_bit" qualifiers="const">
<return type="bool">
</return>
<argument index="0" name="bit" type="int">
</argument>
<description>
</description>
</method>
<method name="add_collision_exception_with">
<argument index="0" name="body" type="PhysicsBody">
</argument>
@ -25681,6 +25789,22 @@ This method controls whether the position between two cached points is interpola
<description>
</description>
</method>
<method name="area_set_layer_mask">
<argument index="0" name="area" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="area_set_collision_mask">
<argument index="0" name="area" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="area_set_param">
<argument index="0" name="area" type="RID">
</argument>
@ -25799,6 +25923,42 @@ This method controls whether the position between two cached points is interpola
<description>
</description>
</method>
<method name="body_set_layer_mask">
<argument index="0" name="body" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="body_get_layer_mask" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="body" type="RID">
</argument>
<argument index="1" name="arg1" type="int">
</argument>
<description>
</description>
</method>
<method name="body_set_collision_mask">
<argument index="0" name="body" type="RID">
</argument>
<argument index="1" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="body_get_collision_mask" qualifiers="const">
<return type="int">
</return>
<argument index="0" name="body" type="RID">
</argument>
<argument index="1" name="arg1" type="int">
</argument>
<description>
</description>
</method>
<method name="body_add_shape">
<argument index="0" name="body" type="RID">
</argument>
@ -28265,6 +28425,30 @@ This method controls whether the position between two cached points is interpola
<description>
</description>
</method>
<method name="set_layer_mask">
<argument index="0" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="get_layer_mask" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
<method name="set_type_mask">
<argument index="0" name="mask" type="int">
</argument>
<description>
</description>
</method>
<method name="get_type_mask" qualifiers="const">
<return type="int">
</return>
<description>
</description>
</method>
</methods>
<constants>
</constants>
@ -35079,6 +35263,14 @@ This method controls whether the position between two cached points is interpola
Return true if the string is empty.
</description>
</method>
<method name="ends_with">
<return type="bool">
</return>
<argument index="0" name="text" type="String">
</argument>
<description>
</description>
</method>
<method name="extension">
<return type="String">
</return>