range = new CharRange('_');
range = new CharRange('-');
    protected void add(String str) {        int sz = str.length();        CharRange range = null;        if("-".equals(str)) {            range = new CharRange('_');            set.add(range);            return;        }         boolean end = false;        boolean negated = false;        for(int i=0; i<sz; i++) {            char ch = str.charAt(i);            if(ch == '-') {                end = true;                continue;            }            if(end) {                range.setEnd(ch);                continue;            }            if(ch == '^') {                negated = true;                continue;            }            range = new CharRange(ch);            range.setNegated(negated);            set.add(range);        }    }