Utilities to parse user-agent strings.