#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) |
| Stream output. | |
Classes | |
| struct | Impl |
| TranslatedText implementation. More... | |
Definition at line 34 of file TranslatedText.h.
| zypp::TranslatedText::TranslatedText | ( | ) |
| zypp::TranslatedText::~TranslatedText | ( | ) |
| bool zypp::TranslatedText::empty | ( | ) | const |
true if the text have no translations for any language
Definition at line 191 of file TranslatedText.cc.
References _pimpl.
Referenced by zypp::detail::PatchImplIf::interactive().
Definition at line 174 of file TranslatedText.cc.
References _pimpl.
Referenced by zypp::cache::CacheStore::appendTranslatedStringAttribute(), asString(), zypp::storage::XMLSelectionImpl::category(), and zypp::storage::translatedTextToXML().
| std::set< Locale > zypp::TranslatedText::locales | ( | ) | const |
Definition at line 180 of file TranslatedText.cc.
References _pimpl.
Referenced by zypp::cache::CacheStore::appendTranslatedStringAttribute(), and zypp::storage::translatedTextToXML().
Definition at line 177 of file TranslatedText.cc.
References _pimpl.
Referenced by zypp::cache::ResolvableQuery::Impl::queryTranslatedStringAttributeInternal(), and zypp::target::rpm::RPMPackageImpl::RPMPackageImpl().
| Locale zypp::TranslatedText::detectLanguage | ( | ) | const |
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const TranslatedText & | obj | |||
| ) | [friend] |
const TranslatedText zypp::TranslatedText::notext [static] |
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().
RWCOW_pointer<Impl> zypp::TranslatedText::_pimpl [private] |
Pointer to implementation.
Definition at line 76 of file TranslatedText.h.
Referenced by detectLanguage(), empty(), locales(), setText(), and text().
1.5.3