Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 156 for Ascii (1.48 sec)

  1. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            String name1 = "WORKSTATION     ";
            System.arraycopy(name1.getBytes("US-ASCII"), 0, src, srcIndex + 1, 16);
            src[srcIndex + 16] = 0x00; // hex code
            src[srcIndex + 17] = 0x04; // flags: active
    
            // Second name entry (18 bytes)
            String name2 = "DOMAIN          ";
            System.arraycopy(name2.getBytes("US-ASCII"), 0, src, srcIndex + 19, 16);
            src[srcIndex + 34] = 0x00; // hex code
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(ASCII, Files.toString(temp, UTF_8));
      }
    
      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);
        assertEquals(ASCII, Files.toString(temp2, UTF_8));
      }
    
      public void testEqual() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            descrField.setAccessible(true);
            String descr = (String) descrField.get(null);
    
            assertEquals("WrLeh\u0000B13BWz\u0000", descr);
    
            // Verify ASCII conversion
            byte[] descrBytes = descr.getBytes("ASCII");
            assertNotNull(descrBytes);
            assertEquals(13, descrBytes.length); // WrLeh(5) + null(1) + B13BWz(6) + null(1) = 13
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/StringsTest.java

            }
    
            @ParameterizedTest
            @DisplayName("getBytes should handle various string inputs")
            @NullAndEmptySource
            @ValueSource(strings = { "Simple ASCII", "Special chars: !@#$%^&*()", "Unicode: ñöt ascii ℃", "Mixed: ASCII + 中文 + Русский",
                    "Emojis: 🎉🌟💻", "Very long string with multiple words and various characters 1234567890" })
            void testGetBytesWithVariousInputs(String input) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

        return NONALPHA.charAt(random.nextInt(NONALPHA.length()));
      }
    
      @Benchmark
      int asciiStringToUpperCase(int reps) {
        String string = noWorkToDo ? Ascii.toUpperCase(testString) : testString;
    
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Ascii.toUpperCase(string).length();
        }
        return dummy;
      }
    
      @Benchmark
      int asciiCharSequenceToUpperCase(int reps) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

       * This is like [toLowerCase] except that it does nothing if this contains any non-ASCII
       * 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
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/xml/XmlEscapers.java

     * href="http://www.xom.nu/">XOM</a>.
     *
     * <p><b>Note:</b> Currently the escapers provided by this class do not escape any characters
     * outside the ASCII character range. Unlike HTML escaping the XML escapers will not escape
     * non-ASCII characters to their numeric entity replacements. These XML escapers provide the minimal
     * level of escaping to ensure that the output can be safely included in a Unicode XML document.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jun 20 17:15:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/InetAddresses.java

       *
       * <p>This method accepts non-ASCII digits, for example {@code "192.168.0.1"} (those are fullwidth
       * characters). That is consistent with {@link InetAddress}, but not with various RFCs. If you
       * want to accept ASCII digits only, you can use something like {@code
       * CharMatcher.ascii().matchesAllOf(ipString)}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/net/TestSmbComTransactionResponseReader.java

            this.cfg = new BaseConfiguration(true);
        }
    
        /**
         * Sub-class of {@link BaseConfiguration} that forces {@code useUnicode()}
         * to return {@code false}. This mimics an ASCII only client
         */
        private static class OffUnicodeConfig extends BaseConfiguration {
            public OffUnicodeConfig() throws Exception {
                super(true);
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top