#include <TranslatedText.h>
Public Member Functions | |
TranslatedText () | |
Default ctor. | |
TranslatedText (const std::string &text, const Locale &lang=Locale()) | |
Ctor. | |
TranslatedText (const std::list< std::string > &text, const Locale &lang=Locale()) | |
Ctor. | |
~TranslatedText () | |
Dtor. | |
bool | empty () const |
true if the text have no translations for any language | |
std::string | asString (const Locale &lang=Locale()) const |
Synonym for text. | |
std::string | text (const Locale &lang=Locale()) const |
std::set< Locale > | locales () const |
void | setText (const std::string &text, const Locale &lang=Locale()) |
void | setText (const std::list< std::string > &text, const Locale &lang=Locale()) |
Locale | detectLanguage () const |
Static Public Attributes | |
static const TranslatedText | notext |
static default empty translated text | |
Private Attributes | |
RWCOW_pointer< Impl > | _pimpl |
Pointer to implementation. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const TranslatedText &obj) |
Classes | |
struct | Impl |
TranslatedText implementation. More... |
Definition at line 34 of file TranslatedText.h.
|
Default ctor.
Definition at line 143 of file TranslatedText.cc. |
|
Ctor.
Definition at line 152 of file TranslatedText.cc. |
|
Ctor.
Definition at line 162 of file TranslatedText.cc. |
|
Dtor.
Definition at line 172 of file TranslatedText.cc. |
|
true if the text have no translations for any language
Definition at line 198 of file TranslatedText.cc. References _pimpl. |
|
Synonym for text.
Definition at line 63 of file TranslatedText.h. References text(). |
|
Definition at line 181 of file TranslatedText.cc. References _pimpl. Referenced by asString(), zypp::storage::XMLSelectionImpl::category(), zypp::Pattern::category(), zypp::ResObject::delnotify(), zypp::ResObject::description(), zypp::ResObject::insnotify(), zypp::ResObject::licenseToConfirm(), zypp::Product::shortName(), zypp::ResObject::summary(), and zypp::storage::translatedTextToXML(). |
|
Definition at line 187 of file TranslatedText.cc. References _pimpl. Referenced by zypp::storage::translatedTextToXML(). |
|
Definition at line 184 of file TranslatedText.cc. References _pimpl. Referenced by zypp::source::susetags::ProductMetadataParser::parseLine(), and zypp::target::rpm::RPMPackageImpl::RPMPackageImpl(). |
|
Definition at line 192 of file TranslatedText.cc. References _pimpl. |
|
Definition at line 195 of file TranslatedText.cc. References _pimpl. |
|
Stream output Definition at line 81 of file TranslatedText.h. |
|
static default empty translated text
Definition at line 58 of file TranslatedText.h. Referenced by zypp::detail::ResObjectImplIf::delnotify(), zypp::detail::ResObjectImplIf::description(), zypp::detail::ResObjectImplIf::insnotify(), zypp::detail::ResObjectImplIf::licenseToConfirm(), and zypp::detail::ResObjectImplIf::summary(). |
|
Pointer to implementation.
Definition at line 76 of file TranslatedText.h. Referenced by detectLanguage(), empty(), locales(), setText(), and text(). |