|
@@ -16,8 +16,6 @@
|
|
|
|
|
|
#include "process_unicode_common.h"
|
|
|
#include "eeprom.h"
|
|
|
-#include <ctype.h>
|
|
|
-#include <string.h>
|
|
|
|
|
|
unicode_config_t unicode_config;
|
|
|
uint8_t unicode_saved_mods;
|
|
@@ -231,37 +229,6 @@ void register_unicode(uint32_t code_point) {
|
|
|
unicode_input_finish();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-void send_unicode_hex_string(const char *str) {
|
|
|
- if (!str) {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- while (*str) {
|
|
|
-
|
|
|
- for (; *str == ' '; str++);
|
|
|
- size_t n = strcspn(str, " ");
|
|
|
- char code_point[n+1];
|
|
|
- strncpy(code_point, str, n);
|
|
|
- code_point[n] = '\0';
|
|
|
-
|
|
|
-
|
|
|
- for (char *p = code_point; *p; p++) {
|
|
|
- *p = tolower((unsigned char)*p);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- unicode_input_start();
|
|
|
- send_string(code_point);
|
|
|
- unicode_input_finish();
|
|
|
-
|
|
|
- str += n;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
static const char *decode_utf8(const char *str, int32_t *code_point) {
|
|
|
const char *next;
|