#include <simple_wml.hpp>
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_ |
Definition at line 17 of file simple_wml.hpp.
simple_wml::string_span::string_span | ( | ) | [inline] |
Definition at line 20 of file simple_wml.hpp.
simple_wml::string_span::string_span | ( | const char * | str, | |
int | size | |||
) | [inline] |
Definition at line 22 of file simple_wml.hpp.
simple_wml::string_span::string_span | ( | const char * | str | ) | [inline] |
Definition at line 24 of file simple_wml.hpp.
bool simple_wml::string_span::operator== | ( | const char * | o | ) | const [inline] |
bool simple_wml::string_span::operator!= | ( | const char * | o | ) | const [inline] |
bool simple_wml::string_span::operator== | ( | const std::string & | o | ) | const [inline] |
bool simple_wml::string_span::operator!= | ( | const std::string & | o | ) | const [inline] |
bool simple_wml::string_span::operator== | ( | const string_span & | o | ) | const [inline] |
bool simple_wml::string_span::operator!= | ( | const string_span & | o | ) | const [inline] |
bool simple_wml::string_span::operator< | ( | const string_span & | o | ) | const [inline] |
const char* simple_wml::string_span::begin | ( | ) | const [inline] |
Definition at line 67 of file simple_wml.hpp.
References str_.
Referenced by game::add_player(), game::ban_user(), simple_wml::document::compress(), describe_turns(), simple_wml::document::document(), duplicate(), game::kick_member(), game::load_next_scenario(), game::notify_new_host(), simple_wml::operator<<(), simple_wml::node::output(), simple_wml::document::output_compressed(), server::process_login(), game::process_message(), game::process_turn(), proxy::received_data(), game::send_data(), game::send_data_observers(), game::send_data_team(), send_doc(), server::send_error(), server::send_error_dup(), game::send_observerjoins(), game::send_to_one(), simple_wml::node::shift_buffers(), game::take_side(), to_int(), to_string(), game::transfer_ai_sides(), chat_message::truncate_message(), and simple_wml::uncompress_buffer().
const char* simple_wml::string_span::end | ( | ) | const [inline] |
Definition at line 68 of file simple_wml.hpp.
Referenced by describe_turns(), simple_wml::operator<<(), server::process_login(), game::process_turn(), to_string(), chat_message::truncate_message(), and simple_wml::uncompress_buffer().
int simple_wml::string_span::size | ( | ) | const [inline] |
Definition at line 70 of file simple_wml.hpp.
References size_.
Referenced by game::add_player(), game::ban_user(), duplicate(), game::kick_member(), game::load_next_scenario(), game::notify_new_host(), simple_wml::node::output(), simple_wml::node::output_size(), game::process_message(), proxy::received_data(), game::send_data(), game::send_data_observers(), game::send_data_team(), send_doc(), server::send_error(), server::send_error_dup(), game::send_observerjoins(), game::send_to_one(), simple_wml::node::shift_buffers(), game::take_side(), to_int(), game::transfer_ai_sides(), chat_message::truncate_message(), and simple_wml::uncompress_buffer().
bool simple_wml::string_span::empty | ( | ) | const [inline] |
Definition at line 71 of file simple_wml.hpp.
References size_.
Referenced by simple_wml::document::generate_root(), game::mute_observer(), simple_wml::document::output(), simple_wml::node::output(), simple_wml::document::output_compressed(), simple_wml::node::output_size(), simple_wml::node::shift_buffers(), and to_bool().
bool simple_wml::string_span::is_null | ( | ) | const [inline] |
Definition at line 72 of file simple_wml.hpp.
References str_.
Referenced by simple_wml::node::is_dirty().
bool simple_wml::string_span::to_bool | ( | bool | default_value = false |
) | const |
int simple_wml::string_span::to_int | ( | ) | const |
std::string simple_wml::string_span::to_string | ( | ) | const |
Definition at line 103 of file simple_wml.cpp.
References begin(), and end().
Referenced by game::ban_user(), game::kick_member(), server::process_query(), and game::set_termination_reason().
char * simple_wml::string_span::duplicate | ( | ) | const |
Definition at line 108 of file simple_wml.cpp.
References begin(), buf, and size().
Referenced by simple_wml::node::apply_diff(), metrics::record_sample(), and simple_wml::node::set_attr_dup().
const char* simple_wml::string_span::str_ [private] |
Definition at line 82 of file simple_wml.hpp.
Referenced by begin(), end(), is_null(), operator<(), and operator==().
unsigned int simple_wml::string_span::size_ [private] |
Definition at line 83 of file simple_wml.hpp.
Referenced by empty(), end(), operator<(), operator==(), and size().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |