From a379ed56ea2b605802534a5a3c25c244fc684d18 Mon Sep 17 00:00:00 2001 From: Alexander Holland Date: Sun, 17 Apr 2016 23:49:21 +0200 Subject: [PATCH] string ends_with --- core/variant_call.cpp | 2 + doc/base/classes.xml | 192 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 194 insertions(+) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index a4963f0d1f6..f3bf8f9e476 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -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()); diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 23b699ecb06..b77a1c29a89 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -3561,6 +3561,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -9683,6 +9739,14 @@ This approximation makes straight segments between each point, then subdivides t Return true if the dictionary has a given key. + + + + + + + + @@ -25065,6 +25129,50 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -25681,6 +25789,22 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + @@ -25799,6 +25923,42 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -28265,6 +28425,30 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + @@ -35079,6 +35263,14 @@ This method controls whether the position between two cached points is interpola Return true if the string is empty. + + + + + + + +