Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 176 for ASCII (0.02 sec)

  1. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

      }
    
      public static ByteSinkFactory fileByteSinkFactory() {
        return new FileByteSinkFactory(null);
      }
    
      public static ByteSinkFactory appendingFileByteSinkFactory() {
        String initialString = IoTestCase.ASCII + IoTestCase.I18N;
        return new FileByteSinkFactory(initialString.getBytes(UTF_8));
      }
    
      public static CharSourceFactory fileCharSourceFactory() {
        return new FileCharSourceFactory();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CookieTest.kt

       * present in the public suffix list.
       */
      @Test fun domainIsPublicSuffix() {
        val ascii = "https://foo1.foo.bar.elb.amazonaws.com".toHttpUrl()
        assertThat(parse(ascii, "a=b; domain=foo.bar.elb.amazonaws.com")).isNotNull()
        assertThat(parse(ascii, "a=b; domain=bar.elb.amazonaws.com")).isNull()
        assertThat(parse(ascii, "a=b; domain=com")).isNull()
        val unicode = "https://長.長.長崎.jp".toHttpUrl()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

      public void testGetKeyMatchesString() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          String fieldName = property.name();
          String expected = Ascii.toLowerCase(fieldName).replaceAll("_", ".");
          assertEquals(expected, property.key());
        }
      }
    
      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 10 08:40:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/bufio/scan.go

    	if atEOF && len(data) == 0 {
    		return 0, nil, nil
    	}
    
    	// Fast path 1: ASCII.
    	if data[0] < utf8.RuneSelf {
    		return 1, data[0:1], nil
    	}
    
    	// Fast path 2: Correct UTF-8 decode without error.
    	_, width := utf8.DecodeRune(data)
    	if width > 1 {
    		// It's a valid encoding. Width cannot be one for a correctly encoded
    		// non-ASCII rune.
    		return width, data[0:width], nil
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 23 09:06:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                        break;
                    case 1:
                        /* Get ASCII hex value and convert to platform dependant
                         * encoding like EBCDIC perhaps
                         */
                        b[0] = (byte)(Integer.parseInt( str.substring( i, i + 2 ), 16 ) & 0xFF);
                        out[j++] = (new String( b, 0, 1, "ASCII" )).charAt( 0 );
                        i++;
                        state = 0;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/UrlEscapers.java

      /**
       * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a
       * href="https://url.spec.whatwg.org/#syntax-url-path-segment">URL path segments</a>. The returned
       * escaper escapes all non-ASCII characters, even though <a
       * href="https://url.spec.whatwg.org/#url-code-points">many of these are accepted in modern
       * URLs</a>. (<a href="https://url.spec.whatwg.org/#path-state">If the escaper were to leave these
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

        Random random = new Random(0xdeadbeef); // for unpredictable but reproducible behavior
        sb.ensureCapacity(size);
        for (int k = 0; k < size; k++) {
          // [9-127) includes all ascii non-control characters
          sb.append((char) (random.nextInt(127 - 9) + 9));
        }
        String string = sb.toString();
        sb.setLength(0);
        data = ByteSource.wrap(string.getBytes(charset));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

            assertThrows(IllegalArgumentException.class, () -> new PercentEscaper(" ", true));
        assertThat(expected).hasMessageThat().isEqualTo(msg);
      }
    
      /** Helper to manually escape a 7-bit ascii character */
      private String escapeAscii(char c) {
        Preconditions.checkArgument(c < 128);
        String hex = "0123456789ABCDEF";
        return "%" + hex.charAt((c >> 4) & 0xf) + hex.charAt(c & 0xf);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

            int start = bufferIndex;
    
            pathConsumed = readInt2( buffer, bufferIndex );
            bufferIndex += 2;
                /* Samba 2.2.8a will reply with Unicode paths even though
                 * ASCII is negotiated so we must use flags2 (probably
                 * should anyway).
                 */
            if((flags2 & FLAGS2_UNICODE) != 0) {
                pathConsumed /= 2;
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                        && (!getFessConfig().isCrawlerDocumentUseSiteEncodingOnEnglish() || "ISO-8859-1".equalsIgnoreCase(encoding)
                                || "US-ASCII".equalsIgnoreCase(encoding))) {
                    enc = getFessConfig().getCrawlerDocumentSiteEncoding();
                } else {
                    enc = encoding;
                }
    
                try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top