The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
t_string_base::walker Class Reference

#include <tstring.hpp>

Public Member Functions

 walker (const t_string_base &string)
 
void next ()
 
bool eos () const
 
bool last () const
 
bool translatable () const
 
bool countable () const
 
int count () const
 
const std::string & textdomain () const
 
std::string::const_iterator begin () const
 
std::string::const_iterator end () const
 
std::string::const_iterator plural_begin () const
 
std::string::const_iterator plural_end () const
 

Private Member Functions

void update ()
 

Private Attributes

const std::string & string_
 
std::string::size_type begin_
 
std::string::size_type end_
 
std::string textdomain_
 
bool translatable_
 
bool countable_
 
int count_
 

Detailed Description

Definition at line 27 of file tstring.hpp.

Constructor & Destructor Documentation

◆ walker()

t_string_base::walker::walker ( const t_string_base string)
explicit

Definition at line 59 of file tstring.cpp.

References translatable_, and update().

Member Function Documentation

◆ begin()

std::string::const_iterator t_string_base::walker::begin ( ) const
inline

Definition at line 39 of file tstring.hpp.

References begin_, and string_.

Referenced by plural_begin().

◆ count()

int t_string_base::walker::count ( ) const
inline

Definition at line 37 of file tstring.hpp.

References count_.

Referenced by update().

◆ countable()

bool t_string_base::walker::countable ( ) const
inline

Definition at line 36 of file tstring.hpp.

References countable_.

◆ end()

std::string::const_iterator t_string_base::walker::end ( ) const
inline

Definition at line 40 of file tstring.hpp.

References end_, plural_begin(), plural_end(), string_, and update().

Referenced by plural_begin(), and plural_end().

◆ eos()

bool t_string_base::walker::eos ( ) const
inline

Definition at line 33 of file tstring.hpp.

References begin_, and string_.

◆ last()

bool t_string_base::walker::last ( ) const
inline

Definition at line 34 of file tstring.hpp.

References end_, and string_.

◆ next()

void t_string_base::walker::next ( )
inline

Definition at line 32 of file tstring.hpp.

References begin_, end_, and update().

◆ plural_begin()

std::string::const_iterator t_string_base::walker::plural_begin ( ) const

Definition at line 200 of file tstring.cpp.

References begin(), countable_, and end().

Referenced by end().

◆ plural_end()

std::string::const_iterator t_string_base::walker::plural_end ( ) const

Definition at line 209 of file tstring.cpp.

References countable_, end(), end_, mark, and string_.

Referenced by end().

◆ textdomain()

const std::string& t_string_base::walker::textdomain ( ) const
inline

Definition at line 38 of file tstring.hpp.

References textdomain_.

◆ translatable()

bool t_string_base::walker::translatable ( ) const
inline

Definition at line 35 of file tstring.hpp.

References translatable_.

◆ update()

void t_string_base::walker::update ( )
private

Definition at line 75 of file tstring.cpp.

References begin_, count(), count_, countable_, end_, ERR_CF, mark, string_, textdomain_, and translatable_.

Referenced by end(), next(), and walker().

Member Data Documentation

◆ begin_

std::string::size_type t_string_base::walker::begin_
private

Definition at line 48 of file tstring.hpp.

Referenced by begin(), eos(), next(), and update().

◆ count_

int t_string_base::walker::count_
private

Definition at line 52 of file tstring.hpp.

Referenced by count(), and update().

◆ countable_

bool t_string_base::walker::countable_
private

Definition at line 51 of file tstring.hpp.

Referenced by countable(), plural_begin(), plural_end(), and update().

◆ end_

std::string::size_type t_string_base::walker::end_
private

Definition at line 49 of file tstring.hpp.

Referenced by end(), last(), next(), plural_end(), and update().

◆ string_

const std::string& t_string_base::walker::string_
private

Definition at line 47 of file tstring.hpp.

Referenced by begin(), end(), eos(), last(), plural_end(), and update().

◆ textdomain_

std::string t_string_base::walker::textdomain_
private

Definition at line 50 of file tstring.hpp.

Referenced by textdomain(), and update().

◆ translatable_

bool t_string_base::walker::translatable_
private

Definition at line 51 of file tstring.hpp.

Referenced by translatable(), t_string_base::translatable(), update(), and walker().


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