#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.
Войдите, чтобы присоединиться к обсуждению.
Загрузка...
Отмена
Сохранить
Пока нет содержимого.