Indy 9
|
function FetchCaseInsensitive(var AInput: string; const ADelim: string = IdFetchDelimDefault; const ADelete: Boolean = IdFetchDeleteDefault): string;
ADelim may contain a single character, a sequence of characters, or the value CHAR0 (Null string). The default delimiter is IdFetchDelimDefault.
Fetch can optionally delete the parsed value from AInput when ADelete is True. When ADelete is True, both the parsed value and the delimiter character(s) are removed from the input string AInput.
FetchCaseInsensitive converts the values in AInput and ADelim to upper case prior to comparing ADelim character(s) to the values in AInput. FetchCaseSensitive calls Fetch to perform the actual comparision and removal of values and ADelim characters.