Home | History | Annotate | Download | only in libiberty

Lines Matching refs:length

73   ds_struct_ptr->length = 0;
176 ds->length = 0;
190 if (dyn_string_resize (dest, src->length) == NULL)
195 dest->length = src->length;
206 int length = strlen (src);
208 if (dyn_string_resize (dest, length) == NULL)
213 dest->length = length;
251 if (dyn_string_resize (dest, dest->length + src->length) == NULL)
254 for (i = dest->length; i >= pos; --i)
255 dest->s[i + src->length] = dest->s[i];
257 strncpy (dest->s + pos, src->s, src->length);
258 /* Compute the new length. */
259 dest->length += src->length;
272 int length = strlen (src);
274 if (dyn_string_resize (dest, dest->length + length) == NULL)
277 for (i = dest->length; i >= pos; --i)
278 dest->s[i + length] = dest->s[i];
280 strncpy (dest->s + pos, src, length);
281 /* Compute the new length. */
282 dest->length += length;
295 if (dyn_string_resize (dest, dest->length + 1) == NULL)
298 for (i = dest->length; i >= pos; --i)
302 /* Compute the new length. */
303 ++dest->length;
314 if (dyn_string_resize (dest, dest->length + s->length) == 0)
316 strcpy (dest->s + dest->length, s->s);
317 dest->length += s->length;
330 /* The new length is the old length plus the size of our string, plus
332 if (dyn_string_resize (dest, dest->length + len) == NULL)
334 strcpy (dest->s + dest->length, s);
335 dest->length += len;
346 if (dyn_string_resize (dest, dest->length + 1) == NULL)
349 dest->s[dest->length] = c;
351 dest->s[dest->length + 1] = '\0';
352 /* Update the length. */
353 ++(dest->length);
359 and both must be between zero and the length of SRC, inclusive.
368 int length = end - start;
370 if (start > end || start > src->length || end > src->length)
374 if (dyn_string_resize (dest, length) == NULL)
377 for (i = length; --i >= 0; )
380 dest->s[length] = '\0';
381 /* Record the length of the substring. */
382 dest->length = length;
393 if (ds1->length != ds2->length)