Fix text cutoff

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-06-16 16:34:10 +00:00
committed by Konstantin Pastbin
parent c04c3b7783
commit d6478a0b4d
3 changed files with 51 additions and 4 deletions

View File

@@ -114,6 +114,8 @@ void Trim(std::string_view & sv);
void Trim(std::string_view & s, std::string_view anyOf);
void Trim(std::string & s, std::string_view anyOf);
bool Truncate(std::string & utf8, size_t const maxTextLengthPlus1);
// Replace the first match of the search substring in the input with the format string.
// str - An input string
// from - A substring to be searched for