Searched refs:common_prefix_len (Results 1 – 4 of 4) sorted by relevance
304 int common_prefix_len; in NarrowDownInput() local308 common_prefix_len = 0; in NarrowDownInput()310 while (common_prefix_len < prefix_limit && in NarrowDownInput()311 input->Equals(common_prefix_len, common_prefix_len)) { in NarrowDownInput()312 common_prefix_len++; in NarrowDownInput()317 std::min(len1 - common_prefix_len, len2 - common_prefix_len); in NarrowDownInput()326 if (common_prefix_len > 0 || common_suffix_len > 0) { in NarrowDownInput()327 int new_len1 = len1 - common_suffix_len - common_prefix_len; in NarrowDownInput()328 int new_len2 = len2 - common_suffix_len - common_prefix_len; in NarrowDownInput()330 input->SetSubrange1(common_prefix_len, new_len1); in NarrowDownInput()[all …]
855 size_t common_prefix_len = 0; in ResolveSolutionFolders() local859 for (i = common_prefix_len; i < max_common_length; ++i) { in ResolveSolutionFolders()861 common_prefix_len = i + 1; in ResolveSolutionFolders()867 common_prefix_len = max_common_length; in ResolveSolutionFolders()868 if (common_prefix_len < root_folder_path_.size()) { in ResolveSolutionFolders()869 if (IsSlash(root_folder_path_[common_prefix_len - 1])) in ResolveSolutionFolders()870 --common_prefix_len; in ResolveSolutionFolders()871 root_folder_path_ = root_folder_path_.substr(0, common_prefix_len); in ResolveSolutionFolders()
679 size_t common_prefix_len = 0; in MakeRelativePath() local681 for (size_t i = common_prefix_len; i <= max_common_length; i++) { in MakeRelativePath()683 common_prefix_len = i + 1; in MakeRelativePath()689 for (size_t i = common_prefix_len; i < dest.size(); i++) { in MakeRelativePath()695 if (common_prefix_len <= input.size()) in MakeRelativePath()696 ret.append(&input[common_prefix_len], input.size() - common_prefix_len); in MakeRelativePath()
256 static int common_prefix_len(const struct in6_addr *a1, in common_prefix_len() function369 prefixlen1 = common_prefix_len(&a1_src->sin6_addr, &a1_dst->sin6_addr); in rfc6724_compare()370 prefixlen2 = common_prefix_len(&a2_src->sin6_addr, &a2_dst->sin6_addr); in rfc6724_compare()