Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 634 for carrat (0.17 sec)

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

          chars.add(randomNonAlpha());
        }
        Collections.shuffle(chars, random);
        char[] array = Chars.toArray(chars);
        this.testString = new String(array);
      }
    
      private char randomAlpha() {
        return ALPHA.charAt(random.nextInt(ALPHA.length()));
      }
    
      private char randomNonAlpha() {
        return NONALPHA.charAt(random.nextInt(NONALPHA.length()));
      }
    
      @Benchmark
      int asciiStringToUpperCase(int reps) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Longs.java

        checkArgument(array.length > 0);
        long min = array[0];
        for (int i = 1; i < array.length; i++) {
          if (array[i] < min) {
            min = array[i];
          }
        }
        return min;
      }
    
      /**
       * Returns the greatest value present in {@code array}.
       *
       * @param array a <i>nonempty</i> array of {@code long} values
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/CharEscaper.java

        for (int index = 0; index < length; index++) {
          if (escape(string.charAt(index)) != null) {
            return escapeSlow(string, index);
          }
        }
        return string;
      }
    
      /**
       * Returns the escaped form of the given character, or {@code null} if this character does not
       * need to be escaped. If an empty array is returned, this effectively strips the input character
       * from the resulting text.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/StringUtil.java

                return null;
            }
            s = s.toLowerCase();
            final String[] array = StringUtil.split(s, "_");
            if (array.length == 1) {
                return StringUtil.capitalize(s);
            }
            final StringBuilder buf = new StringBuilder(40);
            for (final String element : array) {
                buf.append(StringUtil.capitalize(element));
            }
            return buf.toString();
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       * @since 23.1
       */
      public static void sort(long[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
      }
    
      /**
    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)
  6. guava-tests/test/com/google/common/collect/MultimapsTest.java

          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        Entry<String, Integer>[] array = (Entry<String, Integer>[]) new Entry<?, ?>[2];
        assertSame(array, unmod.entries().toArray(array));
        try {
          array[0].setValue(2);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * <p>Example:
       *
       * <pre>{@code
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(toImmutableListMultimap(str -> str.charAt(0), str -> str.substring(1)));
       *
       * // is equivalent to
       *
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 17.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Base64.java

                buffer.append(ALPHABET.charAt(block >>> 6));
                buffer.append(ALPHABET.charAt(block & 0x3f));
                buffer.append("==");
                return buffer.toString();
            }
            block = (((bytes[i++] & 0xff) << 8) | ((bytes[i]) & 0xff)) << 2;
            buffer.append(ALPHABET.charAt(block >>> 12));
            buffer.append(ALPHABET.charAt((block >>> 6) & 0x3f));
            buffer.append(ALPHABET.charAt(block & 0x3f));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/Base64Util.java

            final byte b0 = DECODE_TABLE[inData.charAt(inIndex)];
            final byte b1 = DECODE_TABLE[inData.charAt(inIndex + 1)];
            final byte b2 = DECODE_TABLE[inData.charAt(inIndex + 2)];
            final byte b3 = DECODE_TABLE[inData.charAt(inIndex + 3)];
            outData[outIndex] = (byte) (b0 << 2 & 0xfc | b1 >> 4 & 0x3);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          int i = 0;
          int len = 0;
    
          // This loop optimizes for pure ASCII.
          while (i + 4 <= utf16Length) {
            char c0 = input.charAt(i);
            char c1 = input.charAt(i + 1);
            char c2 = input.charAt(i + 2);
            char c3 = input.charAt(i + 3);
            if (c0 < 0x80 && c1 < 0x80 && c2 < 0x80 && c3 < 0x80) {
              int k1 = c0 | (c1 << 8) | (c2 << 16) | (c3 << 24);
              k1 = mixK1(k1);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
Back to top