Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 178 for ascii (0.04 sec)

  1. guava/src/com/google/common/base/Utf8.java

        // Warning to maintainers: this implementation is highly optimized.
        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

          try {
            return Integer.decode(userFriendly);
          } catch (NumberFormatException ignored) {
            if (userFriendly.matches("(?i)(?:American|English|ASCII)")) {
              // 1-byte UTF-8 sequences - "American" ASCII text
              return 0x80;
            } else if (userFriendly.matches("(?i)(?:French|Latin|Western.*European)")) {
              // Mostly 1-byte UTF-8 sequences, mixed with occasional 2-byte
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

          try {
            return Integer.decode(userFriendly);
          } catch (NumberFormatException ignored) {
            if (userFriendly.matches("(?i)(?:American|English|ASCII)")) {
              // 1-byte UTF-8 sequences - "American" ASCII text
              return 0x80;
            } else if (userFriendly.matches("(?i)(?:French|Latin|Western.*European)")) {
              // Mostly 1-byte UTF-8 sequences, mixed with occasional 2-byte
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java

            try {
                service = new String( buffer, bufferIndex, len, "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
            bufferIndex += len + 1;
            // win98 observed not returning nativeFileSystem
    /* Problems here with iSeries returning ASCII even though useUnicode = true
     * Fortunately we don't really need nativeFileSystem for anything.
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Charsets.java

     *
     * @author Mike Bostock
     * @since 1.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Charsets {
      private Charsets() {}
    
      /**
       * US-ASCII: seven-bit ASCII, the Basic Latin block of the Unicode character set (ISO646-US).
       *
       * <p><b>Note:</b> this constant is now unnecessary and should be treated as deprecated; use
       * {@link StandardCharsets#US_ASCII} instead.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 25 23:55:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        assertEquals("&lt;tab&gt;", xmlEscaper.escape("<tab>"));
    
        // Test all non-escaped ASCII characters.
        String s =
            "!@#$%^*()_+=-/?\\|]}[{,.;:"
                + "abcdefghijklmnopqrstuvwxyz"
                + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                + "1234567890";
        assertEquals(s, xmlEscaper.escape(s));
    
        // Test ASCII control characters.
        for (char ch = 0; ch < 0x20; ch++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial006.py

        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
        response = client.get("/users/me", headers={"Authorization": auth_header})
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/CharMatcher.java

          return "CharMatcher.breakingWhitespace()";
        }
      }
    
      /** Implementation of {@link #ascii()}. */
      private static final class Ascii extends NamedFastMatcher {
    
        static final CharMatcher INSTANCE = new Ascii();
    
        Ascii() {
          super("CharMatcher.ascii()");
        }
    
        @Override
        public boolean matches(char c) {
          return c <= '\u007f';
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/package-info.java

     * library.
     *
     * <h2>Contents</h2>
     *
     * The classes in this package that are most commonly useful are:
     *
     * <h3>String utilities</h3>
     *
     * <ul>
     *   <li>{@link Ascii}
     *   <li>{@link CaseFormat}
     *   <li>{@link CharMatcher}
     *   <li>{@link Splitter}
     *   <li>{@link Strings}
     * </ul>
     *
     * <h3>Function types</h3>
     *
     * <ul>
     *   <li>{@link Converter}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 16:48:06 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top