The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 
const std::stringtextdomain () const
 
std::string::const_iterator begin () const
 
std::string::const_iterator end () const
 

Private Member Functions

void update ()
 

Private Attributes

const std::stringstring_
 
std::string::size_type begin_
 
std::string::size_type end_
 
std::string textdomain_
 
bool translatable_
 

Detailed Description

Definition at line 28 of file tstring.hpp.

Constructor & Destructor Documentation

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

Definition at line 61 of file tstring.cpp.

References translatable_, and update().

Member Function Documentation

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

Definition at line 38 of file tstring.hpp.

References begin_, and string_.

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

Definition at line 39 of file tstring.hpp.

References end_, and string_.

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

Definition at line 34 of file tstring.hpp.

References begin_, and string_.

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

Definition at line 35 of file tstring.hpp.

References end_, and string_.

void t_string_base::walker::next ( )
inline

Definition at line 33 of file tstring.hpp.

References begin_, end_, and update().

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

Definition at line 37 of file tstring.hpp.

References textdomain_.

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

Definition at line 36 of file tstring.hpp.

References translatable_.

void t_string_base::walker::update ( )
private

Definition at line 73 of file tstring.cpp.

References begin_, ERR_CF, string_, and t_string_base::translatable_.

Referenced by next(), and walker().

Member Data Documentation

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

Definition at line 44 of file tstring.hpp.

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

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

Definition at line 45 of file tstring.hpp.

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

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

Definition at line 43 of file tstring.hpp.

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

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

Definition at line 46 of file tstring.hpp.

Referenced by textdomain().

bool t_string_base::walker::translatable_
private

Definition at line 47 of file tstring.hpp.

Referenced by translatable(), and walker().


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