Core.Web.Env
Class Field Summary | |
---|---|
Internal | _ua User-agent string, in lowercase. |
Internal | _uaAlpha The user agent string with all non-alpha character sequences replaced with single slashes and with leading/trailing slashes appended. |
Class Method Summary | |
---|---|
Internal | _init() Performs initial analysis of environment. |
Internal | _parseVersionInfo() Parses version information from user agent string. |
Internal | _testUAString() |
The major version is retrieved by getting the int between text and the first dot. The minor version is retrieved by getting the int between the first dot and the first non-numeric character that appears after the dot, or the end of the ua string (whichever comes first). If the ua string does not supply a minor version, the minor version is assumed to be 0.
ua
- the lower cased user agent stringsearchString
- the text that prefixes the version info (version info must be the first appearance of
this text in the ua string)