Package com.owenfeehan.pathpatternfinder.trim

A trim-operation attempts to find one or more new PatternElements by fitting against a string or a path.
  • Interface Summary 
    Interface Description
    TrimOperation<T>
    Attempts to trim the list of objects from left or right.
  • Class Summary 
    Class Description
    TrimCommonPathRoot
    Considers each element of a file-path (between directory separators) as an ordered list and finds a the maximally constant sublist from the left size.
    TrimConstantString
    Looks for a constant common substring (from left-size, as maximal as possible).
    TrimInteger
    Reads an integer from the left-side of the string (greedy, it grabs an integer of maximally possible length).
    TrimOperationOrList<T>
    Tries to apply each operation in a list until one is successful.
    TrimSplitByChar
    Attempts to split a string by finding a common special character in all strings.