function ExtractItem(const S: string; const Direction: TDirection): Substring; overload;
Extract from either end: the first (FromBeginning) or last (FromEnd) item equal to S.
| # | Name | Description |
|---|---|---|
| 1 | S | The text, every text kind. |
| 2 | Direction | FromBeginning: the first equal item; FromEnd: the last. |
Returns: Substring - The item, as Extract returns it; the empty text when no item is equal to S.