src/trie/Provider.cpp
void Provider::buildArray(
		fiftyoneDegreesDeviceOffsets *offsets,
		map<string, vector<string> > *result) {
	int requiredPropertyIndex;
	string *propertyName;
	for (requiredPropertyIndex = 0;
		requiredPropertyIndex <
		fiftyoneDegreesGetRequiredPropertiesCount(provider.active->dataSet);
        requiredPropertyIndex++) {
        const char *value = fiftyoneDegreesGetValuePtrFromOffsets(
			provider.active->dataSet,
        	offsets,
        	requiredPropertyIndex);
        if (value != NULL) {
            propertyName = new string(
				fiftyoneDegreesGetRequiredPropertiesNames(
					provider.active->dataSet)[requiredPropertyIndex]);
            vector<string> *values = &(result->operator[](*propertyName));
            values->insert(values->begin(), string(value));
        }
	}
}
/**
 * Completes the result map with all properties supported by the Provider and
 * their values for the detection results contained in the device offsets
 * provided.
 * @param offsets for HTTP headers and devices
 * @param result to place the properties and values
 */
Completes the result map with all properties supported by the Provider and
their values for the detection results contained in the device offsets
provided.
@param offsets for HTTP headers and devices
@param result to place the properties and values
Completes the result map with all properties supported by the Provider and their values for the detection results contained in the device offsets provided . @param offsets for HTTP headers and devices @param result to place the properties and values
void Provider::buildArray(
		fiftyoneDegreesDeviceOffsets *offsets,
		map<string, vector<string> > *result) {
	int requiredPropertyIndex;
	string *propertyName;
	for (requiredPropertyIndex = 0;
		requiredPropertyIndex <
		fiftyoneDegreesGetRequiredPropertiesCount(provider.active->dataSet);
        requiredPropertyIndex++) {
        const char *value = fiftyoneDegreesGetValuePtrFromOffsets(
			provider.active->dataSet,
        	offsets,
        	requiredPropertyIndex);
        if (value != NULL) {
            propertyName = new string(
				fiftyoneDegreesGetRequiredPropertiesNames(
					provider.active->dataSet)[requiredPropertyIndex]);
            vector<string> *values = &(result->operator[](*propertyName));
            values->insert(values->begin(), string(value));
        }
	}
}
void Provider :: buildArray ( fiftyoneDegreesDeviceOffsets * offsets , map < string , vector < string > > * result ) { int requiredPropertyIndex ; string * propertyName ; for ( requiredPropertyIndex = 0 ; requiredPropertyIndex < fiftyoneDegreesGetRequiredPropertiesCount ( provider . active -> dataSet ) ; requiredPropertyIndex ++ ) { const char * value = fiftyoneDegreesGetValuePtrFromOffsets ( provider . active -> dataSet , offsets , requiredPropertyIndex ) ; if ( value != NULL ) { propertyName = new string ( fiftyoneDegreesGetRequiredPropertiesNames ( provider . active -> dataSet ) [ requiredPropertyIndex ] ) ; vector < string > * values = & ( result -> operator [ ] ( * propertyName ) ) ; values -> insert ( values -> begin ( ) , string ( value ) ) ; } } }
Completes the result map with all properties supported by the Provider and
 their values for the detection results contained in the device offsets
 provided.
Completes the result map with all properties supported by the Provider and their values for the detection results contained in the device offsets provided .