Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for commonSuffix (0.06 seconds)

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

       * b.toString().endsWith(suffix)}, taking care not to split surrogate pairs. If {@code a} and
       * {@code b} have no common suffix, returns the empty string.
       *
       * @since 11.0
       */
      public static String commonSuffix(CharSequence a, CharSequence b) {
        checkNotNull(a);
        checkNotNull(b);
    
        int maxSuffixLength = min(a.length(), b.length());
        int s = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/base/Strings.java

       * b.toString().endsWith(suffix)}, taking care not to split surrogate pairs. If {@code a} and
       * {@code b} have no common suffix, returns the empty string.
       *
       * @since 11.0
       */
      public static String commonSuffix(CharSequence a, CharSequence b) {
        checkNotNull(a);
        checkNotNull(b);
    
        int maxSuffixLength = min(a.length(), b.length());
        int s = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/StringsTest.java

      public void testCommonSuffix() {
        assertThat(Strings.commonSuffix("", "")).isEqualTo("");
        assertThat(Strings.commonSuffix("abc", "")).isEqualTo("");
        assertThat(Strings.commonSuffix("", "abc")).isEqualTo("");
        assertThat(Strings.commonSuffix("abcde", "xyz")).isEqualTo("");
        assertThat(Strings.commonSuffix("xyz", "abcde")).isEqualTo("");
        assertThat(Strings.commonSuffix("xyz", "xyzabc")).isEqualTo("");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/base/StringsTest.java

      public void testCommonSuffix() {
        assertThat(Strings.commonSuffix("", "")).isEqualTo("");
        assertThat(Strings.commonSuffix("abc", "")).isEqualTo("");
        assertThat(Strings.commonSuffix("", "abc")).isEqualTo("");
        assertThat(Strings.commonSuffix("abcde", "xyz")).isEqualTo("");
        assertThat(Strings.commonSuffix("xyz", "abcde")).isEqualTo("");
        assertThat(Strings.commonSuffix("xyz", "xyzabc")).isEqualTo("");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 11.4K bytes
    - Click Count (0)
Back to Top