![]() |
![]() |
![]() |
libgebr Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
gchar * gebr_geoxml_tmpl_get (GString *tmpl
,const gchar *tag
); gboolean gebr_geoxml_tmpl_set (GString *tmpl
,const gchar *tag
,const gchar *value
); gboolean gebr_geoxml_tmpl_append (GString *tmpl
,const gchar *tag
,const gchar *value
);
gchar * gebr_geoxml_tmpl_get (GString *tmpl
,const gchar *tag
);
Searchs for the text between >-- begin tag
--< and >-- end tag
--< and returns a copy of it. If tag
is not found, then NULL
is returned.
|
the string buffer containing the template |
|
the name of the tag to be fetched |
Returns : |
a newly allocated c-string or NULL if tag was not found. |
gboolean gebr_geoxml_tmpl_set (GString *tmpl
,const gchar *tag
,const gchar *value
);
Replaces the content between >-- begin tag
--< and >-- end tag
--<. If tag
was not found, then FALSE
is returned and tmpl
is left unchanged.
|
the string buffer containing the template |
|
the name of the tag to be set |
|
the value that will replace the tag |
Returns : |
TRUE if tag was found, FALSE otherwise. |
gboolean gebr_geoxml_tmpl_append (GString *tmpl
,const gchar *tag
,const gchar *value
);
Inserts value
at the end of tag
.
|
the string buffer containing the template |
|
the name of the tag to be set |
|
the value that will be appended to the end of the tag |
Returns : |
TRUE if tag was found, FALSE otherwise. |