\r\n

51Degrees Device Detection C/C++  4.4

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 field i.e. More...
char *  matchedUserAgent
Pointer to the matched User-Agent if requested by setting the updateMatchedUserAgent config option to true, otherwise NULL. More...
int  matchedUserAgentLength
Number of characters in the matched User-Agent.
const char *  targetUserAgent
Pointer to the string containing the User-Agent for processing.
int  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 field i.e.

User-Agent


The documentation for this struct was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/results-dd.h
On This Page