format_region

Function format_region 

Source
pub fn format_region(region: &str) -> String
Expand description

Render one region as the operator wrote it, with the code the forwarding filter actually compares — a hashed name is otherwise unrecognizable in a packet capture.

A short code is shown uppercase whatever case it was written in, which is how airport and country codes are written everywhere else. A name is the operator’s to capitalize and is left alone.