library/src/blockclass/BP-BlockClass.cc
// Tests to see if a regulare expression item is matched in a null
// pointer terminated array of strings.  Null pointers are not searched.
// This function returns 0 on error, and a string pointer position on
// success.  Notice: 0 index in ptr array is the first position (aka 1).
Tests to see if a regulare expression item is matched in a null
pointer terminated array of strings.  Null pointers are not searched.
This function returns 0 on error, and a string pointer position on
success.  Notice: 0 index in ptr array is the first position (aka 1).
Tests to see if a regulare expression item is matched in a null pointer terminated array of strings . Null pointers are not searched . This function returns 0 on error and a string pointer position on success . Notice : 0 index in ptr array is the first position ( aka 1 ) .
size_t Block::matchRegexpInBlacklist(char ** blacklist, char *item)
{
	if(!blacklist || !item)
		return 0;
	if(!blacklist[0])
		return 0;
	size_t blacklist_len = this->countNullTerminatedPtrArray(blacklist);
	return BP_StringMatchesBlacklistREGEXP(blacklist, blacklist_len, item);
}
size_t Block :: matchRegexpInBlacklist ( char * * blacklist , char * item ) { if ( ! blacklist || ! item ) return 0 ; if ( ! blacklist [ 0 ] ) return 0 ; size_t blacklist_len = this -> countNullTerminatedPtrArray ( blacklist ) ; return BP_StringMatchesBlacklistREGEXP ( blacklist , blacklist_len , item ) ; }
Tests to see if a regulare expression item is matched in a null
pointer terminated array of strings.
Tests to see if a regulare expression item is matched in a null pointer terminated array of strings .
// ensure we have items // get the length of the blacklist // run the blacklist testing algorithm