At some point it seems that I accidentally mass converted all of the macro_f_utf_byte_width() and similar to macro_f_utf_char_t_width().
This broke the printing logic.
The f_print is handling normal characters and not f_utf_char_t.
return F_none;
}
}
- else if (macro_f_utf_char_t_width_is(character) == 1) {
+ else if (macro_f_utf_byte_width_is(character) == 1) {
if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, output) == f_print_sequence_unknown_s.used) {
return F_none;
}
}
- else if (macro_f_utf_char_t_width_is(character) > 1 || character > 0x1f) {
+ else if (macro_f_utf_byte_width_is(character) > 1 || character > 0x1f) {
if (fwrite_unlocked(&character, 1, 1, output)) {
return F_utf;
}
for (register f_array_length_t i = 0; string[i]; ) {
safe.used = 0;
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
if (width > 1) {
if (string[i + 1]) {
return F_none;
}
}
- else if (macro_f_utf_char_t_width_is(character) == 1) {
+ else if (macro_f_utf_byte_width_is(character) == 1) {
if (write(id, f_print_sequence_unknown_s.string, f_print_sequence_unknown_s.used) != -1) {
return F_none;
}
}
- else if (macro_f_utf_char_t_width_is(character) > 1 || character > 0x1f) {
+ else if (macro_f_utf_byte_width_is(character) > 1 || character > 0x1f) {
if (write(id, &character, 1) != -1) {
return F_none;
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
while (i < length) {
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
while (i < length) {
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
for (register f_array_length_t i = 0; string[i]; ) {
safe = f_string_empty_s;
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
if (width > 1) {
if (string[i + 1]) {
return f_print_sequence_delete_s;
}
- if (macro_f_utf_char_t_width_is(character) == 1) {
+ if (macro_f_utf_byte_width_is(character) == 1) {
return f_print_sequence_unknown_s;
}
- if (macro_f_utf_char_t_width_is(character) > 1 || character > 0x1f) {
+ if (macro_f_utf_byte_width_is(character) > 1 || character > 0x1f) {
return f_string_empty_s;
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
}
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
while (i < length) {
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
while (i < length) {
if (string[i]) {
- width = macro_f_utf_char_t_width(string[i]);
+ width = macro_f_utf_byte_width(string[i]);
safe = private_f_print_safely_get(string + i, width);
}
return f_print_sequence_delete_s;
}
- if (macro_f_utf_char_t_width_is(character[0])) {
+ if (macro_f_utf_byte_width_is(character[0])) {
if (f_utf_is_valid(character, width_max) != F_true || f_utf_is_control(character, width_max)) {
return f_print_sequence_unknown_s;
}