RAD Studio VCL Reference
|
Parses a multi-valued string into its constituent fields.
procedure ExtractFields(Separators: TSysCharSet; WhiteSpace: TSysCharSet; Content: PChar; Strings: TStrings); overload; procedure ExtractFields(Separators: TSysCharSet; WhiteSpace: TSysCharSet; const Content: AnsiString; Strings: TStrings); overload;
__fastcall ExtractFields(TSysCharSet Separators, TSysCharSet WhiteSpace, const char * Content, TStrings Strings); __fastcall ExtractFields(TSysCharSet Separators, TSysCharSet WhiteSpace, const AnsiString Content, TStrings Strings);
Call ExtractFields to parse a multi-valued HTTP header into separate strings for each value. For example, if the separator character of the UserAgent property is known, ExtractFields can parse this property into separate UserAgent values.
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|