TUriSegmentStack.Peek Method
Returns the segment at the given offset from the current position without advancing.
Syntax
Unit: Sparkle.Uri
function TUriSegmentStack.Peek(Offset: Integer = 0): string;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Offset | Integer | Optional: Default value is 0 The zero-based offset from the current position. Defaults to 0 (the current segment). |
Returns
The segment at that offset, or an empty string when the offset is past the end.