Lines Matching refs:input

35         /**The parser input stream of bytes*/
36 CRInput *input;
43 *from the input stream.
91 *Peeks the next char from the input stream of the current tokenizer.
106 *Reads the next char from the input stream of the current parser.
119 *the input of the parser.
125 *inside the current parser input. Must
129 (a_tknzr)->input, a_pos) ; \
134 *parser input.
141 (PRIVATE (a_tknzr)->input, a_addr) ; \
145 *Peeks a byte from the topmost parser input at
165 *Reads a byte from the topmost parser input
173 cr_input_read_byte (PRIVATE (a_tknzr)->input, a_byte_ptr) ;\
178 *parser input. Don't update line and column number.
185 status = cr_input_seek_index (PRIVATE (a_tknzr)->input, \
200 (PRIVATE (a_tknzr)->input,0, &nb_chars) ; \
271 && PRIVATE (a_this)->input
296 cr_input_get_end_of_file (PRIVATE (a_this)->input, &is_eof);
386 *Go ahead in the parser input, skipping all the spaces.
400 && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
402 status = cr_input_peek_char (PRIVATE (a_this)->input, &cur_char);
414 (PRIVATE (a_this)->input, &nb_chars);
440 && PRIVATE (a_this)->input,
679 && PRIVATE (a_this)->input
807 && PRIVATE (a_this)->input
877 status = cr_input_peek_char (PRIVATE (a_this)->input,
940 && PRIVATE (a_this)->input
1030 && PRIVATE (a_this)->input
1082 && PRIVATE (a_this)->input,
1136 && PRIVATE (a_this)->input
1385 && PRIVATE (a_this)->input
1425 && PRIVATE (a_this)->input,
1437 if (BYTE (PRIVATE (a_this)->input, 1, NULL) == 'i'
1438 && BYTE (PRIVATE (a_this)->input, 2, NULL) == 'm'
1439 && BYTE (PRIVATE (a_this)->input, 3, NULL) == 'p'
1440 && BYTE (PRIVATE (a_this)->input, 4, NULL) == 'o'
1441 && BYTE (PRIVATE (a_this)->input, 5, NULL) == 'r'
1442 && BYTE (PRIVATE (a_this)->input, 6, NULL) == 't'
1443 && BYTE (PRIVATE (a_this)->input, 7, NULL) == 'a'
1444 && BYTE (PRIVATE (a_this)->input, 8, NULL) == 'n'
1445 && BYTE (PRIVATE (a_this)->input, 9, NULL) == 't') {
1493 && PRIVATE (a_this)->input,
1624 CRInput *input = NULL;
1626 input = cr_input_new_from_buf (a_buf, a_len, a_enc,
1629 g_return_val_if_fail (input != NULL, NULL);
1631 result = cr_tknzr_new (input);
1641 CRInput *input = NULL;
1643 input = cr_input_new_from_uri ((const gchar *) a_file_uri, a_enc);
1644 g_return_val_if_fail (input != NULL, NULL);
1646 result = cr_tknzr_new (input);
1681 if (PRIVATE (a_this)->input) {
1682 cr_input_unref (PRIVATE (a_this)->input);
1685 PRIVATE (a_this)->input = a_input;
1687 cr_input_ref (PRIVATE (a_this)->input);
1697 *a_input = PRIVATE (a_this)->input;
1703 *Tokenizer input handling routines
1707 *Reads the next byte from the parser input stream.
1720 return cr_input_read_byte (PRIVATE (a_this)->input, a_byte);
1725 *Reads the next char from the parser input stream.
1735 && PRIVATE (a_this)->input
1739 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1745 return cr_input_read_char (PRIVATE (a_this)->input, a_char);
1749 *Peeks a char from the parser input stream.
1760 && PRIVATE (a_this)->input
1764 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1770 return cr_input_peek_char (PRIVATE (a_this)->input, a_char);
1774 *Peeks a byte ahead at a given postion in the parser input stream.
1777 *byte in the parser input stream.
1786 && PRIVATE (a_this)->input && a_byte,
1790 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1796 return cr_input_peek_byte (PRIVATE (a_this)->input,
1804 *byte in the parser input stream.
1814 && PRIVATE (a_this)->input, 0);
1816 return cr_input_peek_byte2 (PRIVATE (a_this)->input, a_offset, a_eof);
1820 *Gets the number of bytes left in the topmost input stream
1829 && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
1832 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1838 return cr_input_get_nb_bytes_left (PRIVATE (a_this)->input);
1845 && PRIVATE (a_this)->input
1849 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1855 return cr_input_get_cur_pos (PRIVATE (a_this)->input, a_pos);
1868 (PRIVATE (a_this)->input, a_loc) ;
1875 && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
1877 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1883 return cr_input_get_cur_byte_addr (PRIVATE (a_this)->input, a_addr);
1890 && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
1893 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1899 return cr_input_seek_index (PRIVATE (a_this)->input, a_origin, a_pos);
1908 && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
1911 cr_input_set_cur_pos (PRIVATE (a_this)->input,
1917 status = cr_input_consume_chars (PRIVATE (a_this)->input,
1927 && PRIVATE (a_this)->input, CR_BAD_PARAM_ERROR);
1934 return cr_input_set_cur_pos (PRIVATE (a_this)->input, a_pos);
1950 *Returns the next token of the input stream.
1969 CRInput *input = NULL;
1976 && PRIVATE (a_this)->input,
1988 (PRIVATE (a_this)->input, &reached_eof);
1996 input = PRIVATE (a_this)->input;
2005 if (BYTE (input, 2, NULL) == 'f'
2006 && BYTE (input, 3, NULL) == 'o'
2007 && BYTE (input, 4, NULL) == 'n'
2008 && BYTE (input, 5, NULL) == 't'
2009 && BYTE (input, 6, NULL) == '-'
2010 && BYTE (input, 7, NULL) == 'f'
2011 && BYTE (input, 8, NULL) == 'a'
2012 && BYTE (input, 9, NULL) == 'c'
2013 && BYTE (input, 10, NULL) == 'e') {
2025 if (BYTE (input, 2, NULL) == 'c'
2026 && BYTE (input, 3, NULL) == 'h'
2027 && BYTE (input, 4, NULL) == 'a'
2028 && BYTE (input, 5, NULL) == 'r'
2029 && BYTE (input, 6, NULL) == 's'
2030 && BYTE (input, 7, NULL) == 'e'
2031 && BYTE (input, 8, NULL) == 't') {
2043 if (BYTE (input, 2, NULL) == 'i'
2044 && BYTE (input, 3, NULL) == 'm'
2045 && BYTE (input, 4, NULL) == 'p'
2046 && BYTE (input, 5, NULL) == 'o'
2047 && BYTE (input, 6, NULL) == 'r'
2048 && BYTE (input, 7, NULL) == 't') {
2060 if (BYTE (input, 2, NULL) == 'm'
2061 && BYTE (input, 3, NULL) == 'e'
2062 && BYTE (input, 4, NULL) == 'd'
2063 && BYTE (input, 5, NULL) == 'i'
2064 && BYTE (input, 6, NULL) == 'a') {
2076 if (BYTE (input, 2, NULL) == 'p'
2077 && BYTE (input, 3, NULL) == 'a'
2078 && BYTE (input, 4, NULL) == 'g'
2079 && BYTE (input, 5, NULL) == 'e') {
2105 if (BYTE (input, 2, NULL) == 'r'
2106 && BYTE (input, 3, NULL) == 'l'
2107 && BYTE (input, 4, NULL) == '(') {
2125 if (BYTE (input, 2, NULL) == 'g'
2126 && BYTE (input, 3, NULL) == 'b'
2127 && BYTE (input, 4, NULL) == '(') {
2145 if (BYTE (input, 2, NULL) == '!'
2146 && BYTE (input, 3, NULL) == '-'
2147 && BYTE (input, 4, NULL) == '-') {
2161 if (BYTE (input, 2, NULL) == '-'
2162 && BYTE (input, 3, NULL) == '>') {
2190 if (BYTE (input, 2, NULL) == '=') {
2204 if (BYTE (input, 2, NULL) == '=') {
2218 if (BYTE (input, 2, NULL) == '*') {
2386 next_bytes[0] = BYTE (input, 1, NULL);
2387 next_bytes[1] = BYTE (input, 2, NULL);
2388 next_bytes[2] = BYTE (input, 3, NULL);
2389 next_bytes[3] = BYTE (input, 4, NULL);
2549 (PRIVATE (a_this)->input, &next_c);
2598 *store the previous position input stream pos.
2629 && PRIVATE (a_this)->input
2736 if (PRIVATE (a_this) && PRIVATE (a_this)->input) {
2737 if (cr_input_unref (PRIVATE (a_this)->input)
2739 PRIVATE (a_this)->input = NULL;