Lines Matching refs:offsets
149 if (pstr->offsets != NULL) in re_string_realloc_buffers()
151 Idx *new_offsets = re_realloc (pstr->offsets, Idx, new_buf_len); in re_string_realloc_buffers()
154 pstr->offsets = new_offsets; in re_string_realloc_buffers()
403 if (pstr->offsets == NULL) in build_wcs_upper_buffer()
405 pstr->offsets = re_malloc (Idx, pstr->bufs_len); in build_wcs_upper_buffer()
407 if (pstr->offsets == NULL) in build_wcs_upper_buffer()
413 pstr->offsets[i] = i; in build_wcs_upper_buffer()
419 pstr->offsets[byte_idx] = src_idx; in build_wcs_upper_buffer()
422 pstr->offsets[byte_idx + i] in build_wcs_upper_buffer()
445 pstr->offsets[byte_idx + i] = src_idx + i; in build_wcs_upper_buffer()
464 pstr->offsets[byte_idx] = src_idx; in build_wcs_upper_buffer()
614 if (pstr->offsets[mid] > offset) in re_string_reconstruct()
616 else if (pstr->offsets[mid] < offset) in re_string_reconstruct()
622 if (pstr->offsets[mid] < offset) in re_string_reconstruct()
631 && mid == offset && pstr->offsets[mid] == offset) in re_string_reconstruct()
639 pstr->offsets[low] = pstr->offsets[low + offset] - offset; in re_string_reconstruct()
648 while (mid > 0 && pstr->offsets[mid - 1] == offset) in re_string_reconstruct()
659 pstr->valid_len = pstr->offsets[mid] - offset; in re_string_reconstruct()
854 off = pstr->offsets[off]; in internal_function()
894 off = pstr->offsets[pstr->cur_idx]; in internal_function()
915 re_free (pstr->offsets); in re_string_destruct()