diff options
author | Phil Jones <philj56@gmail.com> | 2022-11-19 10:30:18 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-11-19 10:30:18 +0000 |
commit | 0855afdb1ea7734501914679e50be3d324744d83 (patch) | |
tree | c555146e550b856bcfd9c5dfcb11fb781772caf7 /src/unicode.c | |
parent | 1d72d4f2ec9a44dc5f524de018ca3a9fc2911ff0 (diff) |
Add support for pasting from clipboard.
Diffstat (limited to 'src/unicode.c')
-rw-r--r-- | src/unicode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unicode.c b/src/unicode.c index ad8a777..3833fb6 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -12,6 +12,11 @@ uint32_t utf8_to_utf32(const char *s) return g_utf8_get_char(s); } +uint32_t utf8_to_utf32_validate(const char *s) +{ + return g_utf8_get_char_validated(s, -1); +} + uint32_t utf32_isprint(uint32_t c) { return g_unichar_isprint(c); |