18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 22:03:20 +01:00
Files
maszyna/tests/unit/test_win1250.cpp
jerrrrycho c0a0a4204e feat(utilities): a text of the data files as utf-8 for the user interface
data_text_to_utf8() turns a text read from a data file into utf-8: one which already is valid utf-8 stays,
any other is read as windows-1250, the whole code page (win1250_to_utf8() knows the polish letters only, and
utf8_to_win1250() counts on that, so the two stay as they are). A windows-1250 text which is valid utf-8 by
chance (two capital letters with marks in a row) is told by what it would decode to.

data_name_to_utf8() is the same for a name shown in one line: control characters and, when asked,
underscores become spaces, as Bezogonkow() has them, but the letters keep their marks.

utf8_length() and utf8_fit() count, cut and fill by characters, for the columns of a fixed width.

Nothing uses them yet (MaSzyna-EU07/maszyna#94).
2026-11-18 23:50:07 +01:00

5.7 KiB