File: utf8.h

package info (click to toggle)
emacs-libvterm 0.0.2%2Bgit20250113.056ad74-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 452 kB
  • sloc: ansic: 1,914; lisp: 1,514; sh: 57; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef UTF8_H
#define UTF8_H

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char buffer[4]);
bool utf8_to_codepoint(const unsigned char buffer[4], const size_t len,
                       uint32_t *codepoint);

#endif /* UTF8_H */