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:
parent
3b0f06bb09
commit
b8d35840b3
9 changed files with 143 additions and 59 deletions
|
|
@ -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_ ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue