#include <simple_wml.hpp>
Public Types | |
typedef const char * | const_iterator |
typedef const char * | iterator |
typedef const char | value_type |
Public Member Functions | |
string_span () | |
string_span (const char *str, int size) | |
string_span (const char *str) | |
string_span (const char *begin, const char *end) | |
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 34 of file simple_wml.hpp.
typedef const char* simple_wml::string_span::const_iterator |
Definition at line 46 of file simple_wml.hpp.
typedef const char* simple_wml::string_span::iterator |
Definition at line 47 of file simple_wml.hpp.
typedef const char simple_wml::string_span::value_type |
Definition at line 48 of file simple_wml.hpp.
|
inline |
Definition at line 37 of file simple_wml.hpp.
|
inline |
Definition at line 39 of file simple_wml.hpp.
|
inline |
Definition at line 41 of file simple_wml.hpp.
|
inline |
Definition at line 43 of file simple_wml.hpp.
|
inline |
Definition at line 90 of file simple_wml.hpp.
References str_.
Referenced by simple_wml::document::compress(), simple_wml::document::document(), duplicate(), simple_wml::operator<<(), simple_wml::node::output(), simple_wml::document::output_compressed(), wesnothd::room_manager::process_message(), wesnothd::server::read_version(), simple_wml::node::shift_buffers(), to_int(), to_string(), and wesnothd::chat_message::truncate_message().
char * simple_wml::string_span::duplicate | ( | ) | const |
Definition at line 186 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().
|
inline |
Definition at line 94 of file simple_wml.hpp.
References size_.
Referenced by simple_wml::document::generate_root(), wesnothd::game::mute_observer(), simple_wml::node::output(), simple_wml::document::output(), simple_wml::document::output_compressed(), simple_wml::node::output_size(), wesnothd::room_manager::process_room_query(), simple_wml::node::shift_buffers(), to_bool(), wesnothd::game::transfer_side_control(), and wesnothd::game::unmute_observer().
|
inline |
Definition at line 91 of file simple_wml.hpp.
Referenced by simple_wml::operator<<(), wesnothd::server::read_version(), to_string(), and wesnothd::chat_message::truncate_message().
|
inline |
Definition at line 95 of file simple_wml.hpp.
References str_.
Referenced by simple_wml::node::is_dirty(), and simple_wml::node::set_dirty().
|
inline |
Definition at line 60 of file simple_wml.hpp.
References operator==().
|
inline |
Definition at line 66 of file simple_wml.hpp.
References operator==().
|
inline |
Definition at line 72 of file simple_wml.hpp.
References operator==().
|
inline |
Definition at line 75 of file simple_wml.hpp.
|
inline |
Definition at line 50 of file simple_wml.hpp.
Referenced by operator!=().
|
inline |
Definition at line 63 of file simple_wml.hpp.
|
inline |
Definition at line 69 of file simple_wml.hpp.
|
inline |
Definition at line 93 of file simple_wml.hpp.
References size_.
Referenced by duplicate(), simple_wml::node::output(), simple_wml::node::output_size(), wesnothd::room_manager::process_message(), simple_wml::node::shift_buffers(), to_int(), and wesnothd::chat_message::truncate_message().
bool simple_wml::string_span::to_bool | ( | bool | default_value = false | ) | const |
Definition at line 157 of file simple_wml.cpp.
References empty().
Referenced by wesnothd::server::handle_join_game(), wesnothd::server::handle_player_in_game(), and wesnothd::room_manager::process_room_query().
int simple_wml::string_span::to_int | ( | ) | const |
Definition at line 169 of file simple_wml.cpp.
std::string simple_wml::string_span::to_string | ( | ) | const |
Definition at line 181 of file simple_wml.cpp.
References begin(), and end().
Referenced by wesnothd::game::ban_user(), wesnothd::game::find_user(), wesnothd::game::kick_member(), wesnothd::game::mute_observer(), wesnothd::room_manager::process_message(), wesnothd::room_manager::process_room_join(), wesnothd::room_manager::process_room_part(), wesnothd::room_manager::process_room_query(), wesnothd::game::transfer_side_control(), wesnothd::game::unban_user(), and wesnothd::game::unmute_observer().
|
private |
Definition at line 106 of file simple_wml.hpp.
Referenced by empty(), end(), operator<(), operator==(), and size().
|
private |
Definition at line 105 of file simple_wml.hpp.
Referenced by begin(), end(), is_null(), operator<(), and operator==().