#37 Rewrite the buffer gap to use `uint32_t`

Закриті
1 рік тому відкрито nuclearkev · 3 коментарів
Kevin "The Nuclear" Bloom відкоментовано 1 рік тому

Right now the buffer gap uses char_t because Anthony's Editor was written that way. I handle unicode values by splitting them up into chars and then termbox handles the displaying. Since termbox handles the displaying and uses uint32_t I'm pretty sure we can simplify the code and the utf8 detection stuff that Hugh Barney added in by doing this. Probably will take a long time to do.

Right now the buffer gap uses `char_t` because Anthony's Editor was written that way. I handle unicode values by splitting them up into chars and then termbox handles the displaying. Since termbox handles the displaying and uses `uint32_t` I'm pretty sure we can simplify the code and the utf8 detection stuff that Hugh Barney added in by doing this. Probably will take a long time to do.
Kevin "The Nuclear" Bloom відкоментовано 1 рік тому
Власник

In order to really support unicode or multi-byte UTF-8, this needs to happen.

In order to really support unicode or multi-byte UTF-8, this needs to happen.
Kevin "The Nuclear" Bloom відкоментовано 1 рік тому
Власник

I'm not sure the last comment is accurate because UTF-8 and unicode are working currently but there are just some issues. I'm not sure the squeeze is worth the juice to actually do this.

I'm not sure the last comment is accurate because UTF-8 and unicode are working currently but there are just some issues. I'm not sure the squeeze is worth the juice to actually do this.
Kevin "The Nuclear" Bloom відкоментовано 1 рік тому
Власник

This won't be necessary.

This won't be necessary.
Підпишіться щоб приєднатися до обговорення.
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.