Lines Matching refs:dst

316  * Copy content of src binary string to dst.
317 * If the capacity of the dst string is not sufficient,
321 bwscpy(struct bwstring *dst, const struct bwstring *src)
325 if (nums > dst->len)
326 nums = dst->len;
327 dst->len = nums;
330 memcpy(dst->data.cstr, src->data.cstr, nums);
331 dst->data.cstr[dst->len] = '\0';
333 memcpy(dst->data.wstr, src->data.wstr,
335 dst->data.wstr[dst->len] = L'\0';
342 * Copy content of src binary string to dst,
344 * If the capacity of the dst string is not sufficient,
348 bwsncpy(struct bwstring *dst, const struct bwstring *src, size_t size)
352 if (nums > dst->len)
353 nums = dst->len;
356 dst->len = nums;
359 memcpy(dst->data.cstr, src->data.cstr, nums);
360 dst->data.cstr[dst->len] = '\0';
362 memcpy(dst->data.wstr, src->data.wstr,
364 dst->data.wstr[dst->len] = L'\0';
367 return dst;
371 * Copy content of src binary string to dst,
374 * If the capacity of the dst string is not sufficient,
378 bwsnocpy(struct bwstring *dst, const struct bwstring *src, size_t offset,
382 dst->data.wstr[0] = 0;
383 dst->len = 0;
387 if (nums > dst->len)
388 nums = dst->len;
391 dst->len = nums;
393 memcpy(dst->data.cstr, src->data.cstr + offset,
395 dst->data.cstr[dst->len] = '\0';
397 memcpy(dst->data.wstr, src->data.wstr + offset,
399 dst->data.wstr[dst->len] = L'\0';
402 return dst;
877 unsigned char *dst, *end, *src;
880 dst = src;
886 if (src != dst) {
889 newlen = BWSLEN(str) - (src - dst);
892 *dst = *src;
893 ++dst;
899 wchar_t *dst, *end, *src;
902 dst = src;
908 if (src != dst) {
910 size_t newlen = BWSLEN(str) - (src - dst);
913 *dst = *src;
914 ++dst;
933 unsigned char *dst, *end, *src;
937 dst = src;
943 *dst = c;
944 ++dst;
952 wchar_t *dst, *end, *src;
956 dst = src;
962 *dst = c;
963 ++dst;
986 unsigned char *dst, *end, *src;
990 dst = src;
996 *dst = c;
997 ++dst;
1005 wchar_t *dst, *end, *src;
1009 dst = src;
1015 *dst = c;
1016 ++dst;