Indy 9 | Content | Index | Reference

FetchCaseInsensitive
See Also, Unit: IdGlobal
Parses a value from the delimited input string disregarding the case of compared values.

    function FetchCaseInsensitive(var AInput: string; const ADelim: string = IdFetchDelimDefault; const ADelete: Boolean = IdFetchDeleteDefault): string;

Unit
IdGlobal
Parameters
var AInput: string
Value to be parsed.
const ADelim: string = IdFetchDelimDefault
Delimiter character(s). Default value is IdFetchDelimDefault.
const ADelete: Boolean = IdFetchDeleteDefault
Remove the parsed value from the input string. Default value is IdFetchDeleteDefault.
Return Value
String - Value parsed from the input string.
Description
FetchCaseInsensitive is a String function that is used to parse the string in AInput up to the delimiter character(s) in ADelim.

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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.