Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for subSequence (0.18 sec)

  1. android/guava/src/com/google/common/base/Strings.java

        int p = 0;
        while (p < maxPrefixLength && a.charAt(p) == b.charAt(p)) {
          p++;
        }
        if (validSurrogatePairAt(a, p - 1) || validSurrogatePairAt(b, p - 1)) {
          p--;
        }
        return a.subSequence(0, p).toString();
      }
    
      /**
       * Returns the longest string {@code suffix} such that {@code a.toString().endsWith(suffix) &&
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

                int codePoint = Character.codePointAt(input, i);
                if (codePoint == c) {
                  // fall back to JDK getBytes instead of trying to handle invalid surrogates ourselves
                  putBytes(input.subSequence(i, utf16Length).toString().getBytes(charset));
                  return this;
                }
                i++;
                update(4, codePointToFourUtf8Bytes(codePoint));
              }
            }
            return this;
    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)
  3. android/guava/src/com/google/common/base/CharMatcher.java

            break;
          }
        }
        for (last = len - 1; last > first; last--) {
          if (!matches(sequence.charAt(last))) {
            break;
          }
        }
    
        return sequence.subSequence(first, last + 1).toString();
      }
    
      /**
       * Returns a substring of the input character sequence that omits all matching BMP characters from
       * the beginning of the string. For example:
       *
    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)
  4. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

                    public int length() {
                        return name.length();
                    }
    
                    @Override
                    public CharSequence subSequence(final int start, final int end) {
                        return name.subSequence(start, end);
                    }
    
                };
            }
    
            /**
             * @return CharSequence
             */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/CharMatcher.java

            break;
          }
        }
        for (last = len - 1; last > first; last--) {
          if (!matches(sequence.charAt(last))) {
            break;
          }
        }
    
        return sequence.subSequence(first, last + 1).toString();
      }
    
      /**
       * Returns a substring of the input character sequence that omits all matching BMP characters from
       * the beginning of the string. For example:
       *
    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)
  6. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(Strings.repeat("ZZ", s.length()), matcher.replaceFrom(s, "ZZ"));
        assertEquals("", matcher.trimFrom(s));
        assertEquals(s.length(), matcher.countIn(s));
      }
    
      // Kotlin subSequence()/replace() always return new strings, violating expectations of this test
      @J2ktIncompatible
      public void testGeneral() {
        doTestGeneral(is('a'), 'a', 'b');
        doTestGeneral(isNot('a'), 'b', 'a');
    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)
  7. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(Strings.repeat("ZZ", s.length()), matcher.replaceFrom(s, "ZZ"));
        assertEquals("", matcher.trimFrom(s));
        assertEquals(s.length(), matcher.countIn(s));
      }
    
      // Kotlin subSequence()/replace() always return new strings, violating expectations of this test
      @J2ktIncompatible
      public void testGeneral() {
        doTestGeneral(is('a'), 'a', 'b');
        doTestGeneral(isNot('a'), 'b', 'a');
    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)
  8. android/guava/src/com/google/common/io/BaseEncoding.java

          char padChar = paddingChar.charValue();
          int l;
          for (l = chars.length() - 1; l >= 0; l--) {
            if (chars.charAt(l) != padChar) {
              break;
            }
          }
          return chars.subSequence(0, l + 1);
        }
    
        @Override
        public boolean canDecode(CharSequence chars) {
          checkNotNull(chars);
          chars = trimTrailingPadding(chars);
    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)
Back to top