Returns the sections of the given segment.
the segment to get the sections from
the sections.
See Implementation
Returns the sections of the given segment.