neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::translatable_string Class Reference

#include <i18n.hpp>

Inheritance diagram for neogfx::translatable_string:
neolib::string neolib::reference_counted< i_string > neolib::i_string neolib::i_contiguous_random_access_container< char > neolib::i_random_access_container< T > neolib::i_sequence_container< T, i_random_access_const_iterator< T >, i_random_access_iterator< T > > neolib::i_container< T, ConstIteratorType, IteratorType > neolib::i_reference_counted

Public Member Functions

 translatable_string (i_string const &aTranslatableString, i_string const &aContext)
 
translatable_stringoperator() (std::int64_t aPlurality)
 
- Public Member Functions inherited from neolib::string
 string (size_type aCount, value_type aChar)
 
 string (const char *aString)
 
 string (const char *aString, std::size_t aLength)
 
 string (const std::string &aString={})
 
 string (const std::string_view &aStringView)
 
 string (const neolib::quick_string &aOther)
 
 string (const string &aOther)
 
 string (string &&aOther)
 
 string (const i_string &aOther)
 
template<typename Iter , typename SFINAE = std::enable_if_t<!std::is_scalar_v<Iter>, sfinae>>
 string (Iter aBegin, Iter aEnd)
 
 ~string ()
 
stringoperator= (const string &aOther)
 
stringoperator= (string &&aOther)
 
stringoperator= (const i_string &aOther) final
 
const std_typeas_std_string () const
 
std_typeas_std_string ()
 
std::string to_std_string () const
 
std::string_view to_std_string_view () const noexcept
 
size_type size () const noexcept final
 
size_type max_size () const noexcept final
 
void clear () final
 
void assign (const i_container &aOther) final
 
size_type capacity () const final
 
void reserve (size_type aCapacity) final
 
void resize (size_type aSize) final
 
void resize (size_type aSize, const value_type &aValue) final
 
void push_back (const value_type &aValue) final
 
void pop_back () final
 
const value_typefront () const final
 
value_typefront () final
 
const value_typeback () const final
 
value_typeback () final
 
const value_typeat (size_type aIndex) const final
 
value_typeat (size_type aIndex) final
 
const value_typeoperator[] (size_type aIndex) const final
 
value_typeoperator[] (size_type aIndex) final
 
const charcdata () const noexcept final
 
const chardata () const noexcept final
 
chardata () noexcept final
 
const charc_str () const noexcept final
 
void assign (const string &aOther)
 
void assign (const i_string &aOther) final
 
void assign (const char *aSource, size_type aSourceLength) final
 
void append (const string &aOther)
 
void append (const i_string &aOther) final
 
void append (const char *aSource, size_type aSourceLength) final
 
void replace_all (const i_string &aSearch, const i_string &aReplace) final
 
void assign (string &&aOther)
 
virtual void assign (const i_string &aOther)=0
 
virtual void assign (const value_type *aSource, size_type aSourceLength)=0
 
void assign (const std::string &aSource)
 
void assign (const std::string_view &aSource)
 
virtual void append (const i_string &aOther)=0
 
virtual void append (const value_type *aSource, size_type aSourceLength)=0
 
void append (const std::string &aSource)
 
void append (const std::string_view &aSource)
 
- Public Member Functions inherited from neolib::reference_counted< i_string >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neolib::i_string
virtual void assign (const value_type *aSource, size_type aSourceLength)=0
 
virtual void append (const value_type *aSource, size_type aSourceLength)=0
 
 operator std::string () const
 
i_stringoperator= (const std::string &aOther)
 
size_type length () const
 
void assign (const std::string &aSource)
 
void assign (const std::string_view &aSource)
 
void append (const std::string &aSource)
 
void append (const std::string_view &aSource)
 
std::string to_std_string () const
 
std::string_view to_std_string_view () const noexcept
 
- Public Member Functions inherited from neolib::i_contiguous_random_access_container< char >
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crend () const
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
iterator insert (const const_iterator &aPosition, const value_type &aValue)
 
iterator erase (const const_iterator &aPosition)
 
- Public Member Functions inherited from neolib::i_sequence_container< T, i_random_access_const_iterator< T >, i_random_access_iterator< T > >
virtual void resize (size_type aSize, const value_type &aValue)=0
 
iterator insert (const abstract_iterator &aPosition, const value_type &aValue)
 
iterator insert (const abstract_const_iterator &aPosition, const value_type &aValue)
 
virtual void push_back (const value_type &aValue)=0
 
- Public Member Functions inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
bool empty () const noexcept
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crend () const
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
iterator erase (const abstract_iterator &aPosition)
 
iterator erase (const abstract_const_iterator &aPosition)
 
iterator erase (const abstract_iterator &aFirst, const abstract_iterator &aLast)
 
iterator erase (const abstract_const_iterator &aFirst, const abstract_const_iterator &aLast)
 
i_containeroperator= (const i_container &aRhs)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 

Additional Inherited Members

- Public Types inherited from neolib::string
typedef i_string abstract_type
 
typedef char value_type
 
typedef std::string std_type
 
- Public Types inherited from neolib::i_string
typedef self_type abstract_type
 
- Public Types inherited from neolib::i_contiguous_random_access_container< char >
typedef self_type abstract_type
 
typedef offset_iterator< const value_typeconst_iterator
 
typedef offset_iterator< value_typeiterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
- Public Types inherited from neolib::i_random_access_container< T >
typedef self_type abstract_type
 
- Public Types inherited from neolib::i_sequence_container< T, i_random_access_const_iterator< T >, i_random_access_iterator< T > >
typedef self_type abstract_type
 
typedef T value_type
 
typedef size_t size_type
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef i_random_access_const_iterator< T > abstract_const_iterator
 
typedef i_random_access_iterator< T > abstract_iterator
 
- Public Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef T value_type
 
typedef size_t size_type
 
typedef ConstIteratorType abstract_const_iterator
 
typedef IteratorType abstract_iterator
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
- Protected Types inherited from neolib::string
typedef container::random_access_const_iterator< char, std::string::const_iterator > container_const_iterator
 
typedef container::random_access_iterator< char, std::string::iterator, std::string::const_iterator > container_iterator
 
typedef container_const_iterator::abstract_const_iterator abstract_const_iterator
 
typedef container_iterator::abstract_iterator abstract_iterator
 
- Protected Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef i_container< T, ConstIteratorType, IteratorTypegeneric_container_type
 

Detailed Description

Definition at line 40 of file i18n.hpp.

Constructor & Destructor Documentation

◆ translatable_string()

neogfx::translatable_string::translatable_string ( i_string const &  aTranslatableString,
i_string const &  aContext 
)

Member Function Documentation

◆ operator()()

translatable_string & neogfx::translatable_string::operator() ( std::int64_t  aPlurality)
Todo:
add support for multiple plurals in a string

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