| 1265 | } |
| 1266 | |
| 1267 | static int InputWidget_DoAppendText(struct InputWidget* w, const cc_string* text) { |
| 1268 | int i, appended = 0; |
| 1269 | for (i = 0; i < text->length; i++) { |
| 1270 | if (InputWidget_TryAppendChar(w, text->buffer[i])) appended++; |
| 1271 | } |
| 1272 | return appended; |
| 1273 | } |
| 1274 | |
| 1275 | void InputWidget_AppendText(struct InputWidget* w, const cc_string* text) { |
| 1276 | int appended = InputWidget_DoAppendText(w, text); |
no test coverage detected