Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajasharan/unicode-utility

UTF-8 string utility functions in C
https://github.com/rajasharan/unicode-utility

Last synced: 3 days ago
JSON representation

UTF-8 string utility functions in C

Awesome Lists containing this project

README

        

Unicode (UTF-8) utility functions
=================================

```C
/*
* return: length of string utf
* 0: if empty string
* -1: if utf is NULL pointer
*/
int u_strlen(char *utf);
```

```C
/*
* return: number of bytes of first character starting at utf
* 0: if not a utf character code
* -1: if null character
*/
int u_ischar(char *utf);
```

Run tests
---------

make test