static int proccess_evt(t_nboon *l, char *c, size_t len) { if (c[0] == CTRL_D) { if (l->b_len == 0) return (NB_EXIT); delete_evt(l); } else if (c[0] == ENTER || c[0] == CTRL_J) return (NB_SUCCESS); else if (c[0] == CTRL_C) return (NB_INTERRUPT); else if (c[0] == ESCAPE && c[1] == '[' && c[2] == '0' && c[3] == 'n') g_refresh_fn(l); else if (execute_evt(l, c[0], &c[1]) == 0) { if (l->b_len + len < LINE_BUF_SIZE) insert_utf8(l, c, len); else { clear_line_evt(l); g_nb_error = ERR_TO_LONG; return (NB_ERROR); } } return (250); }
static int doDotsText (xmlNode * node) { ud->text_length = 0; insert_utf8 (node->content); if (!lou_dotsToChar (ud->main_braille_table, ud->text_buffer, &ud->outbuf1[ud->outbuf1_len_so_far], ud->text_length, 0)) return 0; ud->outbuf1_len_so_far += ud->text_length; return 1; }
static void graphicCdata (xmlNode * node) { insert_utf8 (node->content); }
static void chemCdata (xmlNode * node) { insert_utf8 (node->content); }