Lines Matching refs:common_len
1110 radix_strlen_t common_len = 0, l1 = 0, l2 = 0; in ldns_radix_array_split() local
1111 common_len = ldns_radix_str_common(array->str, array->len, in ldns_radix_array_split()
1113 assert(common_len < array->len); in ldns_radix_array_split()
1114 assert(common_len < strlen_to_add); in ldns_radix_array_split()
1120 if (array->len - common_len > 1) { in ldns_radix_array_split()
1121 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split()
1127 if (strlen_to_add - common_len > 1) { in ldns_radix_array_split()
1128 if (!ldns_radix_prefix_remainder(common_len+1, in ldns_radix_array_split()
1136 if (common_len > 0) { in ldns_radix_array_split()
1137 common_str = LDNS_XMALLOC(uint8_t, common_len); in ldns_radix_array_split()
1144 memcpy(common_str, str_to_add, common_len); in ldns_radix_array_split()
1147 if (!ldns_radix_array_space(common, array->str[common_len]) || in ldns_radix_array_split()
1148 !ldns_radix_array_space(common, str_to_add[common_len])) { in ldns_radix_array_split()
1163 array->edge->parent_index = array->str[common_len] - in ldns_radix_array_split()
1166 add->parent_index = str_to_add[common_len] - common->offset; in ldns_radix_array_split()
1176 array->len = common_len; in ldns_radix_array_split()