mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-02 19:29:21 +00:00
Add <uchar.h> header.
This commit is contained in:
parent
bf2c1f2266
commit
cc8e003860
28
ORCACDefs/uchar.h
Normal file
28
ORCACDefs/uchar.h
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/****************************************************************
|
||||||
|
*
|
||||||
|
* uchar.h - Unicode utilities
|
||||||
|
*
|
||||||
|
* October 2021
|
||||||
|
* Stephen Heumann
|
||||||
|
*
|
||||||
|
****************************************************************/
|
||||||
|
|
||||||
|
#ifndef __uchar__
|
||||||
|
#define __uchar__
|
||||||
|
|
||||||
|
typedef unsigned long mbstate_t;
|
||||||
|
|
||||||
|
#ifndef __size_t__
|
||||||
|
#define __size_t__ 1
|
||||||
|
typedef unsigned long size_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef unsigned short char16_t;
|
||||||
|
typedef unsigned long char32_t;
|
||||||
|
|
||||||
|
size_t c16rtomb(char *, char16_t, mbstate_t *);
|
||||||
|
size_t c32rtomb(char *, char32_t, mbstate_t *);
|
||||||
|
size_t mbrtoc16(char16_t *, const char *, size_t, mbstate_t *);
|
||||||
|
size_t mbrtoc32(char32_t *, const char *, size_t, mbstate_t *);
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user