Top | ![]() |
![]() |
![]() |
![]() |
AscHint * | asc_hint_new () |
AscHint * | asc_hint_new_for_tag () |
const gchar * | asc_hint_get_tag () |
void | asc_hint_set_tag () |
AsIssueSeverity | asc_hint_get_severity () |
void | asc_hint_set_severity () |
const gchar * | asc_hint_get_explanation_template () |
void | asc_hint_set_explanation_template () |
gboolean | asc_hint_is_error () |
gboolean | asc_hint_is_valid () |
void | asc_hint_add_explanation_var () |
GPtrArray * | asc_hint_get_explanation_vars_list () |
gchar * | asc_hint_format_explanation () |
AscHint * asc_hint_new_for_tag (const gchar *tag
,GError **error
);
Creates a new AscHint with the given tag. If the selected tag was not registered+
with the global tag registry, NULL
is returned and an error is set.
const gchar *
asc_hint_get_tag (AscHint *hint
);
Gets the unique tag for the type of this hint.
void asc_hint_set_tag (AscHint *hint
,const gchar *tag
);
Sets the unique tag for the type of this hint.
AsIssueSeverity
asc_hint_get_severity (AscHint *hint
);
Gets the issue severity of this hint.
void asc_hint_set_severity (AscHint *hint
,AsIssueSeverity severity
);
Sets the issue severity of this hint.
const gchar *
asc_hint_get_explanation_template (AscHint *hint
);
Gets the explanation template for this hint.
void asc_hint_set_explanation_template (AscHint *hint
,const gchar *explanation_tmpl
);
Sets the explanation template for this hint.
gboolean
asc_hint_is_valid (AscHint *hint
);
Check if this hint is valid (it requires at least a tag and a severity in order to be considered valid).
void asc_hint_add_explanation_var (AscHint *hint
,const gchar *var_name
,const gchar *text
);
Add a replacement variable for the explanation text.
hint |
an AscHint instance. |
|
var_name |
Name of the variable to be replaced. |
|
text |
Replacement for the variable name. |
GPtrArray *
asc_hint_get_explanation_vars_list (AscHint *hint
);
Returns a list with the flattened key/value pairs for this hint. Values are located in uneven list entries, following their keys in even list entries.
gchar *
asc_hint_format_explanation (AscHint *hint
);
Formats the explanation template to return a human-redable issue hint explanation, with all placeholder variables replaced.