StringSegment.Intersect method

Intersects this segment with another segment of the same string.

public StringSegment Intersect(StringSegment segment)
parameter description
segment The segment to intersect.

Return Value

A string segment that encapsulates the portion of the string contained by both string segments.

Remarks

If the segments do not intersect, the segment will have a length of zero, but will be positioned at the offset of the end-most substring.

See Also