protected void deEscape()

in src/main/org/apache/ant/props/stringops/PatternOperation.java [182:190]


    protected void deEscape(char c, StringBuffer sb) {
        ParsePosition pos = new ParsePosition(0);
        for (int index = pos.getIndex(); index < sb.length(); index = pos.getIndex()) {
            if (sb.charAt(index) == '\\' && sb.charAt(index + 1) == c) {
                sb.deleteCharAt(index);
            }
            pos.setIndex(index + 1);
        }
    }