Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava/src/com/google/common/io/LineBuffer.java

        int pos = off;
        if (sawReturn && len > 0) {
          // Last call to add ended with a CR; we can handle the line now.
          if (finishLine(cbuf[pos] == '\n')) {
            pos++;
          }
        }
    
        int start = pos;
        for (int end = off + len; pos < end; pos++) {
          switch (cbuf[pos]) {
            case '\r':
              line.append(cbuf, start, pos - start);
              sawReturn = true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        }
    
        int maxSafePos = ParseOverflowDetection.maxSafeDigits[radix] - 1;
        long value = 0;
        for (int pos = 0; pos < string.length(); pos++) {
          int digit = Character.digit(string.charAt(pos), radix);
          if (digit == -1) {
            throw new NumberFormatException(string);
          }
          if (pos > maxSafePos && ParseOverflowDetection.overflowInParse(value, digit, radix)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/primitives/Chars.java

        int length = 0;
        for (char[] array : arrays) {
          length += array.length;
        }
        char[] result = new char[length];
        int pos = 0;
        for (char[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
          pos += array.length;
        }
        return result;
      }
    
      /**
       * Returns a big-endian representation of {@code value} in a 2-element byte array; equivalent to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Doubles.java

        int length = 0;
        for (double[] array : arrays) {
          length += array.length;
        }
        double[] result = new double[length];
        int pos = 0;
        for (double[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
          pos += array.length;
        }
        return result;
      }
    
      private static final class DoubleConverter extends Converter<String, Double>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashTestUtils.java

            byte[] value = new byte[random.nextInt(128)];
            random.nextBytes(value);
            int pos = random.nextInt(value.length + 1);
            int limit = pos + random.nextInt(value.length - pos + 1);
            for (PrimitiveSink sink : sinks) {
              ByteBuffer buffer = ByteBuffer.wrap(value);
              Java8Compatibility.position(buffer, pos);
              Java8Compatibility.limit(buffer, limit);
              sink.putBytes(buffer);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/primitives/Ints.java

        int length = 0;
        for (int[] array : arrays) {
          length += array.length;
        }
        int[] result = new int[length];
        int pos = 0;
        for (int[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
          pos += array.length;
        }
        return result;
      }
    
      /**
       * Returns a big-endian representation of {@code value} in a 4-element byte array; equivalent to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top