Lines Matching defs:in

161  * Returns 0 in case of error, the index in the stack otherwise
216 * in ISO-Latin or UTF-8, and the current 16 bit value if compiled
217 * in UNICODE mode. This should be used internally by the parser
232 * in UTF-8 mode. It also pop-up unfinished entities on the fly.
296 * bytes in the input buffer. Implement the end of line normalization:
298 * If the encoding is unspecified, in the case we find an ISO-Latin-1
299 * char, then the encoding converter is plugged in automatically.
396 * input encoding didn't get properly advertized in the
425 * skip all blanks character found at that point in the input streams.
466 * DTD: 1 means that this element is valid only in the Loose DTD
467 * 2 means that this element is valid only in the Frameset DTD
1046 * This is not reentrant. Call xmlInitParser() once before processing in
1047 * case of use in multithreaded programs.
1067 * @tag: The tag name in lowercase
1069 * Lookup the HTML tag in the ElementTable
1214 * The list is kept in htmlStartClose array. This function is
1250 * The list is kept in htmlStartClose array. This function checks
1277 * The list is kept in htmlStartClose array. This function checks
1355 * characters in the current element.
1358 * in case of error.
1438 * A bunch still in the 128-255 range
1735 * Lookup the given entity in EntitiesTable
1758 * Lookup the given entity in EntitiesTable
1783 * @in: a pointer to an array of UTF-8 chars
1784 * @inlen: the length of @in
1786 * Take a block of UTF-8 chars in and try to convert it to an ASCII
1796 const unsigned char* in, int *inlen) {
1797 const unsigned char* processed = in;
1800 const unsigned char* instart = in;
1806 if (in == NULL) {
1814 inend = in + (*inlen);
1816 while (in < inend) {
1817 d = *in++;
1820 /* trailing byte in leading position */
1828 /* no chance for this in Ascii */
1834 if (inend - in < trailing) {
1839 if ((in >= inend) || (((d= *in++) & 0xC0) != 0x80))
1875 processed = in;
1886 * @in: a pointer to an array of UTF-8 chars
1887 * @inlen: the length of @in
1890 * Take a block of UTF-8 chars in and try to convert it to an ASCII
1900 const unsigned char* in, int *inlen, int quoteChar) {
1901 const unsigned char* processed = in;
1904 const unsigned char* instart = in;
1909 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL))
1912 inend = in + (*inlen);
1913 while (in < inend) {
1914 d = *in++;
1917 /* trailing byte in leading position */
1925 /* no chance for this in Ascii */
1931 if (inend - in < trailing)
1935 if (((d= *in++) & 0xC0) != 0x80) {
1974 processed = in;
2086 /* keep ws in constructs like ...<b> </b>...
2096 /* keep ws in constructs like <p><b>xy</b> <i>z</i><p>
2261 const xmlChar *in;
2270 in = ctxt->input->cur;
2271 if (((*in >= 0x61) && (*in <= 0x7A)) ||
2272 ((*in >= 0x41) && (*in <= 0x5A)) ||
2273 (*in == '_') || (*in == ':')) {
2274 in++;
2275 while (((*in >= 0x61) && (*in <= 0x7A)) ||
2276 ((*in >= 0x41) && (*in <= 0x5A)) ||
2277 ((*in >= 0x30) && (*in <= 0x39)) ||
2278 (*in == '_') || (*in == '-') ||
2279 (*in == ':') || (*in == '.'))
2280 in++;
2281 if ((*in > 0) && (*in < 0x80)) {
2282 count = in - ctxt->input->cur;
2284 ctxt->input->cur = in;
2500 * Lookup the entity in the table.
2523 * will be handled later in xmlStringGetNodeList, unless it was
2670 * Script data ( %Script; in the DTD) can be the content of the SCRIPT
2677 * as CDATA but SGML allows entities references in attributes so their
2738 "Invalid char in CDATA 0x%X\n", cur);
2778 "Invalid char in CDATA 0x%X\n", cur);
2844 * Returns the function returns SystemLiteral and in the second
3245 * Returns the attribute name, and the value in *value.
3426 * Returns 0 in case of success and -1 in case of error.
3661 * Error, unless in recover mode where we search forwards
3671 * If the name read is not one of the element in the parsing stack
3725 * parse and handle entity references in content,
3726 * this will end-up in a call to character() since this is either a
3874 * Sometimes DOCTYPE arrives in the middle of the document
3935 "detected an error in element content\n",
4094 * Returns 0, -1 in case of error. the parser context is augmented
4211 * Returns 0 in case of success and -1 in case of error
4317 * document in ctxt->myDoc is not freed.
4331 * Returns the htmlParserCtxtPtr or NULL in case of allocation error
4357 * Create a parser context for an HTML in-memory document.
4470 * (first) is available in the input stream.
4483 htmlParserInputPtr in;
4487 in = ctxt->input;
4488 if (in == NULL) return(-1);
4489 base = in->cur - in->base;
4493 if (in->buf == NULL) {
4494 buf = in->base;
4495 len = in->length;
4497 buf = in->buf->buffer->content;
4498 len = in->buf->buffer->use;
4544 return(base - (in->cur - in->base));
4574 htmlParserInputPtr in;
4633 in = ctxt->input;
4634 if (in == NULL) break;
4635 if (in->buf == NULL)
4636 avail = in->length - (in->cur - in->base);
4638 avail = in->buf->buffer->use - (in->cur - in->base);
4652 cur = in->cur[0];
4668 cur = in->cur[0];
4671 if (in->buf == NULL)
4672 avail = in->length - (in->cur - in->base);
4674 avail = in->buf->buffer->use - (in->cur - in->base);
4683 cur = in->cur[0];
4684 next = in->cur[1];
4713 if (in->buf == NULL)
4714 avail = in->length - (in->cur - in->base);
4716 avail = in->buf->buffer->use - (in->cur - in->base);
4719 cur = in->cur[0];
4720 next = in->cur[1];
4722 (in->cur[2] == '-') && (in->cur[3] == '-')) {
4773 if (in->buf == NULL)
4774 avail = in->length - (in->cur - in->base);
4776 avail = in->buf->buffer->use - (in->cur - in->base);
4779 cur = in->cur[0];
4780 next = in->cur[1];
4782 (in->cur[2] == '-') && (in->cur[3] == '-')) {
4814 if (in->buf == NULL)
4815 avail = in->length - (in->cur - in->base);
4817 avail = in->buf->buffer->use - (in->cur - in->base);
4820 cur = in->cur[0];
4827 next = in->cur[1];
4829 (in->cur[2] == '-') && (in->cur[3] == '-')) {
4872 cur = in->cur[0];
4881 if (in->cur[1] == '/') {
4982 cur = in->cur[0];
4998 in->cur++;
5004 cur = in->cur[0];
5005 next = in->cur[1];
5019 val = in->cur[idx + 2];
5035 * Sometimes DOCTYPE arrives in the middle of the document
5050 (in->cur[2] == '-') && (in->cur[3] == '-')) {
5120 "detected an error in element content\n",
5293 * @size: the size in byte of the chunk
5334 xmlParserInputBufferPtr in = ctxt->input->buf;
5335 if ((in->encoder != NULL) && (in->buffer != NULL) &&
5336 (in->raw != NULL)) {
5339 nbchars = xmlCharEncInFunc(in->encoder, in->buffer, in->raw);
5376 * @size: number of chars in the array
5380 * Create a parser context for using the HTML parser in push mode
5473 * Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
5515 * parse an HTML in-memory document and build a tree.
5744 * @node: an htmlNodePtr in a tree
5749 * only uses the HTML enhancements in a SAX parser)
5786 * Free a string if it is not owned by the "dict" dictionnary in the
5888 * Returns 0 in case of success, the set of unknown or unimplemented options
5889 * in case of error.
5986 * parse an XML in-memory document and build a tree.
6035 * parse an XML in-memory document and build a tree.
6146 * parse an XML in-memory document and build a tree.
6214 * parse an XML in-memory document and build a tree.