The Battle for Wesnoth  1.19.7+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 29 of file tstring.hpp.

Constructor & Destructor Documentation

◆ walker()

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

Definition at line 56 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 41 of file tstring.hpp.

References begin_, and string_.

◆ count()

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

Definition at line 39 of file tstring.hpp.

References count_.

◆ countable()

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

Definition at line 38 of file tstring.hpp.

References countable_.

◆ end()

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

Definition at line 42 of file tstring.hpp.

References end_, and string_.

◆ eos()

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

Definition at line 35 of file tstring.hpp.

References begin_, and string_.

◆ last()

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

Definition at line 36 of file tstring.hpp.

References end_, and string_.

◆ next()

void t_string_base::walker::next ( )
inline

Definition at line 34 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 197 of file tstring.cpp.

◆ plural_end()

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

Definition at line 206 of file tstring.cpp.

References mark.

◆ textdomain()

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

Definition at line 40 of file tstring.hpp.

References textdomain_.

◆ translatable()

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

Definition at line 37 of file tstring.hpp.

References translatable_.

◆ update()

void t_string_base::walker::update ( )
private

Member Data Documentation

◆ begin_

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

Definition at line 50 of file tstring.hpp.

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

◆ count_

int t_string_base::walker::count_
private

Definition at line 54 of file tstring.hpp.

Referenced by count().

◆ countable_

bool t_string_base::walker::countable_
private

Definition at line 53 of file tstring.hpp.

Referenced by countable().

◆ end_

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

Definition at line 51 of file tstring.hpp.

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

◆ string_

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

Definition at line 49 of file tstring.hpp.

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

◆ textdomain_

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

Definition at line 52 of file tstring.hpp.

Referenced by textdomain().

◆ translatable_

bool t_string_base::walker::translatable_
private

Definition at line 53 of file tstring.hpp.

Referenced by translatable(), and walker().


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