• Home
  • Raw
  • Download

Lines Matching refs:content

44     xmlChar *content;		/* The buffer content UTF8 */  member
137 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar)); in xmlBufCreate()
138 if (ret->content == NULL) { in xmlBufCreate()
143 ret->content[0] = 0; in xmlBufCreate()
172 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar)); in xmlBufCreateSize()
173 if (ret->content == NULL) { in xmlBufCreateSize()
178 ret->content[0] = 0; in xmlBufCreateSize()
180 ret->content = NULL; in xmlBufCreateSize()
208 ret = buf->content; in xmlBufDetach()
209 buf->content = NULL; in xmlBufDetach()
252 ret->content = (xmlChar *) mem; in xmlBufCreateStatic()
316 buf->contentIO = buf->content; in xmlBufSetAllocationScheme()
341 } else if ((buf->content != NULL) && in xmlBufFree()
343 xmlFree(buf->content); in xmlBufFree()
357 if (buf->content == NULL) return; in xmlBufEmpty()
361 buf->content = BAD_CAST ""; in xmlBufEmpty()
364 size_t start_buf = buf->content - buf->contentIO; in xmlBufEmpty()
367 buf->content = buf->contentIO; in xmlBufEmpty()
368 buf->content[0] = 0; in xmlBufEmpty()
370 buf->content[0] = 0; in xmlBufEmpty()
401 buf->content += len; in xmlBufShrink()
409 size_t start_buf = buf->content - buf->contentIO; in xmlBufShrink()
411 memmove(buf->contentIO, &buf->content[0], buf->use); in xmlBufShrink()
412 buf->content = buf->contentIO; in xmlBufShrink()
413 buf->content[buf->use] = 0; in xmlBufShrink()
418 memmove(buf->content, &buf->content[len], buf->use); in xmlBufShrink()
419 buf->content[buf->use] = 0; in xmlBufShrink()
476 size_t start_buf = buf->content - buf->contentIO; in xmlBufGrowInternal()
484 buf->content = newbuf + start_buf; in xmlBufGrowInternal()
486 newbuf = (xmlChar *) xmlRealloc(buf->content, size); in xmlBufGrowInternal()
491 buf->content = newbuf; in xmlBufGrowInternal()
558 if (buf->content == NULL) { in xmlBufDump()
568 ret = fwrite(buf->content, sizeof(xmlChar), buf->use, file); in xmlBufDump()
587 return(buf->content); in xmlBufContent()
606 return(&buf->content[buf->use]); in xmlBufEnd()
630 buf->content[buf->use] = 0; in xmlBufAddLen()
653 buf->content[buf->use] = 0; in xmlBufErase()
808 start_buf = buf->content - buf->contentIO; in xmlBufResize()
812 memmove(buf->contentIO, buf->content, buf->use); in xmlBufResize()
813 buf->content = buf->contentIO; in xmlBufResize()
814 buf->content[buf->use] = 0; in xmlBufResize()
823 buf->content = rebuf + start_buf; in xmlBufResize()
826 if (buf->content == NULL) { in xmlBufResize()
829 rebuf = (xmlChar *) xmlRealloc(buf->content, newSize); in xmlBufResize()
838 memcpy(rebuf, buf->content, buf->use); in xmlBufResize()
839 xmlFree(buf->content); in xmlBufResize()
847 buf->content = rebuf; in xmlBufResize()
908 memmove(&buf->content[buf->use], str, len*sizeof(xmlChar)); in xmlBufAdd()
910 buf->content[buf->use] = 0; in xmlBufAdd()
957 size_t start_buf = buf->content - buf->contentIO; in xmlBufAddHead()
963 buf->content -= len; in xmlBufAddHead()
964 memmove(&buf->content[0], str, len); in xmlBufAddHead()
988 memmove(&buf->content[len], &buf->content[0], buf->use); in xmlBufAddHead()
989 memmove(&buf->content[0], str, len); in xmlBufAddHead()
991 buf->content[buf->use] = 0; in xmlBufAddHead()
1048 buf->content[buf->use++] = *cur; in xmlBufCCat()
1050 buf->content[buf->use] = 0; in xmlBufCCat()
1185 ret->content = buffer->content; in xmlBufFromBuffer()
1241 ret->content = buf->content; in xmlBufBackToBuffer()
1265 if ((buffer != NULL) && (buffer->content != NULL) && in xmlBufMergeBuffer()
1267 ret = xmlBufAdd(buf, buffer->content, buffer->use); in xmlBufMergeBuffer()
1287 input->base = input->cur = buf->content; in xmlBufResetInput()
1288 input->end = &buf->content[buf->use]; in xmlBufResetInput()
1308 base = input->base - buf->content; in xmlBufGetInputBase()
1338 input->base = &buf->content[base]; in xmlBufSetInputBaseCur()
1340 input->end = &buf->content[buf->use]; in xmlBufSetInputBaseCur()