Home | History | Annotate | Download | only in src

Lines Matching full:common_prefix_len

312   int common_prefix_len;
316 common_prefix_len = 0;
318 while (common_prefix_len < prefix_limit &&
319 input->Equals(common_prefix_len, common_prefix_len)) {
320 common_prefix_len++;
324 int suffix_limit = min(len1 - common_prefix_len, len2 - common_prefix_len);
333 if (common_prefix_len > 0 || common_suffix_len > 0) {
334 int new_len1 = len1 - common_suffix_len - common_prefix_len;
335 int new_len2 = len2 - common_suffix_len - common_prefix_len;
337 input->SetSubrange1(common_prefix_len, new_len1);
338 input->SetSubrange2(common_prefix_len, new_len2);
340 output->SetSubrange1(common_prefix_len, new_len1);
341 output->SetSubrange2(common_prefix_len, new_len2);