https://github.com/chansen/c-utf8-valid
Single-header UTF-8 validation routines for C
https://github.com/chansen/c-utf8-valid
c unicode utf-8 validation
Last synced: 22 days ago
JSON representation
Single-header UTF-8 validation routines for C
- Host: GitHub
- URL: https://github.com/chansen/c-utf8-valid
- Owner: chansen
- Created: 2017-05-03T14:29:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-21T15:50:16.000Z (about 1 year ago)
- Last Synced: 2024-10-11T21:22:34.363Z (12 months ago)
- Topics: c, unicode, utf-8, validation
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
utf8_valid.h
============This header file provides functions to validate UTF-8 encoding form according to the specification published by Unicode and ISO/IEC 10646:2011.
```c
bool utf8_valid(const char *src, size_t len);
bool utf8_check(const char *src, size_t len, size_t *cursor);
size_t utf8_maximal_subpart(const char *src, size_t len);```