RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Typedefs | Functions | Variables
utf8proc.h File Reference
#include <stdlib.h>
#include <sys/types.h>
#include <stdbool.h>
#include <inttypes.h>
#include <limits.h>
Include dependency graph for utf8proc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  utf8proc_property_struct
 

Macros

#define SSIZE_MAX   ((size_t)SIZE_MAX/2)
 
#define UTF8PROC_NULLTERM   (1<<0)
 
#define UTF8PROC_STABLE   (1<<1)
 
#define UTF8PROC_COMPAT   (1<<2)
 
#define UTF8PROC_COMPOSE   (1<<3)
 
#define UTF8PROC_DECOMPOSE   (1<<4)
 
#define UTF8PROC_IGNORE   (1<<5)
 
#define UTF8PROC_REJECTNA   (1<<6)
 
#define UTF8PROC_NLF2LS   (1<<7)
 
#define UTF8PROC_NLF2PS   (1<<8)
 
#define UTF8PROC_NLF2LF   (UTF8PROC_NLF2LS | UTF8PROC_NLF2PS)
 
#define UTF8PROC_STRIPCC   (1<<9)
 
#define UTF8PROC_CASEFOLD   (1<<10)
 
#define UTF8PROC_CHARBOUND   (1<<11)
 
#define UTF8PROC_LUMP   (1<<12)
 
#define UTF8PROC_STRIPMARK   (1<<13)
 
#define UTF8PROC_ERROR_NOMEM   -1
 
#define UTF8PROC_ERROR_OVERFLOW   -2
 
#define UTF8PROC_ERROR_INVALIDUTF8   -3
 
#define UTF8PROC_ERROR_NOTASSIGNED   -4
 
#define UTF8PROC_ERROR_INVALIDOPTS   -5
 
#define UTF8PROC_CATEGORY_LU   1
 
#define UTF8PROC_CATEGORY_LL   2
 
#define UTF8PROC_CATEGORY_LT   3
 
#define UTF8PROC_CATEGORY_LM   4
 
#define UTF8PROC_CATEGORY_LO   5
 
#define UTF8PROC_CATEGORY_MN   6
 
#define UTF8PROC_CATEGORY_MC   7
 
#define UTF8PROC_CATEGORY_ME   8
 
#define UTF8PROC_CATEGORY_ND   9
 
#define UTF8PROC_CATEGORY_NL   10
 
#define UTF8PROC_CATEGORY_NO   11
 
#define UTF8PROC_CATEGORY_PC   12
 
#define UTF8PROC_CATEGORY_PD   13
 
#define UTF8PROC_CATEGORY_PS   14
 
#define UTF8PROC_CATEGORY_PE   15
 
#define UTF8PROC_CATEGORY_PI   16
 
#define UTF8PROC_CATEGORY_PF   17
 
#define UTF8PROC_CATEGORY_PO   18
 
#define UTF8PROC_CATEGORY_SM   19
 
#define UTF8PROC_CATEGORY_SC   20
 
#define UTF8PROC_CATEGORY_SK   21
 
#define UTF8PROC_CATEGORY_SO   22
 
#define UTF8PROC_CATEGORY_ZS   23
 
#define UTF8PROC_CATEGORY_ZL   24
 
#define UTF8PROC_CATEGORY_ZP   25
 
#define UTF8PROC_CATEGORY_CC   26
 
#define UTF8PROC_CATEGORY_CF   27
 
#define UTF8PROC_CATEGORY_CS   28
 
#define UTF8PROC_CATEGORY_CO   29
 
#define UTF8PROC_CATEGORY_CN   30
 
#define UTF8PROC_BIDI_CLASS_L   1
 
#define UTF8PROC_BIDI_CLASS_LRE   2
 
#define UTF8PROC_BIDI_CLASS_LRO   3
 
#define UTF8PROC_BIDI_CLASS_R   4
 
#define UTF8PROC_BIDI_CLASS_AL   5
 
#define UTF8PROC_BIDI_CLASS_RLE   6
 
#define UTF8PROC_BIDI_CLASS_RLO   7
 
#define UTF8PROC_BIDI_CLASS_PDF   8
 
#define UTF8PROC_BIDI_CLASS_EN   9
 
#define UTF8PROC_BIDI_CLASS_ES   10
 
#define UTF8PROC_BIDI_CLASS_ET   11
 
#define UTF8PROC_BIDI_CLASS_AN   12
 
#define UTF8PROC_BIDI_CLASS_CS   13
 
#define UTF8PROC_BIDI_CLASS_NSM   14
 
#define UTF8PROC_BIDI_CLASS_BN   15
 
#define UTF8PROC_BIDI_CLASS_B   16
 
#define UTF8PROC_BIDI_CLASS_S   17
 
#define UTF8PROC_BIDI_CLASS_WS   18
 
#define UTF8PROC_BIDI_CLASS_ON   19
 
#define UTF8PROC_DECOMP_TYPE_FONT   1
 
#define UTF8PROC_DECOMP_TYPE_NOBREAK   2
 
#define UTF8PROC_DECOMP_TYPE_INITIAL   3
 
#define UTF8PROC_DECOMP_TYPE_MEDIAL   4
 
#define UTF8PROC_DECOMP_TYPE_FINAL   5
 
#define UTF8PROC_DECOMP_TYPE_ISOLATED   6
 
#define UTF8PROC_DECOMP_TYPE_CIRCLE   7
 
#define UTF8PROC_DECOMP_TYPE_SUPER   8
 
#define UTF8PROC_DECOMP_TYPE_SUB   9
 
#define UTF8PROC_DECOMP_TYPE_VERTICAL   10
 
#define UTF8PROC_DECOMP_TYPE_WIDE   11
 
#define UTF8PROC_DECOMP_TYPE_NARROW   12
 
#define UTF8PROC_DECOMP_TYPE_SMALL   13
 
#define UTF8PROC_DECOMP_TYPE_SQUARE   14
 
#define UTF8PROC_DECOMP_TYPE_FRACTION   15
 
#define UTF8PROC_DECOMP_TYPE_COMPAT   16
 

Typedefs

typedef int16_t utf8proc_propval_t
 
typedef struct utf8proc_property_struct utf8proc_property_t
 

Functions

const char * utf8proc_version (void)
 
const char * utf8proc_errmsg (ssize_t errcode)
 
ssize_t utf8proc_iterate (const uint8_t *str, ssize_t strlen, int32_t *dst)
 
bool utf8proc_codepoint_valid (int32_t uc)
 
ssize_t utf8proc_encode_char (int32_t uc, uint8_t *dst)
 
const utf8proc_property_tutf8proc_get_property (int32_t uc)
 
ssize_t utf8proc_decompose_char (int32_t uc, int32_t *dst, ssize_t bufsize, int options, int *last_boundclass)
 
ssize_t utf8proc_decompose (const uint8_t *str, ssize_t strlen, int32_t *buffer, ssize_t bufsize, int options)
 
ssize_t utf8proc_reencode (int32_t *buffer, ssize_t length, int options)
 
ssize_t utf8proc_map (const uint8_t *str, ssize_t strlen, uint8_t **dstptr, int options)
 
uint8_t * utf8proc_NFD (const uint8_t *str)
 
uint8_t * utf8proc_NFC (const uint8_t *str)
 
uint8_t * utf8proc_NFKD (const uint8_t *str)
 
uint8_t * utf8proc_NFKC (const uint8_t *str)
 

Variables

const int8_t utf8proc_utf8class [256]