Lines Matching refs:len
73 int len = from->bv_ga.ga_len; in blob_copy() local
75 if (len > 0) in blob_copy()
78 vim_memsave(from->bv_ga.ga_data, len); in blob_copy()
80 len = 0; in blob_copy()
82 to->vval.v_blob->bv_ga.ga_len = len; in blob_copy()
83 to->vval.v_blob->bv_ga.ga_maxlen = len; in blob_copy()
291 long len = blob_len(blob); in blob_slice_or_index() local
299 n1 = len + n1; in blob_slice_or_index()
304 n2 = len + n2; in blob_slice_or_index()
305 else if (n2 >= len) in blob_slice_or_index()
306 n2 = len - (exclusive ? 0 : 1); in blob_slice_or_index()
309 if (n1 >= len || n2 < 0 || n1 > n2) in blob_slice_or_index()
341 n1 = len + n1; in blob_slice_or_index()
342 if (n1 < len && n1 >= 0) in blob_slice_or_index()
428 int len = blob_len(b); in blob_remove() local
433 idx = len + idx; in blob_remove()
434 if (idx < 0 || idx >= len) in blob_remove()
444 mch_memmove(p + idx, p + idx + 1, (size_t)len - idx - 1); in blob_remove()
457 end = len + end; in blob_remove()
458 if (end >= len || idx > end) in blob_remove()
479 if (len - end - 1 > 0) in blob_remove()
480 mch_memmove(p + idx, p + end + 1, (size_t)(len - end - 1)); in blob_remove()