Lines Matching refs:bufp
377 rfc2047_to_utf8(char **bufp, size_t *bufLen, size_t strLen)
383 if (bufp == NULL || *bufp == NULL)
386 char *string = *bufp;
389 if (handle_non_rfc2047_encoding(bufp,bufLen,&strLen))
394 strLen = strlen(*bufp);
395 char lastChar = (*bufp)[strLen];
396 (*bufp)[strLen] = '\0';
507 char *temp = (char*)realloc(*bufp, 2*(*bufLen + 1));
514 *bufp = temp;
517 string = *bufp + (string-head);
518 tail = *bufp + (tail-head);
519 charset = *bufp + (charset-head);
520 encoding = *bufp + (encoding-head);
521 end = *bufp + (end-head);
522 src = *bufp + (src-head);
523 head = *bufp;
548 (*bufp)[strLen] = lastChar;
555 utf8_to_rfc2047 (char **bufp, ssize_t length, uint32 charset, char encoding)
595 const char *source = *bufp;
596 const char *bufEnd = *bufp + length;
740 free(*bufp);
743 *bufp = (char *) (malloc (finalLength + 1));
744 memcpy (*bufp, rfc2047.String(), finalLength);
745 (*bufp)[finalLength] = 0;