Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for findSuffixIndex (0.08 seconds)

  1. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixTrie.java

       *
       * @param labels the domain labels, from left to right.
       * @return the index of the leftmost label in the public suffix, or -1 if not found.
       */
      public int findSuffixIndex(List<String> labels) {
        return findSuffixIndex(labels, /* desiredType= */ null);
      }
    
      /**
       * Performs a lookup for the public suffix of the given labels and returns the index of the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/thirdparty/publicsuffix/PublicSuffixTrieTest.java

        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("com"))).isEqualTo(0);
        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("google", "com")))
            .isEqualTo(1);
        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("abc", "google", "com")))
            .isEqualTo(2);
    
        assertThat(PublicSuffixPatterns.TRIE.findSuffixIndex(ImmutableList.of("co", "uk")))
            .isEqualTo(0);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

        int publicSuffixIndexLocal = publicSuffixIndexCache;
        if (publicSuffixIndexLocal == SUFFIX_NOT_INITIALIZED) {
          publicSuffixIndexCache =
              publicSuffixIndexLocal = PublicSuffixPatterns.TRIE.findSuffixIndex(parts);
        }
        return publicSuffixIndexLocal;
      }
    
      /**
       * The index in the {@link #parts()} list at which the registry suffix begins. For example, for
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 26.2K bytes
    - Click Count (0)
Back to Top