• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libcroco/

Lines Matching refs:a_this

279  *@a_this: the current instance of #CRInput.
284 cr_input_destroy (CRInput * a_this)
286 if (a_this == NULL)
289 if (PRIVATE (a_this)) {
290 if (PRIVATE (a_this)->in_buf && PRIVATE (a_this)->free_in_buf) {
291 g_free (PRIVATE (a_this)->in_buf);
292 PRIVATE (a_this)->in_buf = NULL;
295 g_free (PRIVATE (a_this));
296 PRIVATE (a_this) = NULL;
299 g_free (a_this);
304 *@a_this: the current instance of #CRInput.
310 cr_input_ref (CRInput * a_this)
312 g_return_if_fail (a_this && PRIVATE (a_this));
314 PRIVATE (a_this)->ref_count++;
319 *@a_this: the current instance of #CRInput.
328 cr_input_unref (CRInput * a_this)
330 g_return_val_if_fail (a_this && PRIVATE (a_this), FALSE);
332 if (PRIVATE (a_this)->ref_count) {
333 PRIVATE (a_this)->ref_count--;
336 if (PRIVATE (a_this)->ref_count == 0) {
337 cr_input_destroy (a_this);
345 *@a_this: the current instance of #CRInput.
358 cr_input_end_of_input (CRInput * a_this, gboolean * a_end_of_input)
360 g_return_val_if_fail (a_this && PRIVATE (a_this)
363 *a_end_of_input = (PRIVATE (a_this)->next_byte_index
364 >= PRIVATE (a_this)->in_buf_size) ? TRUE : FALSE;
371 *@a_this: the current instance of #CRInput.
377 cr_input_get_nb_bytes_left (CRInput * a_this)
379 g_return_val_if_fail (a_this && PRIVATE (a_this), -1);
380 g_return_val_if_fail (PRIVATE (a_this)->nb_bytes
381 <= PRIVATE (a_this)->in_buf_size, -1);
382 g_return_val_if_fail (PRIVATE (a_this)->next_byte_index
383 <= PRIVATE (a_this)->nb_bytes, -1);
385 if (PRIVATE (a_this)->end_of_input)
388 return PRIVATE (a_this)->nb_bytes - PRIVATE (a_this)->next_byte_index;
393 *@a_this: the current instance of #CRInput.
406 cr_input_read_byte (CRInput * a_this, guchar * a_byte)
408 g_return_val_if_fail (a_this && PRIVATE (a_this)
411 g_return_val_if_fail (PRIVATE (a_this)->next_byte_index <=
412 PRIVATE (a_this)->nb_bytes, CR_BAD_PARAM_ERROR);
414 if (PRIVATE (a_this)->end_of_input == TRUE)
417 *a_byte = PRIVATE (a_this)->in_buf[PRIVATE (a_this)->next_byte_index];
419 if (PRIVATE (a_this)->nb_bytes -
420 PRIVATE (a_this)->next_byte_index < 2) {
421 PRIVATE (a_this)->end_of_input = TRUE;
423 PRIVATE (a_this)->next_byte_index++;
431 *@a_this: the current instance of CRInput.
441 cr_input_read_char (CRInput * a_this, guint32 * a_char)
447 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_char,
450 if (PRIVATE (a_this)->end_of_input == TRUE)
453 nb_bytes_left = cr_input_get_nb_bytes_left (a_this);
460 (PRIVATE (a_this)->in_buf
462 PRIVATE (a_this)->next_byte_index,
467 PRIVATE (a_this)->next_byte_index += consumed;
470 if (PRIVATE (a_this)->end_of_line == TRUE) {
471 PRIVATE (a_this)->col = 1;
472 PRIVATE (a_this)->line++;
473 PRIVATE (a_this)->end_of_line = FALSE;
475 PRIVATE (a_this)->col++;
479 PRIVATE (a_this)->end_of_line = TRUE;
489 *@a_this: the "this pointer" of the current instance of #CRInput.
497 cr_input_set_line_num (CRInput * a_this, glong a_line_num)
499 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
501 PRIVATE (a_this)->line = a_line_num;
508 *@a_this: the "this pointer" of the current instance of #CRInput.
516 cr_input_get_line_num (CRInput * a_this, glong * a_line_num)
518 g_return_val_if_fail (a_this && PRIVATE (a_this)
521 *a_line_num = PRIVATE (a_this)->line;
528 *@a_this: the "this pointer" of the current instance of #CRInput.
536 cr_input_set_column_num (CRInput * a_this, glong a_col)
538 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
540 PRIVATE (a_this)->col = a_col;
547 *@a_this: the "this pointer" of the current instance of #CRInput.
555 cr_input_get_column_num (CRInput * a_this, glong * a_col)
557 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_col,
560 *a_col = PRIVATE (a_this)->col;
567 *@a_this: the "this pointer" of the current instance of #CRInput.
575 cr_input_increment_line_num (CRInput * a_this, glong a_increment)
577 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
579 PRIVATE (a_this)->line += a_increment;
586 *@a_this: the "this pointer" of the current instance of #CRInput.
594 cr_input_increment_col_num (CRInput * a_this, glong a_increment)
596 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
598 PRIVATE (a_this)->col += a_increment;
605 *@a_this: the this pointer.
616 cr_input_consume_char (CRInput * a_this, guint32 a_char)
621 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
623 if ((status = cr_input_peek_char (a_this, &c)) != CR_OK) {
628 status = cr_input_read_char (a_this, &c);
638 *@a_this: the this pointer of the current instance of #CRInput.
657 cr_input_consume_chars (CRInput * a_this, guint32 a_char, gulong * a_nb_char)
662 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_nb_char,
672 status = cr_input_consume_char (a_this, a_char);
688 *@a_this: the "this pointer" of the current instance of #CRInput.
698 cr_input_consume_white_spaces (CRInput * a_this, gulong * a_nb_chars)
704 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_nb_chars,
710 status = cr_input_peek_char (a_this, &cur_char);
716 status = cr_input_read_char (a_this, &cur_char);
735 *@a_this: the current instance of #CRInput.
747 cr_input_peek_char (CRInput * a_this, guint32 * a_char)
753 g_return_val_if_fail (a_this && PRIVATE (a_this)
756 if (PRIVATE (a_this)->next_byte_index >=
757 PRIVATE (a_this)->in_buf_size) {
761 nb_bytes_left = cr_input_get_nb_bytes_left (a_this);
768 (PRIVATE (a_this)->in_buf +
769 PRIVATE (a_this)->next_byte_index,
777 *@a_this: the current instance of #CRInput.
796 cr_input_peek_byte (CRInput * a_this, enum CRSeekPos a_origin,
801 g_return_val_if_fail (a_this && PRIVATE (a_this)
807 abs_offset = PRIVATE (a_this)->next_byte_index - 1 + a_offset;
815 abs_offset = PRIVATE (a_this)->in_buf_size - 1 - a_offset;
822 if (abs_offset < PRIVATE (a_this)->in_buf_size) {
824 *a_byte = PRIVATE (a_this)->in_buf[abs_offset];
835 *@a_this: the current byte input stream.
848 cr_input_peek_byte2 (CRInput * a_this, gulong a_offset, gboolean * a_eof)
853 g_return_val_if_fail (a_this && PRIVATE (a_this), 0);
858 status = cr_input_peek_byte (a_this, CR_SEEK_CUR, a_offset, &result);
869 *@a_this: the current instance of #CRInput.
879 cr_input_get_byte_addr (CRInput * a_this, gulong a_offset)
881 g_return_val_if_fail (a_this && PRIVATE (a_this), NULL);
883 if (a_offset >= PRIVATE (a_this)->nb_bytes) {
887 return &PRIVATE (a_this)->in_buf[a_offset];
892 *@a_this: the current input stream
900 cr_input_get_cur_byte_addr (CRInput * a_this, guchar ** a_offset)
902 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_offset,
905 if (!PRIVATE (a_this)->next_byte_index) {
910 (a_this, PRIVATE (a_this)->next_byte_index - 1);
917 *@a_this: the current instance of #CRInput.
932 cr_input_seek_index (CRInput * a_this, enum CRSeekPos a_origin, gint a_pos)
937 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
942 abs_offset = PRIVATE (a_this)->next_byte_index - 1 + a_pos;
950 abs_offset = PRIVATE (a_this)->in_buf_size - 1 - a_pos;
958 && (gulong) abs_offset < PRIVATE (a_this)->nb_bytes) {
961 PRIVATE (a_this)->next_byte_index = abs_offset + 1;
971 *@a_this: the current instance of #CRInput.
987 cr_input_get_cur_pos (CRInput * a_this, CRInputPos * a_pos)
989 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_pos,
992 a_pos->next_byte_index = PRIVATE (a_this)->next_byte_index;
993 a_pos->line = PRIVATE (a_this)->line;
994 a_pos->col = PRIVATE (a_this)->col;
995 a_pos->end_of_line = PRIVATE (a_this)->end_of_line;
996 a_pos->end_of_file = PRIVATE (a_this)->end_of_input;
1003 *@a_this: the current instance of #CRInput
1015 cr_input_get_parsing_location (CRInput *a_this,
1018 g_return_val_if_fail (a_this
1019 && PRIVATE (a_this)
1023 a_loc->line = PRIVATE (a_this)->line ;
1024 a_loc->column = PRIVATE (a_this)->col ;
1025 if (PRIVATE (a_this)->next_byte_index) {
1026 a_loc->byte_offset = PRIVATE (a_this)->next_byte_index - 1 ;
1028 a_loc->byte_offset = PRIVATE (a_this)->next_byte_index ;
1035 *@a_this: the "this pointer" of the current instance of
1047 cr_input_get_cur_index (CRInput * a_this, glong * a_index)
1049 g_return_val_if_fail (a_this && PRIVATE (a_this)
1052 *a_index = PRIVATE (a_this)->next_byte_index;
1059 *@a_this: the "this pointer" of the current instance
1069 cr_input_set_cur_index (CRInput * a_this, glong a_index)
1071 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
1073 PRIVATE (a_this)->next_byte_index = a_index;
1080 *@a_this: the current instance of #CRInput.
1088 cr_input_set_end_of_file (CRInput * a_this, gboolean a_eof)
1090 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
1092 PRIVATE (a_this)->end_of_input = a_eof;
1099 *@a_this: the current instance of #CRInput.
1108 cr_input_get_end_of_file (CRInput * a_this, gboolean * a_eof)
1110 g_return_val_if_fail (a_this && PRIVATE (a_this)
1113 *a_eof = PRIVATE (a_this)->end_of_input;
1120 *@a_this: the current instance of #CRInput.
1129 cr_input_set_end_of_line (CRInput * a_this, gboolean a_eol)
1131 g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
1133 PRIVATE (a_this)->end_of_line = a_eol;
1140 *@a_this: the current instance of #CRInput
1150 cr_input_get_end_of_line (CRInput * a_this, gboolean * a_eol)
1152 g_return_val_if_fail (a_this && PRIVATE (a_this)
1155 *a_eol = PRIVATE (a_this)->end_of_line;
1162 *@a_this: the "this pointer" of the current instance of
1171 cr_input_set_cur_pos (CRInput * a_this, CRInputPos * a_pos)
1173 g_return_val_if_fail (a_this && PRIVATE (a_this) && a_pos,
1176 cr_input_set_column_num (a_this, a_pos->col);
1177 cr_input_set_line_num (a_this, a_pos->line);
1178 cr_input_set_cur_index (a_this, a_pos->next_byte_index);
1179 cr_input_set_end_of_line (a_this, a_pos->end_of_line);
1180 cr_input_set_end_of_file (a_this, a_pos->end_of_file);