1 | #ifndef XML_BUF_H_PRIVATE__
|
---|
2 | #define XML_BUF_H_PRIVATE__
|
---|
3 |
|
---|
4 | #include <libxml/tree.h>
|
---|
5 |
|
---|
6 | XML_HIDDEN xmlBufPtr
|
---|
7 | xmlBufCreate(void);
|
---|
8 | XML_HIDDEN xmlBufPtr
|
---|
9 | xmlBufCreateSize(size_t size);
|
---|
10 |
|
---|
11 | XML_HIDDEN int
|
---|
12 | xmlBufSetAllocationScheme(xmlBufPtr buf, xmlBufferAllocationScheme scheme);
|
---|
13 | XML_HIDDEN int
|
---|
14 | xmlBufGetAllocationScheme(xmlBufPtr buf);
|
---|
15 |
|
---|
16 | XML_HIDDEN void
|
---|
17 | xmlBufFree(xmlBufPtr buf);
|
---|
18 | XML_HIDDEN void
|
---|
19 | xmlBufEmpty(xmlBufPtr buf);
|
---|
20 |
|
---|
21 | /* size_t xmlBufShrink(xmlBufPtr buf, size_t len); */
|
---|
22 | XML_HIDDEN int
|
---|
23 | xmlBufGrow(xmlBufPtr buf, int len);
|
---|
24 | XML_HIDDEN int
|
---|
25 | xmlBufResize(xmlBufPtr buf, size_t len);
|
---|
26 |
|
---|
27 | XML_HIDDEN int
|
---|
28 | xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len);
|
---|
29 | XML_HIDDEN int
|
---|
30 | xmlBufCat(xmlBufPtr buf, const xmlChar *str);
|
---|
31 |
|
---|
32 | XML_HIDDEN size_t
|
---|
33 | xmlBufAvail(const xmlBufPtr buf);
|
---|
34 | XML_HIDDEN size_t
|
---|
35 | xmlBufLength(const xmlBufPtr buf);
|
---|
36 | /* size_t xmlBufUse(const xmlBufPtr buf); */
|
---|
37 | XML_HIDDEN int
|
---|
38 | xmlBufIsEmpty(const xmlBufPtr buf);
|
---|
39 | XML_HIDDEN int
|
---|
40 | xmlBufAddLen(xmlBufPtr buf, size_t len);
|
---|
41 |
|
---|
42 | /* const xmlChar * xmlBufContent(const xmlBuf *buf); */
|
---|
43 | /* const xmlChar * xmlBufEnd(xmlBufPtr buf); */
|
---|
44 |
|
---|
45 | XML_HIDDEN xmlChar *
|
---|
46 | xmlBufDetach(xmlBufPtr buf);
|
---|
47 |
|
---|
48 | XML_HIDDEN size_t
|
---|
49 | xmlBufDump(FILE *file, xmlBufPtr buf);
|
---|
50 |
|
---|
51 | XML_HIDDEN xmlBufPtr
|
---|
52 | xmlBufFromBuffer(xmlBufferPtr buffer);
|
---|
53 | XML_HIDDEN xmlBufferPtr
|
---|
54 | xmlBufBackToBuffer(xmlBufPtr buf);
|
---|
55 |
|
---|
56 | XML_HIDDEN int
|
---|
57 | xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input);
|
---|
58 | XML_HIDDEN int
|
---|
59 | xmlBufUpdateInput(xmlBufPtr buf, xmlParserInputPtr input, size_t pos);
|
---|
60 |
|
---|
61 | #endif /* XML_BUF_H_PRIVATE__ */
|
---|