Lines Matching refs:buf
453 char *buf;
478 buf = apr_palloc(pool, valuelen);
479 rv = apr_conv_ucs2_to_utf8(value, &size, buf, &valuelen);
484 buf[(alloclen - valuelen)] = '\0';
485 buf[(alloclen - valuelen) + 1] = '\0';
494 buf = (char *)value;
495 if (size < 2 || buf[size - 1] != '\0' || buf[size - 2] != '\0') {
496 buf = apr_palloc(pool, size + 2);
497 memcpy(buf, value, size);
498 buf[size + 1] = '\0';
499 buf[size] = '\0';
505 for (tmp = buf; *tmp; ++tmp) {
513 for (tmp = buf; *tmp; ++tmp) {
542 apr_wchar_t *buf;
555 buf = apr_palloc(pool, bufsize * 2);
556 tmp = buf;
575 value = (void*)buf;
581 char *buf;
591 buf = apr_palloc(pool, bufsize);
592 tmp = buf;
602 value = buf;