Open SCAP Library
|
Data Structures | |
struct | oscap_text |
struct | oscap_stringlist |
struct | oscap_text_iterator |
struct | oscap_string_iterator |
struct | oscap_stringlist_iterator |
Functions | |
OSCAP_API struct oscap_text * | oscap_text::oscap_text_new (void) |
Create an internationalized text field. More... | |
OSCAP_API struct oscap_text * | oscap_text::oscap_text_clone (const struct oscap_text *text) |
Clone an internationalized text field. More... | |
OSCAP_API struct oscap_text * | oscap_text::oscap_text_new_html (void) |
Create an internationalized text field with HTML content. More... | |
OSCAP_API void | oscap_text::oscap_text_free (struct oscap_text *) |
Release an internationalized text field. | |
Common language codes | |
const OSCAP_API char *const | OSCAP_LANG_ENGLISH |
English. | |
const OSCAP_API char *const | OSCAP_LANG_ENGLISH_US |
American English. | |
const OSCAP_API char *const | OSCAP_LANG_DEFAULT |
Default language (i.e. American English) | |
Getters | |
Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. | |
OSCAP_API struct oscap_string_iterator * | oscap_stringlist::oscap_stringlist_get_strings (const struct oscap_stringlist *list) |
OSCAP_API struct oscap_stringlist * | oscap_stringlist::oscap_stringlist_clone (struct oscap_stringlist *list) |
const OSCAP_API char * | oscap_text::oscap_text_get_text (const struct oscap_text *text) |
const OSCAP_API char * | oscap_text::oscap_text_get_lang (const struct oscap_text *text) |
OSCAP_API char * | oscap_text::oscap_text_get_plaintext (const struct oscap_text *text) |
Get plaintext representation of the text. More... | |
OSCAP_API bool | oscap_text::oscap_text_get_is_html (const struct oscap_text *text) |
Does this text posses a HTML content? | |
OSCAP_API bool | oscap_text::oscap_text_get_can_substitute (const struct oscap_text *text) |
Can this text contain substitutions? | |
OSCAP_API bool | oscap_text::oscap_text_get_can_override (const struct oscap_text *text) |
Can this text override parent content? | |
OSCAP_API bool | oscap_text::oscap_text_get_overrides (const struct oscap_text *text) |
Does this text override parent content? | |
Setters | |
Parameters of set functions are duplicated in memory and need to be freed by caller. | |
OSCAP_API bool | oscap_text::oscap_text_set_overrides (struct oscap_text *text, bool overrides) |
Set whether this text overrides parent content. | |
OSCAP_API bool | oscap_text::oscap_text_set_text (struct oscap_text *text, const char *string) |
OSCAP_API bool | oscap_text::oscap_text_set_lang (struct oscap_text *text, const char *string) |
OSCAP_API bool | oscap_stringlist::oscap_stringlist_add_string (struct oscap_stringlist *list, const char *str) |
OSCAP_API struct oscap_stringlist * | oscap_stringlist::oscap_stringlist_new (void) |
OSCAP_API void | oscap_stringlist::oscap_stringlist_free (struct oscap_stringlist *list) |
Iterators | |
OSCAP_API struct oscap_text * | oscap_text_iterator::oscap_text_iterator_next (struct oscap_text_iterator *it) |
OSCAP_API bool | oscap_text_iterator::oscap_text_iterator_has_more (struct oscap_text_iterator *it) |
OSCAP_API void | oscap_text_iterator::oscap_text_iterator_free (struct oscap_text_iterator *it) |
OSCAP_API void | oscap_text_iterator::oscap_text_iterator_remove (struct oscap_text_iterator *it) |
OSCAP_API void | oscap_text_iterator::oscap_text_iterator_reset (struct oscap_text_iterator *it) |
const OSCAP_API char * | oscap_string_iterator::oscap_string_iterator_next (struct oscap_string_iterator *it) |
OSCAP_API bool | oscap_string_iterator::oscap_string_iterator_has_more (struct oscap_string_iterator *it) |
OSCAP_API void | oscap_string_iterator::oscap_string_iterator_free (struct oscap_string_iterator *it) |
OSCAP_API void | oscap_string_iterator::oscap_string_iterator_remove (struct oscap_string_iterator *it) |
OSCAP_API void | oscap_string_iterator::oscap_string_iterator_reset (struct oscap_string_iterator *it) |
OSCAP_API struct oscap_stringlist * | oscap_stringlist_iterator::oscap_stringlist_iterator_next (struct oscap_stringlist_iterator *it) |
OSCAP_API bool | oscap_stringlist_iterator::oscap_stringlist_iterator_has_more (struct oscap_stringlist_iterator *it) |
OSCAP_API void | oscap_stringlist_iterator::oscap_stringlist_iterator_free (struct oscap_stringlist_iterator *it) |
OSCAP_API void | oscap_stringlist_iterator::oscap_stringlist_iterator_remove (struct oscap_stringlist_iterator *it) |
OSCAP_API void | oscap_stringlist_iterator::oscap_stringlist_iterator_reset (struct oscap_stringlist_iterator *it) |
Functions to access and manipulate textual data.
OSCAP_API struct oscap_text * oscap_text_clone | ( | const struct oscap_text * | text | ) |
Clone an internationalized text field.
text | oscap_text structure to clone |
OSCAP_API char * oscap_text_get_plaintext | ( | const struct oscap_text * | text | ) |
Get plaintext representation of the text.
Caller is responsible for freeing returned string.
OSCAP_API struct oscap_text * oscap_text_new | ( | void | ) |
Create an internationalized text field.
lang | - language identifier ( |
encoding | - language encoding ( |
OSCAP_API struct oscap_text * oscap_text_new_html | ( | void | ) |
Create an internationalized text field with HTML content.
lang | - language identifier ( |
encoding | - language encoding ( |