parse_region

Function parse_region 

Source
fn parse_region(text: &str) -> Result<String, String>
Expand description

Parse one region string — a short code, a name, or a 0x literal. The string is what the device stores; deriving it here only proves it is within the bounds a device will accept, which rejects the empty element a stray comma leaves behind and anything past 24 octets.