pub fn detect_os(user_agent: &str) -> OperatingSystem
Detects the operating system from a user agent string.