Lines Matching refs:str
34 #define av_bprint_is_allocated(buf) ((buf)->str != (buf)->reserved_internal_buffer)
49 old_str = av_bprint_is_allocated(buf) ? buf->str : NULL;
54 memcpy(new_str, buf->str, buf->len + 1);
55 buf->str = new_str;
66 buf->str[FFMIN(buf->len, buf->size - 1)] = 0;
76 buf->str = buf->reserved_internal_buffer;
80 *buf->str = 0;
87 buf->str = buffer;
91 *buf->str = 0;
103 dst = room ? buf->str + buf->len : NULL;
126 dst = room ? buf->str + buf->len : NULL;
153 memset(buf->str + buf->len, c, real_n);
171 memcpy(buf->str + buf->len, data, real_n);
185 if (room && (l = strftime(buf->str + buf->len, room, fmt, tm)))
208 memset(buf->str + buf->len, '!', room);
209 memcpy(buf->str + buf->len, txt, FFMIN(sizeof(txt) - 1, room));
224 *mem = *actual_size ? buf->str + buf->len : NULL;
230 *buf->str = 0;
238 char *str;
243 str = av_realloc(buf->str, real_size);
244 if (!str)
245 str = buf->str;
246 buf->str = NULL;
248 str = av_malloc(real_size);
249 if (str)
250 memcpy(str, buf->str, real_size);
254 *ret_str = str;
257 av_freep(&buf->str);
338 printf("Short text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len);
339 printf("%s\n", b.str);
344 printf("Long text in unlimited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len);
349 printf("Long text in limited buffer: %u/%u\n", (unsigned)strlen(b.str), b.len);
354 printf("Short text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str), b.len);
358 printf("Long text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str)/8*8, b.len);
363 printf("Long text count only buffer: %u/%u\n", (unsigned)strlen(b.str), b.len);
371 printf("strftime full: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str);
376 printf("strftime truncated: %u/%u \"%s\"\n", (unsigned)strlen(buf), b.len, b.str);