Representation of internationalizable character strings. More...
#include <text.h>
Public Member Functions | |
struct oscap_text * | oscap_text_new (void) |
Create an internationalized text field. | |
struct oscap_text * | oscap_text_clone (const struct oscap_text *text) |
Clone an internationalized text field. | |
struct oscap_text * | oscap_text_new_html (void) |
Create an internationalized text field with HTML content. | |
void | oscap_text_free (struct oscap_text *) |
Release an internationalized text field. | |
Getters | |
const char * | oscap_text_get_text (const struct oscap_text *text) |
const char * | oscap_text_get_lang (const struct oscap_text *text) |
bool | oscap_text_get_is_html (const struct oscap_text *text) |
Does this text posses a HTML content? | |
bool | oscap_text_get_can_substitute (const struct oscap_text *text) |
Can this text contain substitutions? | |
bool | oscap_text_get_can_override (const struct oscap_text *text) |
Can this text override parent content? | |
bool | oscap_text_get_overrides (const struct oscap_text *text) |
Does this text override parent content? | |
Setters | |
bool | oscap_text_set_text (struct oscap_text *text, const char *string) |
Set whether this text overrides parent content. | |
bool | oscap_text_set_lang (struct oscap_text *text, const char *string) |
Data Fields | |
char * | lang |
char * | text |
struct oscap_text_traits | traits |
Representation of internationalizable character strings.