Lines Matching refs:content
44 xmlChar *content; /* The buffer content UTF8 */
137 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar));
138 if (ret->content == NULL) {
143 ret->content[0] = 0;
172 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar));
173 if (ret->content == NULL) {
178 ret->content[0] = 0;
180 ret->content = NULL;
190 * caller. The buffer is reset to an empty content.
208 ret = buf->content;
209 buf->content = NULL;
252 ret->content = (xmlChar *) mem;
312 * the contentIO field with the current content
316 buf->contentIO = buf->content;
325 * Frees an XML buffer. It frees both the content and the structure which
341 } else if ((buf->content != NULL) &&
343 xmlFree(buf->content);
357 if (buf->content == NULL) return;
361 buf->content = BAD_CAST "";
364 size_t start_buf = buf->content - buf->contentIO;
367 buf->content = buf->contentIO;
368 buf->content[0] = 0;
370 buf->content[0] = 0;
398 * we just move the content pointer, but also make sure
401 buf->content += len;
409 size_t start_buf = buf->content - buf->contentIO;
411 memmove(buf->contentIO, &buf->content[0], buf->use);
412 buf->content = buf->contentIO;
413 buf->content[buf->use] = 0;
418 memmove(buf->content, &buf->content[len], buf->use);
419 buf->content[buf->use] = 0;
476 size_t start_buf = buf->content - buf->contentIO;
484 buf->content = newbuf + start_buf;
486 newbuf = (xmlChar *) xmlRealloc(buf->content, size);
491 buf->content = newbuf;
558 if (buf->content == NULL) {
561 "xmlBufDump: buf->content == NULL\n");
568 ret = fwrite(buf->content, sizeof(xmlChar), buf->use, file);
576 * Function to extract the content of a buffer
578 * Returns the internal content
587 return(buf->content);
594 * Function to extract the end of the content of a buffer
596 * Returns the end of the internal content or NULL in case of error
606 return(&buf->content[buf->use]);
630 buf->content[buf->use] = 0;
653 buf->content[buf->use] = 0;
664 * Returns the length of data in the internal content
683 * Returns the length of data in the internal content
808 start_buf = buf->content - buf->contentIO;
812 memmove(buf->contentIO, buf->content, buf->use);
813 buf->content = buf->contentIO;
814 buf->content[buf->use] = 0;
823 buf->content = rebuf + start_buf;
826 if (buf->content == NULL) {
829 rebuf = (xmlChar *) xmlRealloc(buf->content, newSize);
838 memcpy(rebuf, buf->content, buf->use);
839 xmlFree(buf->content);
847 buf->content = rebuf;
908 memmove(&buf->content[buf->use], str, len*sizeof(xmlChar));
910 buf->content[buf->use] = 0;
957 size_t start_buf = buf->content - buf->contentIO;
963 buf->content -= len;
964 memmove(&buf->content[0], str, len);
988 memmove(&buf->content[len], &buf->content[0], buf->use);
989 memmove(&buf->content[0], str, len);
991 buf->content[buf->use] = 0;
1048 buf->content[buf->use++] = *cur;
1050 buf->content[buf->use] = 0;
1185 ret->content = buffer->content;
1241 ret->content = buf->content;
1252 * The content of @buffer is appended to @buf and @buffer is freed
1265 if ((buffer != NULL) && (buffer->content != NULL) &&
1267 ret = xmlBufAdd(buf, buffer->content, buffer->use);
1287 input->base = input->cur = buf->content;
1288 input->end = &buf->content[buf->use];
1308 base = input->base - buf->content;
1328 * after a possible reallocation of its content
1338 input->base = &buf->content[base];
1340 input->end = &buf->content[buf->use];