| 1111 | } |
| 1112 | |
| 1113 | static void InputWidget_FormatLine(struct InputWidget* w, int i, cc_string* line) { |
| 1114 | cc_string src = w->lines[i]; |
| 1115 | if (!w->convertPercents) { String_AppendString(line, &src); return; } |
| 1116 | |
| 1117 | for (i = 0; i < src.length; i++) { |
| 1118 | char c = src.buffer[i]; |
| 1119 | if (c == '%' && Drawer2D_ValidColorCodeAt(&src, i + 1)) { c = '&'; } |
| 1120 | String_Append(line, c); |
| 1121 | } |
| 1122 | } |
| 1123 | |
| 1124 | static void InputWidget_CalculateLineSizes(struct InputWidget* w) { |
| 1125 | cc_string line; char lineBuffer[STRING_SIZE]; |
no test coverage detected