src/trie/Provider.cpp
Match* Provider::getMatchWithTolerances(
	const char* userAgent,
	int userAgentLength,
	int drift,
	int difference) {
	fiftyoneDegreesDeviceOffsets* offsets =
		fiftyoneDegreesProviderCreateDeviceOffsets(&provider);
	offsets->size = 1;
	fiftyoneDegreesSetDeviceOffsetFromArrayWithTolerances(
		provider.active->dataSet,
		userAgent,
		userAgentLength,
		0,
		offsets->firstOffset,
		drift,
		difference);
	Match *result = new Match(offsets);
	return result;
}
/**
* Completes device detection for the User-Agent provided.
* @param User-Agent whose results need to be obtained
* @param userAgentLength of the User-Agent.
* @param drift to extend the search range by.
* @param difference to allow in hash values.
* @returns new Match instance configured to provide access to the results
*/
Completes device detection for the User-Agent provided.
Completes device detection for the User - Agent provided .
Match* Provider::getMatchWithTolerances(
	const char* userAgent,
	int userAgentLength,
	int drift,
	int difference) {
	fiftyoneDegreesDeviceOffsets* offsets =
		fiftyoneDegreesProviderCreateDeviceOffsets(&provider);
	offsets->size = 1;
	fiftyoneDegreesSetDeviceOffsetFromArrayWithTolerances(
		provider.active->dataSet,
		userAgent,
		userAgentLength,
		0,
		offsets->firstOffset,
		drift,
		difference);
	Match *result = new Match(offsets);
	return result;
}
Match * Provider :: getMatchWithTolerances ( const char * userAgent , int userAgentLength , int drift , int difference ) { fiftyoneDegreesDeviceOffsets * offsets = fiftyoneDegreesProviderCreateDeviceOffsets ( & provider ) ; offsets -> size = 1 ; fiftyoneDegreesSetDeviceOffsetFromArrayWithTolerances ( provider . active -> dataSet , userAgent , userAgentLength , 0 , offsets -> firstOffset , drift , difference ) ; Match * result = new Match ( offsets ) ; return result ; }
Completes device detection for the User-Agent provided.
Completes device detection for the User - Agent provided .