Core.Web
Env
Class Hierarchy:

Provides information about the web browser environment.

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()

Class Method Detail
_init
Performs initial analysis of environment. Automatically invoked when Core.Web module is initialized.

_parseVersionInfo
Parses version information from user agent string. The text argument specifies the string that prefixes the version info in the ua string (ie 'version/' for Safari for example).

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.

Parameters:
ua - the lower cased user agent string
searchString - the text that prefixes the version info (version info must be the first appearance of this text in the ua string)

_testUAString