Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 74 for Ascii (0.04 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

       * characters. We want to avoid lower casing special chars like U+212A (Kelvin symbol) because
       * they can return ASCII characters that match real hostnames.
       */
      private fun String.asciiToLowercase(): String =
        when {
          isAscii() -> lowercase(Locale.US)
    
          // This is an ASCII string.
          else -> this
        }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertThat(Files.toString(temp, UTF_8)).isEqualTo(ASCII);
      }
    
      public void testCopyIdenticalFiles() throws IOException {
        File temp1 = createTempFile();
        Files.write(ASCII, temp1, UTF_8);
        File temp2 = createTempFile();
        Files.write(ASCII, temp2, UTF_8);
        Files.copy(temp1, temp2);
        assertThat(Files.toString(temp2, UTF_8)).isEqualTo(ASCII);
      }
    
      public void testEqual() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

     * lookups.
     *
     * <p>During construction, names are normalized in two ways:
     *
     * <ol>
     *   <li>ASCII uppercase characters are converted to lowercase.
     *   <li>Unicode dot separators other than the ASCII period ({@code '.'}) are converted to the ASCII
     *       period.
     * </ol>
     *
     * <p>The normalized values will be returned from {@link #toString()} and {@link #parts()}, and will
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 26.2K bytes
    - Click Count (0)
  4. src/bytes/bytes.go

    // trailing white space, as defined by Unicode.
    func TrimSpace(s []byte) []byte {
    	// Fast path for ASCII: look for the first ASCII non-space byte.
    	for lo, c := range s {
    		if c >= utf8.RuneSelf {
    			// If we run into a non-ASCII byte, fall back to the
    			// slower unicode-aware method on the remaining bytes.
    			return TrimFunc(s[lo:], unicode.IsSpace)
    		}
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Mar 12 17:56:55 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        assertThat(xmlEscaper.escape("<tab>")).isEqualTo("&lt;tab&gt;");
    
        // Test all non-escaped ASCII characters.
        String s =
            "!@#$%^*()_+=-/?\\|]}[{,.;:"
                + "abcdefghijklmnopqrstuvwxyz"
                + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                + "1234567890";
        assertThat(xmlEscaper.escape(s)).isEqualTo(s);
    
        // Test ASCII control characters.
        for (char ch = 0; ch < 0x20; ch++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Ints.java

       * (<code>'&#92;u002D'</code>) is recognized as the minus sign.
       *
       * <p>Unlike {@link Integer#parseInt(String)}, this method returns {@code null} instead of
       * throwing an exception if parsing fails. Additionally, this method only accepts ASCII digits,
       * and returns {@code null} if non-ASCII digits are present in the string.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 31.3K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * Mappings may overlap.
     *
     * ASCII-Only
     * ==========
     *
     * Neither the section index nor the ranges data use bit 0x80 anywhere. That means the data is
     * strictly ASCII. This is intended to make it efficient to encode this data as a string, and to
     * index into it as a string.
     *
     * The mappings data contains non-ASCII characters.
     */
    internal class IdnaMappingTable internal constructor(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/base/AsciiTest.java

          assertTrue(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testTruncate() {
        assertThat(Ascii.truncate("foobar", 10, "...")).isEqualTo("foobar");
        assertThat(Ascii.truncate("foobar", 5, "...")).isEqualTo("fo...");
        assertThat(Ascii.truncate("foobar", 6, "...")).isEqualTo("foobar");
        assertThat(Ascii.truncate("foobar", 3, "...")).isEqualTo("...");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/base/AsciiTest.java

          assertTrue(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testTruncate() {
        assertThat(Ascii.truncate("foobar", 10, "...")).isEqualTo("foobar");
        assertThat(Ascii.truncate("foobar", 5, "...")).isEqualTo("fo...");
        assertThat(Ascii.truncate("foobar", 6, "...")).isEqualTo("foobar");
        assertThat(Ascii.truncate("foobar", 3, "...")).isEqualTo("...");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        assertThat(xmlEscaper.escape("<tab>")).isEqualTo("&lt;tab&gt;");
    
        // Test all non-escaped ASCII characters.
        String s =
            "!@#$%^*()_+=-/?\\|]}[{,.;:"
                + "abcdefghijklmnopqrstuvwxyz"
                + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                + "1234567890";
        assertThat(xmlEscaper.escape(s)).isEqualTo(s);
    
        // Test ASCII control characters.
        for (char ch = 0; ch < 0x20; ch++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
Back to Top