Returns the union of this segment with another segment of the same string.
public StringSegment Union(StringSegment segment)
parameter | description |
---|---|
segment | Another segment of the same string. |
A string segment that spans both string segments.
If the segments do not intersect, the segment will also include any characters between the two segments.