Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.4k stars 167 forks source link

maybe add API: ed.get_char_count() #5443

Closed Alexey-T closed 3 months ago

Alexey-T commented 3 months ago

Editor.get_char_count(max_chars, max_time)

return count of chars in document. EOL is counted as 1.

it will be faster version of python function which I shown to @pintassilgo. python version of code calls ed.get_line_len() in loop which is SLOW.