Core.Web.Env
Class Method Summary | |
---|---|
Internal | _init() Performs initial analysis of environment. |
Internal | _parseVersionInfo() Parses version information from user agent string. |
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)