Blame gettext-tools/gnulib-lib/libxml/buf.h

Packit Bot 06c835
/*
Packit Bot 06c835
 * Summary: Internal Interfaces for memory buffers in libxml2
Packit Bot 06c835
 * Description: this module describes most of the new xmlBuf buffer
Packit Bot 06c835
 *              entry points, those are private routines, with a
Packit Bot 06c835
 *              few exceptions exported in tree.h. This was added
Packit Bot 06c835
 *              in 2.9.0.
Packit Bot 06c835
 *
Packit Bot 06c835
 * Copy: See Copyright for the status of this software.
Packit Bot 06c835
 *
Packit Bot 06c835
 * Author: Daniel Veillard
Packit Bot 06c835
 */
Packit Bot 06c835
Packit Bot 06c835
#ifndef __XML_BUF_H__
Packit Bot 06c835
#define __XML_BUF_H__
Packit Bot 06c835
Packit Bot 06c835
#include <libxml/tree.h>
Packit Bot 06c835
Packit Bot 06c835
#ifdef __cplusplus
Packit Bot 06c835
extern "C" {
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
xmlBufPtr xmlBufCreate(void);
Packit Bot 06c835
xmlBufPtr xmlBufCreateSize(size_t size);
Packit Bot 06c835
xmlBufPtr xmlBufCreateStatic(void *mem, size_t size);
Packit Bot 06c835
Packit Bot 06c835
int xmlBufSetAllocationScheme(xmlBufPtr buf,
Packit Bot 06c835
                              xmlBufferAllocationScheme scheme);
Packit Bot 06c835
int xmlBufGetAllocationScheme(xmlBufPtr buf);
Packit Bot 06c835
Packit Bot 06c835
void xmlBufFree(xmlBufPtr buf);
Packit Bot 06c835
void xmlBufEmpty(xmlBufPtr buf);
Packit Bot 06c835
Packit Bot 06c835
/* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
Packit Bot 06c835
int xmlBufGrow(xmlBufPtr buf, int len);
Packit Bot 06c835
int xmlBufInflate(xmlBufPtr buf, size_t len);
Packit Bot 06c835
int xmlBufResize(xmlBufPtr buf, size_t len);
Packit Bot 06c835
Packit Bot 06c835
int xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
Packit Bot 06c835
int xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len);
Packit Bot 06c835
int xmlBufCat(xmlBufPtr buf, const xmlChar *str);
Packit Bot 06c835
int xmlBufCCat(xmlBufPtr buf, const char *str);
Packit Bot 06c835
int xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string);
Packit Bot 06c835
int xmlBufWriteChar(xmlBufPtr buf, const char *string);
Packit Bot 06c835
int xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string);
Packit Bot 06c835
Packit Bot 06c835
size_t xmlBufAvail(const xmlBufPtr buf);
Packit Bot 06c835
size_t xmlBufLength(const xmlBufPtr buf);
Packit Bot 06c835
/* size_t xmlBufUse(const xmlBufPtr buf); */
Packit Bot 06c835
int xmlBufIsEmpty(const xmlBufPtr buf);
Packit Bot 06c835
int xmlBufAddLen(xmlBufPtr buf, size_t len);
Packit Bot 06c835
int xmlBufErase(xmlBufPtr buf, size_t len);
Packit Bot 06c835
Packit Bot 06c835
/* const xmlChar * xmlBufContent(const xmlBuf *buf); */
Packit Bot 06c835
/* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
Packit Bot 06c835
Packit Bot 06c835
xmlChar * xmlBufDetach(xmlBufPtr buf);
Packit Bot 06c835
Packit Bot 06c835
size_t xmlBufDump(FILE *file, xmlBufPtr buf);
Packit Bot 06c835
Packit Bot 06c835
xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer);
Packit Bot 06c835
xmlBufferPtr xmlBufBackToBuffer(xmlBufPtr buf);
Packit Bot 06c835
int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer);
Packit Bot 06c835
Packit Bot 06c835
int xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input);
Packit Bot 06c835
size_t xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input);
Packit Bot 06c835
int xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input,
Packit Bot 06c835
                          size_t base, size_t cur);
Packit Bot 06c835
#ifdef __cplusplus
Packit Bot 06c835
}
Packit Bot 06c835
#endif
Packit Bot 06c835
#endif /* __XML_BUF_H__ */
Packit Bot 06c835