aboutsummaryrefslogtreecommitdiff
path: root/include/unicode.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-17 08:13:19 -0500
committerGitHub <noreply@github.com>2019-01-17 08:13:19 -0500
commit5a0c4234b8f0ef5ad3d17430e876e29242b934e2 (patch)
tree0d9dd8ed027d59853870bb205997243f73a626c7 /include/unicode.h
parent60a16bbf416cf17b62436951d3309b9bf87f151f (diff)
parentf951c2357fc4c1f25c7af34958e37cd65a6979d2 (diff)
Merge pull request #3447 from emersion/remove-swaylock-includes
Remove swaylock headers and unicode.c
Diffstat (limited to 'include/unicode.h')
-rw-r--r--include/unicode.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/include/unicode.h b/include/unicode.h
deleted file mode 100644
index e2ee9588..00000000
--- a/include/unicode.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef _SWAY_UNICODE_H
-#define _SWAY_UNICODE_H
-#include <stddef.h>
-#include <stdint.h>
-
-// Technically UTF-8 supports up to 6 byte codepoints, but Unicode itself
-// doesn't really bother with more than 4.
-#define UTF8_MAX_SIZE 4
-
-#define UTF8_INVALID 0x80
-
-/**
- * Grabs the next UTF-8 character and advances the string pointer
- */
-uint32_t utf8_decode(const char **str);
-
-/**
- * Encodes a character as UTF-8 and returns the length of that character.
- */
-size_t utf8_encode(char *str, uint32_t ch);
-
-/**
- * Returns the size of the next UTF-8 character
- */
-int utf8_size(const char *str);
-
-/**
- * Returns the size of a UTF-8 character
- */
-size_t utf8_chsize(uint32_t ch);
-
-#endif
-