Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for substring (0.17 sec)

  1. android/guava/src/com/google/common/primitives/ParseRequest.java

        if (stringValue.startsWith("0x") || stringValue.startsWith("0X")) {
          rawValue = stringValue.substring(2);
          radix = 16;
        } else if (firstChar == '#') {
          rawValue = stringValue.substring(1);
          radix = 16;
        } else if (firstChar == '0' && stringValue.length() > 1) {
          rawValue = stringValue.substring(1);
          radix = 8;
        } else {
          rawValue = stringValue;
          radix = 10;
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        reader.reset();
        assertEquals(5, reader.skip(5));
        reader.mark(Integer.MAX_VALUE);
        assertEquals(string.substring(5), readFully(reader));
        assertFullyRead(reader);
    
        // reset to the mark and then read the rest
        reader.reset();
        assertEquals(string.substring(5), readFully(reader));
        assertFullyRead(reader);
      }
    
      public void testIllegalArguments() throws IOException {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        // pool ID but a thread ID of 2.
        Thread thread2 = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread2, 2);
        assertEquals(
            thread.getName().substring(0, thread.getName().lastIndexOf('-')),
            thread2.getName().substring(0, thread.getName().lastIndexOf('-')));
    
        // Building again should give us a different pool ID.
        ThreadFactory threadFactory2 = builder.build();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/CaseFormat.java

            out.append(format.normalizeFirstWord(s.substring(i, j)));
          } else {
            requireNonNull(out).append(format.normalizeWord(s.substring(i, j)));
          }
          out.append(format.wordSeparator);
          i = j + wordSeparator.length();
        }
        return (i == 0)
            ? format.normalizeFirstWord(s)
            : requireNonNull(out).append(format.normalizeWord(s.substring(i))).toString();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        reader.reset();
        assertEquals(5, reader.skip(5));
        reader.mark(Integer.MAX_VALUE);
        assertEquals(string.substring(5), readFully(reader));
        assertFullyRead(reader);
    
        // reset to the mark and then read the rest
        reader.reset();
        assertEquals(string.substring(5), readFully(reader));
        assertFullyRead(reader);
      }
    
      public void testIllegalArguments() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CaseFormat.java

            out.append(format.normalizeFirstWord(s.substring(i, j)));
          } else {
            requireNonNull(out).append(format.normalizeWord(s.substring(i, j)));
          }
          out.append(format.wordSeparator);
          i = j + wordSeparator.length();
        }
        return (i == 0)
            ? format.normalizeFirstWord(s)
            : requireNonNull(out).append(format.normalizeWord(s.substring(i))).toString();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  7. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

          if (placeholderStart == -1) {
            break;
          }
          builder.append(template.substring(templateStart, placeholderStart));
          builder.append(args[i++]);
          templateStart = placeholderStart + 2;
        }
        builder.append(template.substring(templateStart));
    
        // if we run out of placeholders, append the extra args in square braces
        if (i < args.length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        // pool ID but a thread ID of 2.
        Thread thread2 = threadFactory.newThread(monitoredRunnable);
        checkThreadPoolName(thread2, 2);
        assertEquals(
            thread.getName().substring(0, thread.getName().lastIndexOf('-')),
            thread2.getName().substring(0, thread.getName().lastIndexOf('-')));
    
        // Building again should give us a different pool ID.
        ThreadFactory threadFactory2 = builder.build();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  9. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/Platform.java

          if (placeholderStart == -1) {
            break;
          }
          builder.append(template.substring(templateStart, placeholderStart));
          builder.append(args[i++]);
          templateStart = placeholderStart + 2;
        }
        builder.append(template.substring(templateStart));
    
        // if we run out of placeholders, append the extra args in square braces
        if (i < args.length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 04 15:31:40 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/escape/Escaper.java

     *
     * <p>Because, in general, escaping operates on the code points of a string and not on its
     * individual {@code char} values, it is not safe to assume that {@code escape(s)} is equivalent to
     * {@code escape(s.substring(0, n)) + escape(s.substring(n))} for arbitrary {@code n}. This is
     * because of the possibility of splitting a surrogate pair. The only case in which it is safe to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 16:02:17 GMT 2021
    - 4.6K bytes
    - Viewed (0)
Back to top