API Documentation
Loading...
Searching...
No Matches
TranslatedString Class Reference

#include <TranslatedString.h>

Collaboration diagram for TranslatedString:
[legend]

Public Member Functions

NDEVR_BASE_API TranslatedString ()
 
 ~TranslatedString ()
 
NDEVR_BASE_API TranslatedString (const TranslatedString &translation)
 
NDEVR_BASE_API TranslatedString (TranslatedString &&translation) noexcept
 
NDEVR_BASE_API TranslatedString (const char *const raw_string)
 
NDEVR_BASE_API TranslatedString (const String &raw_string)
 
NDEVR_BASE_API TranslatedString (const String &translation_id, const String &english)
 
NDEVR_BASE_API void retranslate ()
 
NDEVR_BASE_API const Stringtranslation () const
 
NDEVR_BASE_API String translation (const String &translation_id) const
 
NDEVR_BASE_API const StringtranslationID () const
 
NDEVR_BASE_API TranslatedStringreplace (const String &sub_string, const TranslatedString &replacement)
 
NDEVR_BASE_API TranslatedStringreplace (const String &sub_string, const String &replacement)
 
NDEVR_BASE_API bool isTranslatable () const
 
NDEVR_BASE_API bool hasReplacements () const
 
NDEVR_BASE_API bool isEmpty () const
 
NDEVR_BASE_API const StringenglishTranslation () const
 
NDEVR_BASE_API String internalValue () const
 
NDEVR_BASE_API TranslatedStringoperator= (TranslatedString &&translation) noexcept
 
NDEVR_BASE_API TranslatedStringoperator= (const TranslatedString &translation) noexcept
 
NDEVR_BASE_API bool operator!= (const TranslatedString &translation) const
 
NDEVR_BASE_API bool operator== (const TranslatedString &translation) const
 
NDEVR_BASE_API bool operator< (const TranslatedString &value) const
 
NDEVR_BASE_API bool operator> (const TranslatedString &value) const
 

Protected Member Functions

void calculateEnglishString ()
 

Protected Attributes

Dictionary< String, TranslatedString * > m_replacements
 
String m_translation_id
 
String m_english_string
 
String m_translation
 
bool m_is_translated
 

Constructor & Destructor Documentation

◆ TranslatedString() [1/6]

◆ ~TranslatedString()

~TranslatedString ( )
inline

◆ TranslatedString() [2/6]

TranslatedString ( const TranslatedString & translation)

◆ TranslatedString() [3/6]

TranslatedString ( TranslatedString && translation)
noexcept

◆ TranslatedString() [4/6]

TranslatedString ( const char *const raw_string)
explicit

◆ TranslatedString() [5/6]

TranslatedString ( const String & raw_string)
explicit

◆ TranslatedString() [6/6]

TranslatedString ( const String & translation_id,
const String & english )

Member Function Documentation

◆ calculateEnglishString()

void calculateEnglishString ( )
protected

◆ englishTranslation()

const String & englishTranslation ( ) const

◆ hasReplacements()

bool hasReplacements ( ) const

◆ internalValue()

NDEVR_BASE_API String internalValue ( ) const

◆ isEmpty()

bool isEmpty ( ) const

◆ isTranslatable()

bool isTranslatable ( ) const

◆ operator!=()

bool operator!= ( const TranslatedString & translation) const

◆ operator<()

bool operator< ( const TranslatedString & value) const

◆ operator=() [1/2]

TranslatedString & operator= ( const TranslatedString & translation)
noexcept

◆ operator=() [2/2]

TranslatedString & operator= ( TranslatedString && translation)
noexcept

◆ operator==()

bool operator== ( const TranslatedString & translation) const

◆ operator>()

bool operator> ( const TranslatedString & value) const

◆ replace() [1/2]

TranslatedString & replace ( const String & sub_string,
const String & replacement )

◆ replace() [2/2]

TranslatedString & replace ( const String & sub_string,
const TranslatedString & replacement )

◆ retranslate()

void retranslate ( )

◆ translation() [1/2]

const String & translation ( ) const

◆ translation() [2/2]

String translation ( const String & translation_id) const

◆ translationID()

const String & translationID ( ) const

Member Data Documentation

◆ m_english_string

String m_english_string
mutableprotected

◆ m_is_translated

bool m_is_translated
mutableprotected

◆ m_replacements

Dictionary<String, TranslatedString*> m_replacements
protected

◆ m_translation

String m_translation
mutableprotected

◆ m_translation_id

String m_translation_id
mutableprotected

The documentation for this class was generated from the following files: