[#12616] Properly compute UTF16 sizes for escapes
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
Replaces the conservative estimates of utf16 sizes of character escapes with actual size based on the decoded char. Allows parsing strings that are under the 65535 UTF-16 size limit, but exceed the conservative estimate by using Unicode escapes for chars in the \u0000 .. 0x001F range.
Also, I don't think the string size limit is checked on strings entered in UI (LStatement), but that probably isn't needed. No one's going to edit that directly.
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
由 MDT GitHub 同步机器人自动同步。