Intersects this segment with another segment of the same string.
public StringSegment Intersect(StringSegment segment)
parameter | description |
---|---|
segment | The segment to intersect. |
A string segment that encapsulates the portion of the string contained by both string segments.
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.