Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for pos (0.12 sec)

  1. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        while (remaining > 0) {
          final char c = (char) random.nextInt();
          if (bitSet.get(c)) {
            final int pos = random.nextInt(result.length);
            if (bitSet.get(result[pos])) {
              result[pos] = c;
              remaining--;
            }
          }
        }
        return new String(result);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CharSequenceReader.java

        for (int i = 0; i < charsToRead; i++) {
          target.put(seq.charAt(pos++));
        }
        return charsToRead;
      }
    
      @Override
      public synchronized int read() throws IOException {
        checkOpen();
        requireNonNull(seq); // safe because of checkOpen
        return hasRemaining() ? seq.charAt(pos++) : -1;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
                System.arraycopy(buf, off, processedBytes, pos, len);
                pos += len;
                return true;
              }
    
              @Override
              public byte[] getResult() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

        while (remaining > 0) {
          final char c = (char) random.nextInt();
          if (bitSet.get(c)) {
            final int pos = random.nextInt(result.length);
            if (bitSet.get(result[pos])) {
              result[pos] = c;
              remaining--;
            }
          }
        }
        return new String(result);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 16 22:49:59 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
                System.arraycopy(buf, off, processedBytes, pos, len);
                pos += len;
                return true;
              }
    
              @Override
              public byte[] getResult() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/CharMatcher.java

              break;
            }
            chars[pos - spread] = chars[pos];
            pos++;
          }
          spread++;
        }
        return new String(chars, 0, pos - spread);
      }
    
      /**
       * Returns a string containing all matching BMP characters of a character sequence, in order. For
       * example:
       *
       * <pre>{@code
       * CharMatcher.is('a').retainFrom("bazaar")
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/AbstractCompositeHashFunction.java

            }
            return this;
          }
    
          @Override
          public Hasher putBytes(ByteBuffer bytes) {
            int pos = bytes.position();
            for (Hasher hasher : hashers) {
              Java8Compatibility.position(bytes, pos);
              hasher.putBytes(bytes);
            }
            return this;
          }
    
          @Override
          public Hasher putShort(short s) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        string.getChars(0, len, strCopy, 0);
    
        char[] array = new char[len * count];
    
        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
          if (count != 0) {
            System.arraycopy(strCopy, 0, strCopy, strCopyLen, strCopyLen);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        string.getChars(0, len, strCopy, 0);
    
        char[] array = new char[len * count];
    
        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
          if (count != 0) {
            System.arraycopy(strCopy, 0, strCopy, strCopyLen, strCopyLen);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/CharMatcher.java

              break;
            }
            chars[pos - spread] = chars[pos];
            pos++;
          }
          spread++;
        }
        return new String(chars, 0, pos - spread);
      }
    
      /**
       * Returns a string containing all matching BMP characters of a character sequence, in order. For
       * example:
       *
       * <pre>{@code
       * CharMatcher.is('a').retainFrom("bazaar")
       * }</pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top