Files
Bubberstation/code/modules/tgui_input
SkyratBot 6768095f8f [MIRROR] fix: add support for multibyte chars for truncate, stripped_input, tgui_input_text (#29174)
* fix: add support for multibyte chars for `truncate`, `stripped_input`, `tgui_input_text` (#85313)

## About The Pull Request

Add support for multibyte chars for `truncate`, `stripped_input`,
`tgui_input_text`.

Right now, on UI of `tgui_input_text` chars are counted, but on back-end
- bytes. So I made it consistent.
Also fixed that for `stripped_input`, which is used in case of disabled
`tgui input`.
While I was here, made `truncate` proc consistent too

## Why It's Good For The Game

Tgui text input won't lie about the size of input

## Changelog
N/A

* fix: add support for multibyte chars for `truncate`, `stripped_input`, `tgui_input_text`

---------

Co-authored-by: Gaxeer <44334376+Gaxeer@users.noreply.github.com>
2024-08-04 21:08:50 +05:30
..