Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 50 for Ascii (0.54 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/net/InetAddresses.java

       * InetAddress}.
       *
       * <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)}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/io/CharSinkTest.java

    /**
     * Tests for the default implementations of {@code CharSink} methods.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class CharSinkTest extends IoTestCase {
    
      private static final String STRING = ASCII + I18N;
    
      private TestCharSink sink;
    
      @Override
      public void setUp() {
        sink = new TestCharSink();
      }
    
      public void testOpenBufferedStream() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/io/BaseEncoding.java

        boolean canDecode(char ch) {
          return ch <= Ascii.MAX && decodabet[ch] != -1;
        }
    
        int decode(char ch) throws DecodingException {
          if (ch > Ascii.MAX) {
            throw new DecodingException("Unrecognized character: 0x" + Integer.toHexString(ch));
          }
          int result = decodabet[ch];
          if (result == -1) {
            if (ch <= 0x20 || ch == Ascii.MAX) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 41.6K bytes
    - Click Count (0)
Back to Top