add: do not translate messages send to hlds console.

add: split messages sent to client & hlds console, so all message gets sent.
This commit is contained in:
ds 2020-10-12 20:59:48 +03:00
commit b8d35840b3
9 changed files with 143 additions and 59 deletions

View file

@ -327,6 +327,15 @@ public:
return tokens;
}
template <typename U = StringRef> constexpr Array <U> split (size_t maxLength) const {
Array <U> tokens;
for (size_t i = 0; i < length (); i += maxLength) {
tokens.emplace (substr (i, maxLength));
}
return tokens;
}
public:
constexpr const char *begin () const {
return chars_;
@ -673,6 +682,10 @@ public:
return str ().split <String> (delim);
}
Array <String> split (size_t maxLength) const {
return str ().split <String> (maxLength);
}
public:
int32 int_ () const {
return str ().int_ ();