strip the public suffix from the domain . returns the original domain if no public suffix could be found . www.mozilla.org - > www.mozilla independent.co.uk - > independent concode_field_sep PlaceHolder placeHolder concode_field_sep List<String> normalizeAndSplit concode_elem_sep int findPublicSuffixIndex concode_elem_sep boolean matchesWildcardPublicSuffix concode_elem_sep int joinIndex
String function ( Context arg0 , @ NonNull String arg1 ) { if ( arg1 . length ( ) == 0 ) { return arg1 ; } final int loc0 = findPublicSuffixIndex ( arg0 , arg1 ) ; if ( loc0 == - 1 ) { return arg1 ; } return arg1 . substring ( 0 , loc0 ) ; }