A device detection library that is used natively or by 51Degrees products

fiftyoneDegreesResultUserAgent Struct Reference

Detailed Description

Singular User-Agent result returned by a device detection process method.

This contains data describing the matched User-Agent string.

Data Fields

int uniqueHttpHeaderIndex
 Index in the headers collection of the data set to the HTTP header fieldi.e.
char * matchedUserAgent
 Pointer to the matched User-Agent if requested by setting the updateMatchedUserAgent config option to true, otherwise NULL.
size_t matchedUserAgentLength
 Number of characters in the matched User-Agent.
const char * targetUserAgent
 Pointer to the string containing the User-Agent for processing.
size_t targetUserAgentLength
 Number of characters in the target User-Agent.

Field Documentation

◆ matchedUserAgent

char* fiftyoneDegreesResultUserAgent::matchedUserAgent

Pointer to the matched User-Agent if requested by setting the updateMatchedUserAgent config option to true, otherwise NULL.

The memory allocated to the pointer is determined by the maxMatchedUserAgentLength member of the ConfigDeviceDetection structure. The final character will always be a null terminator once initialized by the ResultsUserAgentInit method

Examples
Hash/MatchMetrics.c.

◆ uniqueHttpHeaderIndex

int fiftyoneDegreesResultUserAgent::uniqueHttpHeaderIndex

Index in the headers collection of the data set to the HTTP header fieldi.e.

User-Agent


The documentation for this struct was generated from the following file: