Parses a multi-valued string into its constituent fields.
procedure ExtractHeaderFields(Separators: TSysCharSet; WhiteSpace: TSysCharSet; Content: PChar; Strings: TStrings; Decode: Boolean; StripQuotes: Boolean = False);
ExtractHeaderFields(TSysCharSet Separators, TSysCharSet WhiteSpace, const char * Content, TStrings Strings, Boolean Decode, Boolean StripQuotes = False);
HTTPApp
ExtractHeaderFields is a general utility to parse multi-valued HTTP header strings into separate substrings.
Separators is a set of characters that are used to separate individual values within the multi-valued string.
WhiteSpace is a set of characters that are to be ignored when parsing the string.
Content is the multi-valued string to be parsed.
Strings is the TStrings object that receives the individual values that are parsed from Content.
StripQuotes determines whether the surrounding quotes are removed from the resulting items. When StripQuotes is true, surrounding quotes are removed before substrings are added to Strings.
TStrings
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|