public class ParseIntRanges
extends java.lang.Object
Constructor and Description |
---|
ParseIntRanges() |
Modifier and Type | Method and Description |
---|---|
private static int |
nextSep(java.lang.String str,
int start)
Find the next separator.
|
static IntGenerator |
parseIntRanges(java.lang.String str)
Parse integer ranges, in different syntaxes.
|
public static IntGenerator parseIntRanges(java.lang.String str)
1,2,3,...,10
1,3,,10
1,3,..,10
1,3,...,10
1,+=2,10
1,*=2,16
1,2,3,4,..,10,100
100,1,3,..,10
1,2,..,10,20,..,100,200,..,1000
str
- Ranges to parseprivate static int nextSep(java.lang.String str, int start)
str
- Stringstart
- Starting positionCopyright © 2019 ELKI Development Team. License information.