89 const std::vector<PCB_LAYER_ID>& aAllLayerIds,
90 const std::function<wxString(
PCB_LAYER_ID )>& aNameGetter )
93 input.Replace(
", ",
"," );
95 std::vector<PCB_LAYER_ID> selectedLayerIds;
97 for(
const auto& layerID : aAllLayerIds )
99 wxString searchString = aNameGetter( layerID );
100 bool found = (
"," + input +
"," ).Contains(
"," + searchString +
"," );
104 selectedLayerIds.push_back( layerID );
108 return selectedLayerIds;