src/jdk/nashorn/internal/runtime/regexp/joni/Analyser.java

Print this page

        

*** 769,787 **** int sp = 0; char buf; while (value < end) { int ovalue = value; ! buf = Character.toLowerCase(chars[value++]); if (chars[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(chars, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { ! buf = Character.toLowerCase(chars[value++]); if (sp >= sbuf.length) { char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } --- 769,787 ---- int sp = 0; char buf; while (value < end) { int ovalue = value; ! buf = EncodingHelper.toLowerCase(chars[value++]); if (chars[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(chars, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { ! buf = EncodingHelper.toLowerCase(chars[value++]); if (sp >= sbuf.length) { char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; }