external/bbop.js
function _is_string_embedded(target_str, base_str, add_str){

	// Walk through all of ways of splitting base_str and add
	// add_str in there to see if we get the target_str.
	var retval = false;
	for(var si = 0; si <= base_str.length; si++ ){
	    
	    var car = base_str.substr(0, si);
	    var cdr = base_str.substr(si, base_str.length);
	    //bark(car + "|" + add_str + "|" + cdr);
	    if( car + add_str + cdr == target_str){
		retval = true;
		break;
	    }
	}
	return retval;
    }
function _is_string_embedded(target_str, base_str, add_str){

	// Walk through all of ways of splitting base_str and add
	// add_str in there to see if we get the target_str.
	var retval = false;
	for(var si = 0; si <= base_str.length; si++ ){
	    
	    var car = base_str.substr(0, si);
	    var cdr = base_str.substr(si, base_str.length);
	    //bark(car + "|" + add_str + "|" + cdr);
	    if( car + add_str + cdr == target_str){
		retval = true;
		break;
	    }
	}
	return retval;
    }
function _is_string_embedded ( target_str , base_str , add_str ) { // Walk through all of ways of splitting base_str and add // add_str in there to see if we get the target_str. var retval = false ; for ( var si = 0 ; si <= base_str . length ; si ++ ) { var car = base_str . substr ( 0 , si ) ; var cdr = base_str . substr ( si , base_str . length ) ; //bark(car + "|" + add_str + "|" + cdr); if ( car + add_str + cdr == target_str ) { retval = true ; break ; } } return retval ; }
Basically asking if you can make the target string from the base string with the add_str added into it somewhere. Strange, but another way of looking at URL creation in some cases.
Basically asking if you can make the target string from the base string with the add_str added into it somewhere . Strange but another way of looking at URL creation in some cases .