Searched refs:ascii (Results 1 - 20 of 20) sorted by relevance

/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/dummy/
H A DDummyDebugger.java158 private int charToNibble(char ascii) throws NumberFormatException { argument
159 if (ascii >= '0' && ascii <= '9') {
160 return ascii - '0';
161 } else if (ascii >= 'A' && ascii <= 'F') {
162 return 10 + ascii - 'A';
163 } else if (ascii >= 'a' && ascii <= 'f') {
164 return 10 + ascii
[all...]
/openjdk10/jdk/test/java/nio/charset/coders/
H A DIOCoders.java35 static Charset ascii = Charset.forName("US-ASCII"); field in class:IOCoders
42 ascii.newDecoder()
55 ascii.newDecoder()
71 ascii.newEncoder()
76 if (!ascii.decode(ByteBuffer.wrap(bos.toByteArray()))
85 ascii.newEncoder()
/openjdk10/jdk/test/java/nio/charset/CharsetDecoder/
H A DAverageMax.java58 final Charset ascii = Charset.forName("US-ASCII");
62 new CharsetDecoder(ascii, 3.9f, 1.2f) {
73 new CharsetEncoder(ascii, 3.9f, 1.2f) {
/openjdk10/jdk/test/java/awt/font/TextLayout/
H A DCombiningPerf.java27 * @summary ensure that ascii, and latin-1 text without combining marks, both layout faster
51 String ascii = "the characters are critical noodles?";
58 tl = new TextLayout(ascii, font, frc);
62 long atime = test(ascii);
63 System.err.println("atime: " + (atime/1000000.0) + " length: " + ascii.length());
/openjdk10/jdk/test/sun/nio/cs/
H A DFindASCIIReplBugs.java26 * @summary test if isLegalReplacement() works correctly for ascii charsets
37 Charset ascii = Charset.forName("ASCII");
42 if (!cs.contains(ascii) ||
H A DFindASCIIRangeCodingBugs.java57 Charset ascii = Charset.forName("ASCII");
62 if (!cs.contains(ascii) ||
H A DTestStringCodingUTF8.java53 char[] ascii = new char[0x80];
55 ascii[i] = (char)i;
57 test(cs, ascii, 0, ascii.length);
H A DTestStringCoding.java45 char[] ascii = Arrays.copyOf(bmp, 0x80);
66 testNewString(cs, testGetBytes(cs, new String(ascii)));
85 char[] ascii0 = Arrays.copyOf(ascii, rnd.nextInt(0x80));
/openjdk10/hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/
H A DDebuggerUtilities.java78 public int charToNibble(char ascii) throws NumberFormatException { argument
79 if (ascii >= '0' && ascii <= '9') {
80 return ascii - '0';
81 } else if (ascii >= 'A' && ascii <= 'F') {
82 return 10 + ascii - 'A';
83 } else if (ascii >= 'a' && ascii <= 'f') {
84 return 10 + ascii
[all...]
/openjdk10/make/common/
H A DSetupJavaCompilers.gmk73 -encoding ascii -XDignore.symbol.file=true $(JAVAC_WARNINGS), \
83 -encoding ascii -XDignore.symbol.file=true $(DISABLE_WARNINGS), \
/openjdk10/jdk/test/java/lang/StringBuffer/
H A DCompactStringBuffer.java370 String ascii = "abcdefgh";
375 check(new StringBuffer().append(ascii).delete(0, 20).toString(),
377 check(new StringBuffer().append(ascii).delete(3, 20).toString(),
379 check(new StringBuffer().append(ascii).delete(3, 6).toString(),
381 check(new StringBuffer().append(ascii).deleteCharAt(0).toString(),
383 check(new StringBuffer().append(ascii).deleteCharAt(3).toString(),
407 check(new StringBuffer().append(ascii).replace(3, 6, "AB").toString(),
417 check(new StringBuffer().append(ascii).replace(3, 6, "\u4e01\u4e02").toString(),
421 check(new StringBuffer().append(ascii).insert(3, "").toString(),
423 check(new StringBuffer().append(ascii)
[all...]
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/
H A DMimeUtility.java196 encoding = "7bit"; // all ascii
199 encoding = "quoted-printable"; // mostly ascii
265 encoding = "7bit"; // all ascii
268 encoding = "quoted-printable"; // mostly ascii
282 if (aos.getAscii() == ALL_ASCII) // all ascii
284 else // found atleast one non-ascii character, use b64
631 int ascii = checkAscii(string);
632 if (ascii == ALL_ASCII)
645 if (ascii != MOSTLY_NONASCII)
1238 mime2java.put("us-ascii", "IS
1445 private int ascii = 0, non_ascii = 0; field in class:AsciiOutputStream
[all...]
/openjdk10/jdk/test/java/net/httpclient/http2/jdk.incubator.httpclient/jdk/incubator/http/internal/hpack/
H A DHuffmanTest.java307 "\\(\\s*(?<ascii>\\d+)\\s*\\)\\s*(?<binary>(\\|(0|1)+)+)\\s*" +
312 String ascii = m.group("ascii");
322 int expected = parseInt(ascii);
333 assertEquals(actual.length(), 1, "ascii: " + ascii);
/openjdk10/jdk/test/java/util/jar/
H A DTestExtra.java48 static final Charset ascii = Charset.forName("ASCII"); field in class:TestExtra
52 ascii.encode("hello, world").array(),
53 ascii.encode("foo bar").array()
/openjdk10/jdk/src/java.desktop/share/native/libsplashscreen/libpng/
H A Dpng.c2889 png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, png_size_t size, argument
2895 * the space in ascii[] consumed are indicated below.
2910 *ascii++ = 45; /* '-' PLUS 1 TOTAL 1 */
3013 int ch = *--ascii;
3020 ch = *--ascii, ++size;
3044 int ch = *--ascii;
3083 if (exp_b10 == 0) *ascii++ = 46, --size;
3087 *ascii++ = 48, --czero;
3093 *ascii++ = 46, --size; /* counted above */
3097 *ascii
3204 png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, png_size_t size, png_fixed_point fp) argument
[all...]
H A Dpngpriv.h1771 png_charp ascii, png_size_t size, double fp, unsigned int precision),
1777 png_charp ascii, png_size_t size, png_fixed_point fp),PNG_EMPTY);
/openjdk10/jdk/src/java.base/share/classes/java/lang/
H A DString.java347 * @param ascii
360 * {@code offset} is greater than {@code ascii.length - count}
371 public String(byte ascii[], int hibyte, int offset, int count) { argument
372 checkBoundsOffCount(offset, count, ascii.length);
379 this.value = Arrays.copyOfRange(ascii, offset, offset + count);
385 StringUTF16.putChar(val, i, hibyte | (ascii[offset++] & 0xff));
409 * @param ascii
423 public String(byte ascii[], int hibyte) { argument
424 this(ascii, hibyte, 0, ascii
[all...]
/openjdk10/jdk/test/sun/net/idn/
H A DTestData.java275 public String ascii; field in class:TestData.ErrorCase
283 ascii = asciiIn;
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/
H A DJavacFileManager.java275 final String ascii = "US-ASCII";
276 message = new String(String.format(null, format, args).getBytes(ascii), ascii);
/openjdk10/jdk/test/javax/xml/ws/8043129/
H A Djavax.mail.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/sun/ com/sun/mail/ com/sun/mail/imap/ ...

Completed in 387 milliseconds