blob: e59d88e0413117ebed230637d5a68b8813281db9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package bjc.utils.parserutils.splitter;
/**
* Split a string and keep given delimiters.
*
* @author Ben Culkin
*/
public interface TokenSplitter {
/**
* Split a provided string using configured delimiters, and keeping the
* delimiters.
*
* <p>
* The splitter must be compiled first.
* </p>
*
* @param inp
* The string to split.
*
* @return The split string, including delimiters.
*
* @throws IllegalStateException
* If the splitter isn't compiled.
*/
String[] split(String inp);
}
|