madrona :: common :: uaparser :: parser :: UserAgentParser :: Class UserAgentParser
[hide private]

Class UserAgentParser

source code

object --+
         |
        UserAgentParser

Instance Methods [hide private]
 
__init__(self, pattern, family_replacement=None, v1_replacement=None)
Initialize UserAgentParser.
source code
 
MatchSpans(self, user_agent_string) source code
 
Parse(self, user_agent_string) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pattern, family_replacement=None, v1_replacement=None)
(Constructor)

source code 
Initialize UserAgentParser.

Args:
    pattern: a regular expression string
    family_replacement: a string to override the matched family (optional)
    v1_replacement: a string to override the matched v1 (optional)

Overrides: object.__init__