Lines Matching defs:in
164 * Returns 0 in case of error, the index in the stack otherwise
222 * Returns 0 in case of error, the index in the stack otherwise
251 * Returns 0 in case of error, the pointer to NodeInfo otherwise
276 * in ISO-Latin or UTF-8, and the current 16 bit value if compiled
277 * in UNICODE mode. This should be used internally by the parser
292 * in UTF-8 mode. It also pop-up unfinished entities on the fly.
352 * Ty to find and encoding in the current data available in the input
357 * should only be used in case of error, not as a default.
406 * bytes in the input buffer. Implement the end of line normalization:
408 * If the encoding is unspecified, in the case we find an ISO-Latin-1
409 * char, then the encoding converter is plugged in automatically.
539 * input encoding didn't get properly advertized in the
568 * skip all blanks character found at that point in the input streams.
609 * DTD: 1 means that this element is valid only in the Loose DTD
610 * 2 means that this element is valid only in the Frameset DTD
1106 /* most tags in in FONTSTYLE, PHRASE and SPECIAL should close <head> */
1226 * This is not reentrant. Call xmlInitParser() once before processing in
1227 * case of use in multithreaded programs.
1247 * @tag: The tag name in lowercase
1249 * Lookup the HTML tag in the ElementTable
1394 * The list is kept in htmlStartClose array. This function is
1430 * The list is kept in htmlStartClose array. This function checks
1457 * The list is kept in htmlStartClose array. This function checks
1546 * characters in the current element.
1549 * in case of error.
1629 * A bunch still in the 128-255 range
1926 * Lookup the given entity in EntitiesTable
1949 * Lookup the given entity in EntitiesTable
1974 * @in: a pointer to an array of UTF-8 chars
1975 * @inlen: the length of @in
1977 * Take a block of UTF-8 chars in and try to convert it to an ASCII
1987 const unsigned char* in, int *inlen) {
1988 const unsigned char* processed = in;
1991 const unsigned char* instart = in;
1997 if (in == NULL) {
2005 inend = in + (*inlen);
2007 while (in < inend) {
2008 d = *in++;
2011 /* trailing byte in leading position */
2019 /* no chance for this in Ascii */
2025 if (inend - in < trailing) {
2030 if ((in >= inend) || (((d= *in++) & 0xC0) != 0x80))
2066 processed = in;
2077 * @in: a pointer to an array of UTF-8 chars
2078 * @inlen: the length of @in
2081 * Take a block of UTF-8 chars in and try to convert it to an ASCII
2091 const unsigned char* in, int *inlen, int quoteChar) {
2092 const unsigned char* processed = in;
2095 const unsigned char* instart = in;
2100 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL))
2103 inend = in + (*inlen);
2104 while (in < inend) {
2105 d = *in++;
2108 /* trailing byte in leading position */
2116 /* no chance for this in Ascii */
2122 if (inend - in < trailing)
2126 if (((d= *in++) & 0xC0) != 0x80) {
2165 processed = in;
2277 /* keep ws in constructs like ...<b> </b>...
2287 /* keep ws in constructs like <p><b>xy</b> <i>z</i><p>
2454 const xmlChar *in;
2463 in = ctxt->input->cur;
2464 if (((*in >= 0x61) && (*in <= 0x7A)) ||
2465 ((*in >= 0x41) && (*in <= 0x5A)) ||
2466 (*in == '_') || (*in == ':')) {
2467 in++;
2468 while (((*in >= 0x61) && (*in <= 0x7A)) ||
2469 ((*in >= 0x41) && (*in <= 0x5A)) ||
2470 ((*in >= 0x30) && (*in <= 0x39)) ||
2471 (*in == '_') || (*in == '-') ||
2472 (*in == ':') || (*in == '.'))
2473 in++;
2474 if ((*in > 0) && (*in < 0x80)) {
2475 count = in - ctxt->input->cur;
2477 ctxt->input->cur = in;
2693 * Lookup the entity in the table.
2716 * will be handled later in xmlStringGetNodeList, unless it was
2863 * Script data ( %Script; in the DTD) can be the content of the SCRIPT
2870 * as CDATA but SGML allows entities references in attributes so their
2889 * In recovery mode, only break if end tag match the
2931 "Invalid char in CDATA 0x%X\n", cur);
2974 "Invalid char in CDATA 0x%X\n", cur);
3057 * Returns the function returns SystemLiteral and in the second
3458 * Returns the attribute name, and the value in *value.
3647 * EmptyElement. In both case we don't parse the tag closing chars.
3659 * Returns 0 in case of success, -1 in case of error and 1 if discarded
3900 * Error, unless in recover mode where we search forwards
3910 * if we ignored misplaced tags in htmlParseStartTag don't pop them
3922 * If the name read is not one of the element in the parsing stack
3977 * parse and handle entity references in content,
3978 * this will end-up in a call to character() since this is either a
4131 * Sometimes DOCTYPE arrives in the middle of the document
4192 "detected an error in element content\n",
4541 * Sometimes DOCTYPE arrives in the middle of the document
4606 "detected an error in element content\n",
4638 * Returns 0, -1 in case of error. the parser context is augmented
4775 * Returns 0 in case of success and -1 in case of error
4885 * document in ctxt->myDoc is not freed.
4899 * Returns the htmlParserCtxtPtr or NULL in case of allocation error
4925 * Create a parser context for an HTML in-memory document.
5036 * (first) is available in the input stream.
5051 htmlParserInputPtr in;
5057 in = ctxt->input;
5058 if (in == NULL)
5061 base = in->cur - in->base;
5068 if (in->buf == NULL) {
5069 buf = in->base;
5070 len = in->length;
5072 buf = xmlBufContent(in->buf->buffer);
5073 len = xmlBufUse(in->buf->buffer);
5139 return (base - (in->cur - in->base));
5165 * Try to find if any char of the stop-Array is available in the input
5179 htmlParserInputPtr in;
5184 in = ctxt->input;
5185 if (in == NULL)
5188 base = in->cur - in->base;
5195 if (in->buf == NULL) {
5196 buf = in->base;
5197 len = in->length;
5199 buf = xmlBufContent(in->buf->buffer);
5200 len = xmlBufUse(in->buf->buffer);
5225 return (base - (in->cur - in->base));
5245 htmlParserInputPtr in;
5306 in = ctxt->input;
5307 if (in == NULL) break;
5308 if (in->buf == NULL)
5309 avail = in->length - (in->cur - in->base);
5311 avail = xmlBufUse(in->buf->buffer) - (in->cur - in->base);
5325 cur = in->cur[0];
5341 cur = in->cur[0];
5344 if (in->buf == NULL)
5345 avail = in->length - (in->cur - in->base);
5347 avail = xmlBufUse(in->buf->buffer) - (in->cur - in->base);
5356 cur = in->cur[0];
5357 next = in->cur[1];
5386 if (in->buf == NULL)
5387 avail = in->length - (in->cur - in->base);
5389 avail = xmlBufUse(in->buf->buffer) - (in->cur - in->base);
5391 * no chars in buffer
5396 * not enouth chars in buffer
5404 next = in->cur[1];
5406 cur = in->cur[0];
5408 (in->cur[2] == '-') && (in->cur[3] == '-')) {
5459 if (in->buf == NULL)
5460 avail = in->length - (in->cur - in->base);
5462 avail = xmlBufUse(in->buf->buffer) - (in->cur - in->base);
5465 cur = in->cur[0];
5466 next = in->cur[1];
5468 (in->cur[2] == '-') && (in->cur[3] == '-')) {
5500 if (in->buf == NULL)
5501 avail = in->length - (in->cur - in->base);
5503 avail = xmlBufUse(in->buf->buffer) - (in->cur - in->base);
5506 cur = in->cur[0];
5513 next = in->cur[1];
5515 (in->cur[2] == '-') && (in->cur[3] == '-')) {
5557 * no chars in buffer
5562 * not enouth chars in buffer
5570 next = in->cur[1];
5572 cur = in->cur[0];
5697 cur = in->cur[0];
5719 in->cur++;
5725 cur = in->cur[0];
5726 next = in->cur[1];
5740 val = in->cur[idx + 2];
5756 * Sometimes DOCTYPE arrives in the middle of the document
5771 (in->cur[2] == '-') && (in->cur[3] == '-')) {
5842 "detected an error in element content\n",
6015 * @size: the size in byte of the chunk
6053 xmlParserInputBufferPtr in = ctxt->input->buf;
6054 if ((in->encoder != NULL) && (in->buffer != NULL) &&
6055 (in->raw != NULL)) {
6057 size_t base = xmlBufGetInputBase(in->buffer, ctxt->input);
6060 nbchars = xmlCharEncInput(in, terminate);
6066 xmlBufSetInputBaseCur(in->buffer, ctxt->input, base, current);
6098 * @size: number of chars in the array
6102 * Create a parser context for using the HTML parser in push mode
6189 * Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
6231 * parse an HTML in-memory document and build a tree.
6460 * @node: an htmlNodePtr in a tree
6465 * only uses the HTML enhancements in a SAX parser)
6502 * Free a string if it is not owned by the "dict" dictionnary in the
6605 * Returns 0 in case of success, the set of unknown or unimplemented options
6606 * in case of error.
6723 * parse an XML in-memory document and build a tree.
6772 * parse an XML in-memory document and build a tree.
6886 * parse an XML in-memory document and build a tree.
6954 * parse an XML in-memory document and build a tree.