Wt
4.11.0
|
The result of resolving a localized string. More...
Public Member Functions | |
LocalizedString () | |
Constructor for an unsuccessful localized string result. | |
LocalizedString (std::string v, TextFormat f) | |
Constructor for a successful localized string result. | |
operator bool () const | |
Bool conversion, for checking success. | |
Public Attributes | |
std::string | value |
The value of the resolved localized string. | |
TextFormat | format |
The format that the resolved localized string is stored in (TextFormat::Plain or TextFormat::XHTML) | |
bool | success |
Indicates whether resolving the string was successful. | |
The result of resolving a localized string.
This struct contains the result (in UTF-8 encoding) of resolving a localized string, consisting of its value, its format (TextFormat::Plain or TextFormat::XHTML), and a success value indicating whether the string was successfully resolved.
Wt::LocalizedString::LocalizedString | ( | ) |
Constructor for an unsuccessful localized string result.
This constructor sets success to false.
Wt::LocalizedString::LocalizedString | ( | std::string | v, |
TextFormat | f | ||
) |
Constructor for a successful localized string result.
Sets the value to the given string, and the format to the given format, and sets success to true.
std::string Wt::LocalizedString::value |
The value of the resolved localized string.
This value is UTF-8 encoded