src/trie/Match.cpp
vector<string> Match::getValues(int requiredPropertyIndex) {
	vector<string> result;
	if (requiredPropertyIndex >= 0 &&
		requiredPropertyIndex < 
			fiftyoneDegreesGetRequiredPropertiesCount(
				offsets->active->dataSet)) {
		char *start = (char*)getValuePointer(requiredPropertyIndex);
		if (start != NULL) {
			char *current = start, *last = start;
			while (*current != 0) {
				if (*current == '|') {
					result.insert(
						result.end(),
						string(last, current - last));
					last = current + 1;
				}
				current++;
			}
			result.insert(
				result.end(),
				string(last, current - last));
		}
	}
	return result;
}
/**
 * Returns a vector with all values associated with the required property
 * index. If the index is not valid an empty vector is returned.
 * @param requiredPropertyIndex of the property required
 * @returns a vector of values for the property
 */
Returns a vector with all values associated with the required property
index. If the index is not valid an empty vector is returned.
@param requiredPropertyIndex of the property required
@returns a vector of values for the property
Returns a vector with all values associated with the required property index . If the index is not valid an empty vector is returned . @param requiredPropertyIndex of the property required @returns a vector of values for the property
vector<string> Match::getValues(int requiredPropertyIndex) {
	vector<string> result;
	if (requiredPropertyIndex >= 0 &&
		requiredPropertyIndex < 
			fiftyoneDegreesGetRequiredPropertiesCount(
				offsets->active->dataSet)) {
		char *start = (char*)getValuePointer(requiredPropertyIndex);
		if (start != NULL) {
			char *current = start, *last = start;
			while (*current != 0) {
				if (*current == '|') {
					result.insert(
						result.end(),
						string(last, current - last));
					last = current + 1;
				}
				current++;
			}
			result.insert(
				result.end(),
				string(last, current - last));
		}
	}
	return result;
}
vector < string > Match :: getValues ( int requiredPropertyIndex ) { vector < string > result ; if ( requiredPropertyIndex >= 0 && requiredPropertyIndex < fiftyoneDegreesGetRequiredPropertiesCount ( offsets -> active -> dataSet ) ) { char * start = ( char * ) getValuePointer ( requiredPropertyIndex ) ; if ( start != NULL ) { char * current = start , * last = start ; while ( * current != 0 ) { if ( * current == ' ' ) { result . insert ( result . end ( ) , string ( last , current - last ) ) ; last = current + 1 ; } current ++ ; } result . insert ( result . end ( ) , string ( last , current - last ) ) ; } } return result ; }
Returns a vector with all values associated with the required property
 index.
Returns a vector with all values associated with the required property index .