Function parse_region_str

Source
pub fn parse_region_str(
    s: &str,
    region_ids: &HashSet<RegionID>,
) -> Result<HashSet<RegionID>>
Expand description

Parse a string of regions separated by semicolons into a vector of RegionID.

The string can be either “all” (case-insensitive), a single region, or a semicolon-separated list of regions (e.g. “GBR;FRA;USA” or “GBR; FRA; USA”)