catkin_ws/src/mavros/mavros/src/lib/mavros.cpp
static bool is_blacklisted(std::string &pl_name, ros::V_string &blacklist, ros::V_string &whitelist)
{
	for (auto &bl_pattern : blacklist) {
		if (pattern_match(bl_pattern, pl_name)) {
			for (auto &wl_pattern : whitelist) {
				if (pattern_match(wl_pattern, pl_name))
					return false;
			}

			return true;
		}
	}

	return false;
}
/**
 * @brief Checks that plugin blacklisted
 *
 * Operation algo:
 *
 *  1. if blacklist and whitelist is empty: load all
 *  2. if blacklist is empty and whitelist non empty: assume blacklist is ["*"]
 *  3. if blacklist non empty: usual blacklist behavior
 *  4. if whitelist non empty: override blacklist
 *
 * @note Issue #257.
 */
@brief Checks that plugin blacklisted
Operation algo.

1. if blacklist and whitelist is empty: load all
2. if blacklist is empty and whitelist non empty: assume blacklist is ["*"]
3. if blacklist non empty: usual blacklist behavior
4. if whitelist non empty: override blacklist


@brief Checks that plugin blacklisted Operation algo . 1 . if blacklist and whitelist is empty : load all 2 . if blacklist is empty and whitelist non empty : assume blacklist is [ " * " ] 3 . if blacklist non empty : usual blacklist behavior 4 . if whitelist non empty : override blacklist
static bool is_blacklisted(std::string &pl_name, ros::V_string &blacklist, ros::V_string &whitelist)
{
	for (auto &bl_pattern : blacklist) {
		if (pattern_match(bl_pattern, pl_name)) {
			for (auto &wl_pattern : whitelist) {
				if (pattern_match(wl_pattern, pl_name))
					return false;
			}
			return true;
		}
	}
	return false;
}
static bool is_blacklisted ( std :: string & pl_name , ros :: V_string & blacklist , ros :: V_string & whitelist ) { for ( auto & bl_pattern : blacklist ) { if ( pattern_match ( bl_pattern , pl_name ) ) { for ( auto & wl_pattern : whitelist ) { if ( pattern_match ( wl_pattern , pl_name ) ) return false ; } return true ; } } return false ; }
@brief Checks that plugin blacklisted
 Operation algo:
@brief Checks that plugin blacklisted Operation algo :