method

segment_for

segment_for(string)
public

A factory method that returns a new segment instance appropriate for the format of the given string.