• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/libxml2-26/libxml2/

Lines Matching defs:content

43     xmlChar *content;		/* The buffer content UTF8 */
136 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar));
137 if (ret->content == NULL) {
142 ret->content[0] = 0;
171 ret->content = (xmlChar *) xmlMallocAtomic(ret->size * sizeof(xmlChar));
172 if (ret->content == NULL) {
177 ret->content[0] = 0;
179 ret->content = NULL;
189 * caller. The buffer is reset to an empty content.
207 ret = buf->content;
208 buf->content = NULL;
251 ret->content = (xmlChar *) mem;
310 * the contentIO field with the current content
314 buf->contentIO = buf->content;
323 * Frees an XML buffer. It frees both the content and the structure which
339 } else if ((buf->content != NULL) &&
341 xmlFree(buf->content);
355 if (buf->content == NULL) return;
359 buf->content = BAD_CAST "";
362 size_t start_buf = buf->content - buf->contentIO;
365 buf->content = buf->contentIO;
366 buf->content[0] = 0;
368 buf->content[0] = 0;
396 * we just move the content pointer, but also make sure
399 buf->content += len;
407 size_t start_buf = buf->content - buf->contentIO;
409 memmove(buf->contentIO, &buf->content[0], buf->use);
410 buf->content = buf->contentIO;
411 buf->content[buf->use] = 0;
416 memmove(buf->content, &buf->content[len], buf->use);
417 buf->content[buf->use] = 0;
462 size_t start_buf = buf->content - buf->contentIO;
470 buf->content = newbuf + start_buf;
472 newbuf = (xmlChar *) xmlRealloc(buf->content, size);
477 buf->content = newbuf;
544 if (buf->content == NULL) {
547 "xmlBufDump: buf->content == NULL\n");
554 ret = fwrite(buf->content, sizeof(xmlChar), buf->use, file);
562 * Function to extract the content of a buffer
564 * Returns the internal content
573 return(buf->content);
580 * Function to extract the end of the content of a buffer
582 * Returns the end of the internal content or NULL in case of error
592 return(&buf->content[buf->use]);
616 buf->content[buf->use] = 0;
639 buf->content[buf->use] = 0;
650 * Returns the length of data in the internal content
669 * Returns the length of data in the internal content
785 start_buf = buf->content - buf->contentIO;
789 memmove(buf->contentIO, buf->content, buf->use);
790 buf->content = buf->contentIO;
791 buf->content[buf->use] = 0;
800 buf->content = rebuf + start_buf;
803 if (buf->content == NULL) {
806 rebuf = (xmlChar *) xmlRealloc(buf->content, newSize);
815 memcpy(rebuf, buf->content, buf->use);
816 xmlFree(buf->content);
824 buf->content = rebuf;
876 memmove(&buf->content[buf->use], str, len*sizeof(xmlChar));
878 buf->content[buf->use] = 0;
925 size_t start_buf = buf->content - buf->contentIO;
931 buf->content -= len;
932 memmove(&buf->content[0], str, len);
947 memmove(&buf->content[len], &buf->content[0], buf->use);
948 memmove(&buf->content[0], str, len);
950 buf->content[buf->use] = 0;
1007 buf->content[buf->use++] = *cur;
1009 buf->content[buf->use] = 0;
1144 ret->content = buffer->content;
1200 ret->content = buf->content;
1211 * The content of @buffer is appended to @buf and @buffer is freed
1224 if ((buffer != NULL) && (buffer->content != NULL) &&
1226 ret = xmlBufAdd(buf, buffer->content, buffer->use);
1246 input->base = input->cur = buf->content;
1247 input->end = &buf->content[buf->use];
1267 base = input->base - buf->content;
1287 * after a possible reallocation of its content
1297 input->base = &buf->content[base];
1299 input->end = &buf->content[buf->use];