graphmine-util / io.github.sof3.graphmine.util.string / FormattedStringReader / nextDelimiter
fun nextDelimiter(vararg delimiters:
String
= arrayOf(" ")):
DelimiterResult
?
If multiple delimiters are provided, the first delimiter found in the remaining string is used (i.e. BFS).
If multiple delimiters match the input at the same position, the first one is used, so if the parser expects greedy behaviour, reverse-sort the delimiters by length before passing.