Logo Search packages:      
Sourcecode: inkscape version File versions

cr-input.c File Reference

Detailed Description

The definition of the CRInput class.

Definition in file cr-input.c.

#include "stdio.h"
#include <string.h>
#include "cr-input.h"
#include "cr-enc-handler.h"

Go to the source code of this file.


struct  _CRInputPriv


#define CR_INPUT_MEM_CHUNK_SIZE   1024 * 4
#define PRIVATE(object)   (object)->priv


enum CRStatus cr_input_consume_char (CRInput *a_this, guint32 a_char)
enum CRStatus cr_input_consume_chars (CRInput *a_this, guint32 a_char, gulong *a_nb_char)
enum CRStatus cr_input_consume_white_spaces (CRInput *a_this, gulong *a_nb_chars)
void cr_input_destroy (CRInput *a_this)
enum CRStatus cr_input_end_of_input (CRInput *a_this, gboolean *a_end_of_input)
guchar * cr_input_get_byte_addr (CRInput *a_this, gulong a_offset)
enum CRStatus cr_input_get_column_num (CRInput *a_this, glong *a_col)
enum CRStatus cr_input_get_cur_byte_addr (CRInput *a_this, guchar **a_offset)
enum CRStatus cr_input_get_cur_index (CRInput *a_this, glong *a_index)
enum CRStatus cr_input_get_cur_pos (CRInput *a_this, CRInputPos *a_pos)
enum CRStatus cr_input_get_end_of_file (CRInput *a_this, gboolean *a_eof)
enum CRStatus cr_input_get_end_of_line (CRInput *a_this, gboolean *a_eol)
enum CRStatus cr_input_get_line_num (CRInput *a_this, glong *a_line_num)
glong cr_input_get_nb_bytes_left (CRInput *a_this)
enum CRStatus cr_input_get_parsing_location (CRInput *a_this, CRParsingLocation *a_loc)
enum CRStatus cr_input_increment_col_num (CRInput *a_this, glong a_increment)
enum CRStatus cr_input_increment_line_num (CRInput *a_this, glong a_increment)
CRInputcr_input_new_from_buf (guchar *a_buf, gulong a_len, enum CREncoding a_enc, gboolean a_free_buf)
CRInputcr_input_new_from_uri (const gchar *a_file_uri, enum CREncoding a_enc)
static CRInputcr_input_new_real (void)
enum CRStatus cr_input_peek_byte (CRInput *a_this, enum CRSeekPos a_origin, gulong a_offset, guchar *a_byte)
guchar cr_input_peek_byte2 (CRInput *a_this, gulong a_offset, gboolean *a_eof)
enum CRStatus cr_input_peek_char (CRInput *a_this, guint32 *a_char)
enum CRStatus cr_input_read_byte (CRInput *a_this, guchar *a_byte)
enum CRStatus cr_input_read_char (CRInput *a_this, guint32 *a_char)
void cr_input_ref (CRInput *a_this)
enum CRStatus cr_input_seek_index (CRInput *a_this, enum CRSeekPos a_origin, gint a_pos)
enum CRStatus cr_input_set_column_num (CRInput *a_this, glong a_col)
enum CRStatus cr_input_set_cur_index (CRInput *a_this, glong a_index)
enum CRStatus cr_input_set_cur_pos (CRInput *a_this, CRInputPos *a_pos)
enum CRStatus cr_input_set_end_of_file (CRInput *a_this, gboolean a_eof)
enum CRStatus cr_input_set_end_of_line (CRInput *a_this, gboolean a_eol)
enum CRStatus cr_input_set_line_num (CRInput *a_this, glong a_line_num)
gboolean cr_input_unref (CRInput *a_this)

Generated by  Doxygen 1.6.0   Back to index