Public Member Functions | Private Attributes

simple_wml::string_span Class Reference

#include <simple_wml.hpp>

List of all members.

Public Member Functions

 string_span ()
 string_span (const char *str, int size)
 string_span (const char *str)
bool operator== (const char *o) const
bool operator!= (const char *o) const
bool operator== (const std::string &o) const
bool operator!= (const std::string &o) const
bool operator== (const string_span &o) const
bool operator!= (const string_span &o) const
bool operator< (const string_span &o) const
const char * begin () const
const char * end () const
int size () const
bool empty () const
bool is_null () const
bool to_bool (bool default_value=false) const
int to_int () const
std::string to_string () const
char * duplicate () const

Private Attributes

const char * str_
unsigned int size_

Detailed Description

Definition at line 20 of file simple_wml.hpp.


Constructor & Destructor Documentation

simple_wml::string_span::string_span (  )  [inline]

Definition at line 23 of file simple_wml.hpp.

simple_wml::string_span::string_span ( const char *  str,
int  size 
) [inline]

Definition at line 25 of file simple_wml.hpp.

simple_wml::string_span::string_span ( const char *  str  )  [inline]

Definition at line 27 of file simple_wml.hpp.


Member Function Documentation

const char* simple_wml::string_span::begin (  )  const [inline]
char * simple_wml::string_span::duplicate (  )  const

Definition at line 157 of file simple_wml.cpp.

References begin(), and size().

Referenced by simple_wml::node::apply_diff(), metrics::record_sample(), and simple_wml::node::set_attr_dup().

Here is the call graph for this function:

Here is the caller graph for this function:

bool simple_wml::string_span::empty (  )  const [inline]
const char* simple_wml::string_span::end (  )  const [inline]

Definition at line 71 of file simple_wml.hpp.

References size_, and str_.

Referenced by server::process_data_game(), server::process_login(), wesnothd::game::process_turn(), wesnothd::game::process_whiteboard(), and to_string().

Here is the caller graph for this function:

bool simple_wml::string_span::is_null (  )  const [inline]

Definition at line 75 of file simple_wml.hpp.

References str_.

Referenced by simple_wml::node::is_dirty(), and simple_wml::node::set_dirty().

Here is the caller graph for this function:

bool simple_wml::string_span::operator!= ( const char *  o  )  const [inline]

Definition at line 40 of file simple_wml.hpp.

References operator==().

Here is the call graph for this function:

bool simple_wml::string_span::operator!= ( const std::string &  o  )  const [inline]

Definition at line 46 of file simple_wml.hpp.

References operator==().

Here is the call graph for this function:

bool simple_wml::string_span::operator!= ( const string_span o  )  const [inline]

Definition at line 52 of file simple_wml.hpp.

References operator==().

Here is the call graph for this function:

bool simple_wml::string_span::operator< ( const string_span o  )  const [inline]

Definition at line 55 of file simple_wml.hpp.

References size_, and str_.

bool simple_wml::string_span::operator== ( const char *  o  )  const [inline]

Definition at line 30 of file simple_wml.hpp.

References size_, and str_.

Referenced by operator!=().

Here is the caller graph for this function:

bool simple_wml::string_span::operator== ( const string_span o  )  const [inline]

Definition at line 49 of file simple_wml.hpp.

References size_, and str_.

bool simple_wml::string_span::operator== ( const std::string &  o  )  const [inline]

Definition at line 43 of file simple_wml.hpp.

References size_, and str_.

int simple_wml::string_span::size (  )  const [inline]
bool simple_wml::string_span::to_bool ( bool  default_value = false  )  const

Definition at line 128 of file simple_wml.cpp.

References empty().

Here is the call graph for this function:

int simple_wml::string_span::to_int (  )  const

Definition at line 140 of file simple_wml.cpp.

References begin(), and size().

Here is the call graph for this function:

std::string simple_wml::string_span::to_string (  )  const

Definition at line 152 of file simple_wml.cpp.

References begin(), and end().

Referenced by wesnothd::game::ban_user(), wesnothd::game::kick_member(), wesnothd::game::mute_observer(), wesnothd::game::transfer_side_control(), wesnothd::game::unban_user(), and wesnothd::game::unmute_observer().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

unsigned int simple_wml::string_span::size_ [private]

Definition at line 86 of file simple_wml.hpp.

Referenced by empty(), end(), operator<(), operator==(), and size().

const char* simple_wml::string_span::str_ [private]

Definition at line 85 of file simple_wml.hpp.

Referenced by begin(), end(), is_null(), operator<(), and operator==().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:25:53 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs