Matches desktop browsers. This UserAgentMatcher is unlike the rest in that it is does not use any database functions to find a matching device. If a device is not matched with this UserAgentMatcher, another one is assigned to match it using the database.
Attempts to match given user agent string to a device from the database by comparing less and less of the strings until a match is found (RIS, Reduction in String)
Tags:
return:
WURFL ID
access:
public
Parameters:
int
$tolerance
Tolerance, how many characters must match from left to right
Uses RIS to match the given User Agent $prefix, using the string length of the $prefix as the tolerance. Returns device ID $default if a match is not found.
Tags:
access:
public
Parameters:
string
$prefix
The substring of the desired user agent, ex: "Mozilla/5"
string
$default
This device ID will be returned if the match fails