• Home
  • Raw
  • Download

Lines Matching refs:start

262     const char *start = target;  in countchar()  local
265 while ((start = findchar(start, end - start, c)) != NULL) { in countchar()
269 start += 1; in countchar()
353 const char *self_s, *start, *next, *end; in stringlib_replace_delete_single_character() local
376 start = self_s; in stringlib_replace_delete_single_character()
379 next = findchar(start, end - start, from_c); in stringlib_replace_delete_single_character()
382 memcpy(result_s, start, next - start); in stringlib_replace_delete_single_character()
383 result_s += (next - start); in stringlib_replace_delete_single_character()
384 start = next + 1; in stringlib_replace_delete_single_character()
386 memcpy(result_s, start, end - start); in stringlib_replace_delete_single_character()
398 const char *self_s, *start, *next, *end; in stringlib_replace_delete_substring() local
425 start = self_s; in stringlib_replace_delete_substring()
428 offset = stringlib_find(start, end - start, in stringlib_replace_delete_substring()
433 next = start + offset; in stringlib_replace_delete_substring()
435 memcpy(result_s, start, next - start); in stringlib_replace_delete_substring()
437 result_s += (next - start); in stringlib_replace_delete_substring()
438 start = next + from_len; in stringlib_replace_delete_substring()
440 memcpy(result_s, start, end - start); in stringlib_replace_delete_substring()
451 char *result_s, *start, *next; in stringlib_replace_single_character_in_place() local
475 start = result_s + (next - self_s); in stringlib_replace_single_character_in_place()
476 *start = to_c; in stringlib_replace_single_character_in_place()
477 start++; in stringlib_replace_single_character_in_place()
481 next = findchar(start, end - start, from_c); in stringlib_replace_single_character_in_place()
485 start = next + 1; in stringlib_replace_single_character_in_place()
499 char *result_s, *start; in stringlib_replace_substring_in_place() local
525 start = result_s + offset; in stringlib_replace_substring_in_place()
526 memcpy(start, to_s, from_len); in stringlib_replace_substring_in_place()
527 start += from_len; in stringlib_replace_substring_in_place()
531 offset = stringlib_find(start, end - start, in stringlib_replace_substring_in_place()
536 memcpy(start + offset, to_s, from_len); in stringlib_replace_substring_in_place()
537 start += offset + from_len; in stringlib_replace_substring_in_place()
550 const char *self_s, *start, *next, *end; in stringlib_replace_single_character() local
580 start = self_s; in stringlib_replace_single_character()
583 next = findchar(start, end - start, from_c); in stringlib_replace_single_character()
587 if (next == start) { in stringlib_replace_single_character()
591 start += 1; in stringlib_replace_single_character()
594 memcpy(result_s, start, next - start); in stringlib_replace_single_character()
595 result_s += (next - start); in stringlib_replace_single_character()
598 start = next + 1; in stringlib_replace_single_character()
602 memcpy(result_s, start, end - start); in stringlib_replace_single_character()
614 const char *self_s, *start, *next, *end; in stringlib_replace_substring() local
647 start = self_s; in stringlib_replace_substring()
650 offset = stringlib_find(start, end - start, in stringlib_replace_substring()
655 next = start + offset; in stringlib_replace_substring()
656 if (next == start) { in stringlib_replace_substring()
660 start += from_len; in stringlib_replace_substring()
663 memcpy(result_s, start, next - start); in stringlib_replace_substring()
664 result_s += (next - start); in stringlib_replace_substring()
667 start = next + from_len; in stringlib_replace_substring()
671 memcpy(result_s, start, end - start); in stringlib_replace_substring()