Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for Chars (0.19 sec)

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

     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class Chars {
      private Chars() {}
    
      /**
       * The number of bytes required to represent a primitive {@code char} value.
       *
       * <p><b>Java 8+ users:</b> use {@link Character#BYTES} instead.
       */
    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)
  2. guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.contains(ARRAY234, (char) 2)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 3)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Chars.indexOf(EMPTY, (char) 1)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY1, (char) 2)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY234, (char) 1)).isEqualTo(-1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.contains(ARRAY234, (char) 2)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 3)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Chars.indexOf(EMPTY, (char) 1)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY1, (char) 2)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY234, (char) 1)).isEqualTo(-1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  4. src/bytes/bytes.go

    // code points in chars. It returns -1 if chars is empty or if there is no code
    // point in common.
    func IndexAny(s []byte, chars string) int {
    	if chars == "" {
    		// Avoid scanning all of s.
    		return -1
    	}
    	if len(s) == 1 {
    		r := rune(s[0])
    		if r >= utf8.RuneSelf {
    			// search utf8.RuneError.
    			for _, r = range chars {
    				if r == utf8.RuneError {
    					return 0
    				}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Ascii.java

       *
       * @since 14.0
       */
      public static String toLowerCase(CharSequence chars) {
        if (chars instanceof String) {
          return toLowerCase((String) chars);
        }
        char[] newChars = new char[chars.length()];
        for (int i = 0; i < newChars.length; i++) {
          newChars[i] = toLowerCase(chars.charAt(i));
        }
        return String.valueOf(newChars);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                    return "u0020u3000";
                }
            };
    
            int[] chars = fessConfig.getCrawlerDocumentSpaceCharsAsArray();
            assertEquals(2, chars.length);
            assertEquals(32, chars[0]);
            assertEquals(12288, chars[1]);
        }
    
        public void test_getCrawlerDocumentFullstopCharsAsArray() {
            FessProp.propMap.clear();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/BaseEncoding.java

            }
          }
          return chars.subSequence(0, l + 1);
        }
    
        @Override
        public boolean canDecode(CharSequence chars) {
          checkNotNull(chars);
          chars = trimTrailingPadding(chars);
          if (!alphabet.isValidPaddingStartPosition(chars.length())) {
            return false;
          }
          for (int i = 0; i < chars.length(); i++) {
            if (!alphabet.canDecode(chars.charAt(i))) {
              return false;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/CharMatcherTest.java

          char[] chars = randomChars(rand, rand.nextInt(63) + 1);
          CharMatcher m = SmallCharMatcher.from(bitSet(chars), new String(chars));
          checkExactMatches(m, chars);
        }
      }
    
      static void checkExactMatches(CharMatcher m, char[] chars) {
        Set<Character> positive = Sets.newHashSetWithExpectedSize(chars.length);
        for (char c : chars) {
          positive.add(c);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

          char[] chars = randomChars(rand, rand.nextInt(63) + 1);
          CharMatcher m = SmallCharMatcher.from(bitSet(chars), new String(chars));
          checkExactMatches(m, chars);
        }
      }
    
      static void checkExactMatches(CharMatcher m, char[] chars) {
        Set<Character> positive = Sets.newHashSetWithExpectedSize(chars.length);
        for (char c : chars) {
          positive.add(c);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            }
            char[] chars = new char[0];
            assertThat(StringUtil.newStringUnsafe(chars), is(""));
            chars = new char[] { 'a', 'b', 'c' };
            assertThat(StringUtil.newStringUnsafe(chars), is("abc"));
            chars = new char[] { 'a', 'b', 'c', ' ' };
            assertThat(StringUtil.newStringUnsafe(chars), is("abc "));
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top