HomoglyphCharacterStringTransformer

This util class allows you to optimize the binary size of the transmitted text message strings. It replaces certain characters from national alphabets with the characters from the latin alphabet that have an identical appearance (homoglyphs), for example: cyrillic "А", "С", "у" -> latin "A", "C", "y", etc. According to statistics, such letters can make up about 20-25% of the total number of letters in the average text. Replacing them with Latin characters reduces the binary size of the transmitted message. The average transmitted message volume can then fit around ~140-145 characters instead of ~115-120

Functions

Link copied to clipboard

Returns the transformed optimized String value, in which some characters of the national alphabets are replaced with identical Latin characters so that the text takes up fewer bytes and is more compact for transmission.