library/src/blockclass/subclasses/BP_StringUtils.cc
// When matches are made in the same string.  This can determine if match_inner, is between match_outer.  Useful for handling
// quoted nested data.
When matches are made in the same string.  This can determine if match_inner, is between match_outer.  Useful for handling
quoted nested data.
When matches are made in the same string . This can determine if match_inner is between match_outer . Useful for handling quoted nested data .
bool BP_StringUtils::MatchIsWithinOtherMatch(P_BP_REGEX_MATCH_INFO match_outer, P_BP_REGEX_MATCH_INFO match_inner)
{
	if(!match_outer || !match_inner)
		return false;
	if(
			(match_outer->matches->rm_so >= match_inner->matches->rm_so) &&
			(match_outer->matches->rm_eo <= match_inner->matches->rm_eo)
	)
	{
		return true;
	}
	return false;
}
bool BP_StringUtils :: MatchIsWithinOtherMatch ( P_BP_REGEX_MATCH_INFO match_outer , P_BP_REGEX_MATCH_INFO match_inner ) { if ( ! match_outer || ! match_inner ) return false ; if ( ( match_outer -> matches -> rm_so >= match_inner -> matches -> rm_so ) && ( match_outer -> matches -> rm_eo <= match_inner -> matches -> rm_eo ) ) { return true ; } return false ; }
When matches are made in the same string.
When matches are made in the same string .
// return failure if the matches don't exist // This is the check done to check if a string exists within a string. // return false in the case that the string is not found within a string