Lines Matching refs:src
184 dyn_string_copy (dyn_string_t dest, dyn_string_t src) in dyn_string_copy() argument
186 if (dest == src) in dyn_string_copy()
190 if (dyn_string_resize (dest, src->length) == NULL) in dyn_string_copy()
193 strcpy (dest->s, src->s); in dyn_string_copy()
195 dest->length = src->length; in dyn_string_copy()
204 dyn_string_copy_cstr (dyn_string_t dest, const char *src) in dyn_string_copy_cstr() argument
206 int length = strlen (src); in dyn_string_copy_cstr()
211 strcpy (dest->s, src); in dyn_string_copy_cstr()
223 dyn_string_prepend (dyn_string_t dest, dyn_string_t src) in dyn_string_prepend() argument
225 return dyn_string_insert (dest, 0, src); in dyn_string_prepend()
233 dyn_string_prepend_cstr (dyn_string_t dest, const char *src) in dyn_string_prepend_cstr() argument
235 return dyn_string_insert_cstr (dest, 0, src); in dyn_string_prepend_cstr()
244 dyn_string_insert (dyn_string_t dest, int pos, dyn_string_t src) in dyn_string_insert() argument
248 if (src == dest) in dyn_string_insert()
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL) in dyn_string_insert()
255 dest->s[i + src->length] = dest->s[i]; in dyn_string_insert()
257 strncpy (dest->s + pos, src->s, src->length); in dyn_string_insert()
259 dest->length += src->length; in dyn_string_insert()
269 dyn_string_insert_cstr (dyn_string_t dest, int pos, const char *src) in dyn_string_insert_cstr() argument
272 int length = strlen (src); in dyn_string_insert_cstr()
280 strncpy (dest->s + pos, src, length); in dyn_string_insert_cstr()
364 dyn_string_substring (dyn_string_t dest, dyn_string_t src, in dyn_string_substring() argument
370 if (start > end || start > src->length || end > src->length) in dyn_string_substring()
378 dest->s[i] = src->s[start + i]; in dyn_string_substring()