44 std::string::const_iterator
plural_end()
const;
51 std::string::size_type
end_;
67 t_string_base(
const std::string&
string,
const std::string& textdomain);
68 t_string_base(
const std::string& sing,
const std::string& pl,
int count,
const std::string& textdomain);
101 std::string::size_type
size()
const {
return str().size(); }
103 operator const std::string&()
const {
return str(); }
104 const std::string&
str()
const;
105 const char*
c_str()
const {
return str().c_str(); }
148 t_string(
const std::string &
str,
const std::string &textdomain);
149 t_string(
const std::string& sing,
const std::string& pl,
int count,
const std::string& textdomain);
189 operator const std::string&()
const {
return get(); }
204 std::shared_ptr<const t_string_base>
val_;
std::string::const_iterator begin() const
std::string::const_iterator end() const
std::string::size_type begin_
std::string::const_iterator plural_end() const
const std::string & textdomain() const
walker(const t_string_base &string)
std::string::const_iterator plural_begin() const
bool translatable() const
const std::string & string_
std::string::size_type end_
Helper class for translatable strings.
bool operator!=(const char *that) const
t_string_base & operator=(const t_string_base &)
Default implementation, but defined out-of-line for efficiency reasons.
bool last_untranslatable_
std::string::size_type size() const
static std::map< std::string, unsigned int > textdomain_to_id
bool operator!=(const std::string &that) const
std::string translated_value_
t_string_base & operator+=(const t_string_base &)
std::string to_serialized() const
bool operator!=(const t_string_base &that) const
bool operator==(const t_string_base &) const
bool translatable() const
std::string base_str() const
const std::string & value() const
bool operator<(const t_string_base &string) const
static std::vector< std::string > id_to_textdomain
~t_string_base()
Default implementation, but defined out-of-line for efficiency reasons.
unsigned translation_timestamp_
std::size_t hash_value() const
const std::string & str() const
static t_string_base from_serialized(const std::string &string)
const char * c_str() const
t_string_base operator+(const t_string_base &) const
static void reset_translations()
static t_string from_serialized(const std::string &string)
static void add_textdomain(const std::string &name, const std::string &path)
t_string_base::walker walker
void swap(t_string &other)
const std::string & value() const
bool operator==(const t_string &o) const
bool translatable() const
t_string operator+(const t_string &o) const
~t_string()
Default implementation, but defined out-of-line for efficiency reasons.
t_string & operator+=(const t_string &o)
std::shared_ptr< const t_string_base > val_
t_string & operator+=(const std::string &o)
bool operator==(const std::string &o) const
t_string operator+(const char *o) const
t_string operator+(const std::string &o) const
bool operator==(const char *o) const
bool operator!=(const std::string &o) const
const std::string & str() const
std::string base_str() const
t_string & operator=(const t_string &)
Default implementation, but defined out-of-line for efficiency reasons.
std::string to_serialized() const
void increase_impl(const T &other)
t_string & operator+=(const char *o)
const t_string_base & get() const
t_string()
Default implementation, but defined out-of-line for efficiency reasons.
const char * c_str() const
bool operator!=(const char *o) const
std::string::size_type size() const
bool operator<(const t_string &o) const
bool operator!=(const t_string &o) const
static map_location::DIRECTION nw
bool operator==(const std::string &a, const t_string &b)
bool operator!=(const std::string &a, const t_string &b)
void swap(t_string &lhs, t_string &rhs)
Implement non-member swap function for std::swap (calls t_string::swap).
t_string operator+(const std::string &a, const t_string &b)
std::size_t hash_value(const t_string_base &str)
std::ostream & operator<<(std::ostream &, const t_string_base &)