This module contains the supporting classes for the Two Step Analysis
user agent algorithm that is used as the primary way to match user agents
with the Java API for the WURFL.
A description of the way the following source is intended to work can
be found within the source for the original Java API implementation here:
http://sourceforge.net/projects/wurfl/files/WURFL Java API/
Version:
1.2.1
Author:
Armand Lynch <lyncha@users.sourceforge.net>
Copyright:
Copyright 2011, Armand Lynch
License:
LGPL
|
is_typeof_browser(user_agent,
browsers=None) |
source code
|
|
|
ordinal_index(target,
needle=u' ' ,
ordinal=1,
start_index=0) |
source code
|
|
|
|
|
indexof_or_length(target,
needle=u' ' ,
position=1,
start_index=0) |
source code
|
|
|
first_space(target,
needle=u' ' ,
position=1,
start_index=0) |
source code
|
|
|
__doc__ = ...
|
|
__url__ = ' http://celljam.net/ '
|
|
mobile_browsers = [ u' cldc ' , u' symbian ' , u' midp ' , u' j2me ' , u' mo ...
|
|
desktop_browsers = [ u' slcc1 ' , u' .net clr ' , u' trident/4 ' , u' med ...
|
|
is_mobile_browser = partial(is_typeof_browser, browsers= mobil...
|
|
is_desktop_browser = partial(is_typeof_browser, browsers= desk...
|
|
first_slash = partial(indexof_or_length, needle= u"/")
|
|
second_slash = partial(indexof_or_length, needle= u"/", positi...
|
|
first_semi_colon = partial(indexof_or_length, needle= u";")
|
|
third_space = partial(indexof_or_length, position= 3)
|
|
__package__ = ' pywurfl.algorithms.wurfl '
|