Java Code Examples for jdk.nashorn.internal.runtime.regexp.joni.ast.StringNode#set()
The following examples show how to use
jdk.nashorn.internal.runtime.regexp.joni.ast.StringNode#set() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Analyser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 2
Source File: Analyser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 3
Source File: Analyser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 4
Source File: Analyser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 5
Source File: Analyser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 6
Source File: Analyser.java From hottub with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 7
Source File: Analyser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(StringNode sn) { char[] chars = sn.chars; int end = sn.end; value = sn.p; 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; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 8
Source File: Analyser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(StringNode sn) { char[] chars = sn.chars; int end = sn.end; value = sn.p; 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; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 9
Source File: Analyser.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(final StringNode sn) { final char[] ch = sn.chars; final int end = sn.end; value = sn.p; int sp = 0; char buf; while (value < end) { final int ovalue = value; buf = EncodingHelper.toLowerCase(ch[value++]); if (ch[ovalue] != buf) { char[] sbuf = new char[sn.length() << 1]; System.arraycopy(ch, sn.p, sbuf, 0, ovalue - sn.p); value = ovalue; while (value < end) { buf = EncodingHelper.toLowerCase(ch[value++]); if (sp >= sbuf.length) { final char[]tmp = new char[sbuf.length << 1]; System.arraycopy(sbuf, 0, tmp, 0, sbuf.length); sbuf = tmp; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }
Example 10
Source File: Analyser.java From nashorn with GNU General Public License v2.0 | 5 votes |
private void updateStringNodeCaseFoldMultiByte(StringNode sn) { char[] chars = sn.chars; int end = sn.end; value = sn.p; 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; } sbuf[sp++] = buf; } sn.set(sbuf, 0, sp); return; } sp++; } }