os
ModuleOperating system detection: the system's code, name and version.
Contents
use utopia_user_agent::detection::os::operating_system;Rust
pub fn operating_system(user_agent: &[u8]) -> OperatingSystem<'_>The operating system behind a user-agent string; every field is None
for an empty or unrecognised string.
Windows reports its release (7 for Windows NT 6.1) and macOS its
version up to the second dot; underscores in versions become dots.