headerParseQualityList

fnstring[] headerParseQualityList(string header, out string[] unacceptable)

Parses a header whose content is a list of items with optional "qvalue"s (eg, Accept, Accept-Charset, Accept-Encoding, Accept-Language, TE).

If unacceptable is not null, then on return, it will contain the items with qvalue 0. Either way, those items will be removed from the main list.

Parameters

headera header value
unacceptableon return, will contain a list of unacceptable values

Returns

a #GSList of

acceptable values (as allocated strings), highest-qvalue first.