Functions | |
void | truncate_message (const simple_wml::string_span &str, simple_wml::node &message) |
Function to ensure a text message is within the allowed length. More... | |
Variables | |
const std::size_t | max_message_length = 256 |
void wesnothd::chat_message::truncate_message | ( | const simple_wml::string_span & | str, |
simple_wml::node & | message | ||
) |
Function to ensure a text message is within the allowed length.
Definition at line 29 of file player_network.cpp.
References simple_wml::string_span::begin(), simple_wml::string_span::end(), max_message_length, simple_wml::string_span::size(), and utf8::truncate_as_ucs4().
Referenced by wesnothd::server::handle_message(), wesnothd::server::handle_whisper(), wesnothd::game::process_message(), and wesnothd::game::process_turn().
const std::size_t wesnothd::chat_message::max_message_length = 256 |
Definition at line 27 of file player_network.cpp.
Referenced by truncate_message().