Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for findSuffixIndex (0.07 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)
Back to Top