cr-string.h File Reference

Declaration file of the CRString class. More...

#include <glib.h>
#include "cr-utils.h"
#include "cr-parsing-location.h"

Go to the source code of this file.

Data Structures

struct  _CRString
 This is a ship implementation of string based on GString. More...

Typedefs

typedef typedefG_BEGIN_DECLS
struct _CRString 
CRString

Functions

CRStringcr_string_new (void)
 Instanciates a CRString.
CRStringcr_string_new_from_string (const gchar *a_string)
 Instanciate a string and initialise it to a_string.
CRStringcr_string_new_from_gstring (GString *a_string)
 Instanciates a CRString from an instance of GString.
CRStringcr_string_dup (CRString *a_this)
gchar * cr_string_dup2 (CRString *a_this)
const gchar * cr_string_peek_raw_str (CRString *a_this)
 Returns a pointer to the internal raw NULL terminated string of the current instance of CRString.
gint cr_string_peek_raw_str_len (CRString *a_this)
 Returns the length of the internal raw NULL terminated string of the current instance of CRString.
void cr_string_destroy (CRString *a_this)


Detailed Description

Declaration file of the CRString class.

Definition in file cr-string.h.


Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _CRString CRString
 

Definition at line 37 of file cr-string.h.


Function Documentation

void cr_string_destroy CRString a_this  ) 
 

Parameters:
a_this the CRString to destroy.

Definition at line 159 of file cr-string.c.

Referenced by cr_additional_sel_destroy(), cr_additional_sel_set_class_name(), cr_additional_sel_set_id_name(), cr_attr_sel_destroy(), cr_declaration_destroy(), cr_declaration_parse_from_buf(), cr_parser_parse_charset(), cr_parser_parse_declaration(), cr_parser_parse_font_face(), cr_parser_parse_page(), cr_parser_parse_ruleset(), cr_parser_parse_term(), cr_pseudo_destroy(), cr_simple_sel_destroy(), cr_statement_at_charset_rule_parse_from_buf(), cr_statement_at_charset_rule_set_charset(), cr_statement_at_import_rule_parse_from_buf(), cr_statement_at_import_rule_set_url(), and cr_tknzr_get_next_token().

CRString* cr_string_dup CRString a_this  ) 
 

Definition at line 94 of file cr-string.c.

References cr_parsing_location_copy(), cr_string_new_from_gstring(), and cr_utils_trace_info.

Referenced by cr_utils_dup_glist_of_cr_string().

gchar* cr_string_dup2 CRString a_this  ) 
 

Definition at line 110 of file cr-string.c.

CRString* cr_string_new void   ) 
 

Instanciates a CRString.

Returns:
the newly instanciated CRString Must be freed with cr_string_destroy().

Definition at line 33 of file cr-string.c.

References cr_utils_trace_info.

Referenced by cr_string_new_from_gstring(), and cr_string_new_from_string().

CRString* cr_string_new_from_gstring GString *  a_string  ) 
 

Instanciates a CRString from an instance of GString.

Parameters:
a_string the input string that will be copied into the newly instanciated CRString
Returns:
the newly instanciated CRString.

Definition at line 75 of file cr-string.c.

References cr_string_new(), and cr_utils_trace_info.

Referenced by cr_string_dup().

CRString* cr_string_new_from_string const gchar *  a_string  ) 
 

Instanciate a string and initialise it to a_string.

Parameters:
a_string the initial string
Returns:
the newly instanciated string.

Definition at line 54 of file cr-string.c.

References cr_string_new(), and cr_utils_trace_info.

Referenced by cr_parser_parse_prio().

const gchar* cr_string_peek_raw_str CRString a_this  ) 
 

Returns a pointer to the internal raw NULL terminated string of the current instance of CRString.

Parameters:
a_this the current instance of CRString

Definition at line 131 of file cr-string.c.

gint cr_string_peek_raw_str_len CRString a_this  ) 
 

Returns the length of the internal raw NULL terminated string of the current instance of CRString.

Parameters:
a_this the current instance of CRString.
Returns:
the len of the internal raw NULL termninated string, of -1 if no length can be returned.

Definition at line 148 of file cr-string.c.


Generated on Thu Mar 9 19:18:51 2006 for Libcroco by  doxygen 1.4.6