42 #include "oscap_export.h" OSCAP_API struct oscap_string_iterator * oscap_stringlist_get_strings(const struct oscap_stringlist *list)
Definition: list.c:348
Iterator over collections of strings.
OSCAP_API void oscap_text_iterator_free(struct oscap_text_iterator *it)
OSCAP_API bool oscap_text_set_text(struct oscap_text *text, const char *string)
OSCAP_API const char *const OSCAP_LANG_ENGLISH_US
American English.
Definition: text.c:44
OSCAP_API struct oscap_stringlist * oscap_stringlist_iterator_next(struct oscap_stringlist_iterator *it)
A collection of strings.
Definition: oscap_text.h:60
OSCAP_API bool oscap_text_iterator_has_more(struct oscap_text_iterator *it)
OSCAP_API const char * oscap_text_get_text(const struct oscap_text *text)
OSCAP_API void oscap_string_iterator_remove(struct oscap_string_iterator *it)
OSCAP_API const char *const OSCAP_LANG_DEFAULT
Default language (i.e. American English)
Definition: text.c:45
OSCAP_API bool oscap_text_get_overrides(const struct oscap_text *text)
Does this text override parent content?
OSCAP_API bool oscap_text_set_overrides(struct oscap_text *text, bool overrides)
Set whether this text overrides parent content.
Definition: text.c:62
OSCAP_API void oscap_stringlist_free(struct oscap_stringlist *list)
Definition: list.c:363
OSCAP_API struct oscap_text * oscap_text_clone(const struct oscap_text *text)
Clone an internationalized text field.
Definition: text.c:92
OSCAP_API struct oscap_text * oscap_textlist_get_preferred_text(struct oscap_text_iterator *texts, const char *preferred_lang)
gets oscap_text representing given textlist
Definition: text.c:219
OSCAP_API bool oscap_text_set_lang(struct oscap_text *text, const char *string)
OSCAP_API void oscap_text_iterator_remove(struct oscap_text_iterator *it)
OSCAP_API void oscap_text_iterator_reset(struct oscap_text_iterator *it)
Internationalized string iterator.
OSCAP_API struct oscap_text * oscap_text_new_html(void)
Create an internationalized text field with HTML content.
Definition: text.c:97
OSCAP_API char * oscap_text_get_plaintext(const struct oscap_text *text)
Get plaintext representation of the text.
Definition: text.c:200
OSCAP_API bool oscap_text_get_is_html(const struct oscap_text *text)
Does this text posses a HTML content?
OSCAP_API bool oscap_string_iterator_has_more(struct oscap_string_iterator *it)
OSCAP_API void oscap_text_free(struct oscap_text *)
Release an internationalized text field.
Definition: text.c:68
OSCAP_API void oscap_stringlist_iterator_remove(struct oscap_stringlist_iterator *it)
OSCAP_API char * oscap_textlist_get_preferred_plaintext(struct oscap_text_iterator *texts, const char *preferred_lang)
gets a plaintext string representing given textlist
Definition: text.c:253
OSCAP_API void oscap_string_iterator_reset(struct oscap_string_iterator *it)
OSCAP_API const char *const OSCAP_LANG_ENGLISH
English.
Definition: text.c:43
Representation of internationalizable character strings.
Definition: text_priv.h:46
OSCAP_API void oscap_stringlist_iterator_free(struct oscap_stringlist_iterator *it)
OSCAP_API bool oscap_stringlist_iterator_has_more(struct oscap_stringlist_iterator *it)
OSCAP_API bool oscap_stringlist_add_string(struct oscap_stringlist *list, const char *str)
Definition: list.c:353
OSCAP_API struct oscap_text * oscap_text_iterator_next(struct oscap_text_iterator *it)
OSCAP_API bool oscap_text_get_can_substitute(const struct oscap_text *text)
Can this text contain substitutions?
OSCAP_API void oscap_string_iterator_free(struct oscap_string_iterator *it)
OSCAP_API struct oscap_stringlist * oscap_stringlist_clone(struct oscap_stringlist *list)
Definition: list.c:340
OSCAP_API void oscap_stringlist_iterator_reset(struct oscap_stringlist_iterator *it)
OSCAP_API const char * oscap_string_iterator_next(struct oscap_string_iterator *it)
OSCAP_API struct oscap_text * oscap_text_new(void)
Create an internationalized text field.
Definition: text.c:87
OSCAP_API bool oscap_text_get_can_override(const struct oscap_text *text)
Can this text override parent content?
OSCAP_API struct oscap_stringlist * oscap_stringlist_new(void)
Definition: list.c:358
OSCAP_API const char * oscap_text_get_lang(const struct oscap_text *text)