Java/Apache Common/CharSet
CharSet Example
import org.apache.rumons.lang.CharSet;
import org.apache.rumons.lang.CharRange;
import org.apache.rumons.lang.ArrayUtils;
public class CharSetExampleV1 {
public static void main(String args[]) {
CharSet set = CharSet.getInstance("the apprentice");
System.err.println(set.contains("q"));
CharRange[] range = set.getCharRanges();
System.err.println(ArrayUtils.toString(range));
}
}