Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_statement_at_charset_rule_set_charset ( CRStatement *  a_this,
CRString *  a_charset 
)

Sets the charset of the current rule statement.

Parameters:
a_this the current rule statement.
a_charset the charset to set.
Returns:
CR_OK upon successfull completion, an error code otherwise.

Definition at line 2199 of file cr-statement.c.

References AT_CHARSET_RULE_STMT.

{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_CHARSET_RULE_STMT
                              && a_this->kind.charset_rule,
                              CR_BAD_PARAM_ERROR);

        if (a_this->kind.charset_rule->charset) {
                cr_string_destroy (a_this->kind.charset_rule->charset);
        }
        a_this->kind.charset_rule->charset = a_charset;
        return CR_OK;
}


Generated by  Doxygen 1.6.0   Back to index