Top |
Functions
gchar * | as_markup_convert_simple () |
gchar * | as_markup_convert () |
gchar * | as_markup_convert_full () |
gboolean | as_markup_validate () |
gchar ** | as_markup_strsplit_words () |
gchar * | as_markup_import () |
Description
These functions are used internally to libappstream-glib, and some may be useful to user-applications.
Functions
as_markup_convert_simple ()
gchar * as_markup_convert_simple (const gchar *markup
,GError **error
);
Converts an XML description into a printable form.
Since: 0.1.0
as_markup_convert ()
gchar * as_markup_convert (const gchar *markup
,AsMarkupConvertFormat format
,GError **error
);
Converts an XML description into a printable form.
Parameters
markup |
the text to copy. |
|
format |
the AsMarkupConvertFormat, e.g. |
|
error |
Since: 0.3.5
as_markup_convert_full ()
gchar * as_markup_convert_full (const gchar *markup
,AsMarkupConvertFormat format
,AsMarkupConvertFlag flags
,GError **error
);
Converts an XML description into a printable form.
Parameters
markup |
the text to copy. |
|
format |
the AsMarkupConvertFormat, e.g. |
|
flags |
the AsMarkupConvertFlag, e.g. |
|
error |
Since: 0.3.5
as_markup_validate ()
gboolean as_markup_validate (const gchar *markup
,GError **error
);
Validates some markup.
Since: 0.5.1
as_markup_strsplit_words ()
gchar ** as_markup_strsplit_words (const gchar *text
,guint line_len
);
Splits up a long line into an array of smaller strings, each being no longer
than line_len
. Words are not split.
Since: 0.3.5
as_markup_import ()
gchar * as_markup_import (const gchar *text
,AsMarkupConvertFormat format
,GError **error
);
Imports text and converts to AppStream markup.
Parameters
text |
the text to import. |
|
format |
the AsMarkupConvertFormat, e.g. |
|
error |
Since: 0.5.11