Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

cr-utils.h File Reference


Detailed Description

The Croco library basic types definitions And global definitions.

Definition in file cr-utils.h.

#include <stdio.h>
#include <glib.h>

Go to the source code of this file.

Defines

#define cr_utils_trace(a_log_level, a_msg)
#define cr_utils_trace_debug(a_msg)   cr_utils_trace (G_LOG_LEVEL_DEBUG, a_msg) ;
#define cr_utils_trace_info(a_msg)   cr_utils_trace (G_LOG_LEVEL_INFO, a_msg)
#define CROCO_LOG_DOMAIN   "LIBCROCO"

Enumerations

enum  CREncoding {
  CR_UCS_4 = 1, CR_UCS_1, CR_ISO_8859_1, CR_ASCII,
  CR_UTF_8, CR_UTF_16, CR_AUTO
}
enum  CRSeekPos { CR_SEEK_CUR, CR_SEEK_BEGIN, CR_SEEK_END }
enum  CRStatus {
  CR_OK, CR_BAD_PARAM_ERROR, CR_INSTANCIATION_FAILED_ERROR, CR_UNKNOWN_TYPE_ERROR,
  CR_UNKNOWN_PROP_ERROR, CR_UNKNOWN_PROP_VAL_ERROR, CR_UNEXPECTED_POSITION_SCHEME, CR_START_OF_INPUT_ERROR,
  CR_END_OF_INPUT_ERROR, CR_OUTPUT_TOO_SHORT_ERROR, CR_INPUT_TOO_SHORT_ERROR, CR_OUT_OF_BOUNDS_ERROR,
  CR_EMPTY_PARSER_INPUT_ERROR, CR_ENCODING_ERROR, CR_ENCODING_NOT_FOUND_ERROR, CR_PARSING_ERROR,
  CR_SYNTAX_ERROR, CR_NO_ROOT_NODE_ERROR, CR_NO_TOKEN, CR_OUT_OF_MEMORY_ERROR,
  CR_PSEUDO_CLASS_SEL_HANDLER_NOT_FOUND_ERROR, CR_BAD_PSEUDO_CLASS_SEL_HANDLER_ERROR, CR_ERROR, CR_FILE_NOT_FOUND_ERROR,
  CR_VALUE_NOT_FOUND_ERROR
}

Functions

void cr_utils_dump_n_chars (guchar a_char, FILE *a_fp, glong a_nb)
void cr_utils_dump_n_chars2 (guchar a_char, GString *a_string, glong a_nb)
GList * cr_utils_dup_glist_of_cr_string (GList *a_list_of_strings)
GList * cr_utils_dup_glist_of_string (GList *a_list)
gboolean cr_utils_is_hexa_char (guint32 a_char)
gboolean cr_utils_is_newline (guint32 a_char)
gboolean cr_utils_is_nonascii (guint32 a_char)
gboolean cr_utils_is_white_space (guint32 a_char)
enum CRStatus cr_utils_read_char_from_utf8_buf (const guchar *a_in, gulong a_in_len, guint32 *a_out, gulong *a_consumed)
enum CRStatus cr_utils_ucs1_str_len_as_utf8 (const guchar *a_in_start, const guchar *a_in_end, gulong *a_len)
enum CRStatus cr_utils_ucs1_str_to_utf8 (const guchar *a_in_start, gulong *a_in_len, guchar **a_out, gulong *a_len)
enum CRStatus cr_utils_ucs1_to_utf8 (const guchar *a_in, gulong *a_in_len, guchar *a_out, gulong *a_out_len)
enum CRStatus cr_utils_ucs4_str_len_as_utf8 (const guint32 *a_in_start, const guint32 *a_in_end, gulong *a_len)
enum CRStatus cr_utils_ucs4_str_to_utf8 (const guint32 *a_in, gulong *a_in_len, guchar **a_out, gulong *a_out_len)
enum CRStatus cr_utils_ucs4_to_utf8 (const guint32 *a_in, gulong *a_in_len, guchar *a_out, gulong *a_out_len)
enum CRStatus cr_utils_utf8_str_len_as_ucs1 (const guchar *a_in_start, const guchar *a_in_end, gulong *a_len)
enum CRStatus cr_utils_utf8_str_len_as_ucs4 (const guchar *a_in_start, const guchar *a_in_end, gulong *a_len)
enum CRStatus cr_utils_utf8_str_to_ucs1 (const guchar *a_in_start, gulong *a_in_len, guchar **a_out, gulong *a_out_len)
enum CRStatus cr_utils_utf8_str_to_ucs4 (const guchar *a_in, gulong *a_in_len, guint32 **a_out, gulong *a_out_len)
enum CRStatus cr_utils_utf8_to_ucs1 (const guchar *a_in, gulong *a_in_len, guchar *a_out, gulong *a_out_len)
enum CRStatus cr_utils_utf8_to_ucs4 (const guchar *a_in, gulong *a_in_len, guint32 *a_out, gulong *a_out_len)


Generated by  Doxygen 1.6.0   Back to index