| Top |
| 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 () |
These functions are used internally to libappstream-glib, and some may be useful to user-applications.
gchar * as_markup_convert_simple (const gchar *markup,GError **error);
Converts an XML description into a printable form.
Since: 0.1.0
gchar * as_markup_convert (const gchar *markup,AsMarkupConvertFormat format,GError **error);
Converts an XML description into a printable form.
markup |
the text to copy. |
|
format |
the AsMarkupConvertFormat, e.g. |
|
error |
Since: 0.3.5
gchar * as_markup_convert_full (const gchar *markup,AsMarkupConvertFormat format,AsMarkupConvertFlag flags,GError **error);
Converts an XML description into a printable form.
markup |
the text to copy. |
|
format |
the AsMarkupConvertFormat, e.g. |
|
flags |
the AsMarkupConvertFlag, e.g. |
|
error |
Since: 0.3.5
gboolean as_markup_validate (const gchar *markup,GError **error);
Validates some markup.
Since: 0.5.1
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
gchar * as_markup_import (const gchar *text,AsMarkupConvertFormat format,GError **error);
Imports text and converts to AppStream markup.
text |
the text to import. |
|
format |
the AsMarkupConvertFormat, e.g. |
|
error |
Since: 0.5.11