MCPcopy Create free account
hub / github.com/ActiveState/code / string_ends_in

Function string_ends_in

recipes/JavaScript/578517_Music_player/recipe-578517.js:222–235  ·  view source on GitHub ↗
(s_host,s_para)

Source from the content-addressed store, hash-verified

220}
221
222function string_ends_in(s_host,s_para)
223{
224 var b_result=false;
225 var sl=s_host.length;
226 var pl=s_para.length;
227 var ns=sl-pl;
228 var s_end_host="";
229 if (ns>=0)
230 {
231 s_end_host=s_host.substring(ns,pl+ns);
232 if (s_end_host==s_para) b_result=true;
233 }
234 return b_result;
235}
236
237function last_char_str(s)
238{

Callers 3

change_soundFunction · 0.85
recipe-578517.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected