![]() |
libgpac
Documentation of the core library of GPAC
|
#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <string.h>#include <assert.h>#include "cutils.h"#include "libunicode.h"#include "libunicode-table.h"
Include dependency graph for libunicode.c:Macros | |
| #define | UNICODE_INDEX_BLOCK_LEN 32 |
| #define | UNICODE_DECOMP_LEN_MAX 18 |
| #define | M(id) (1U << UNICODE_GC_ ## id) |
| #define | CASE_U (1 << 0) |
| #define | CASE_L (1 << 1) |
| #define | CASE_F (1 << 2) |
| #define | MR(x) (1 << RUN_TYPE_ ## x) |
| #define | POP_STACK_LEN_MAX 4 |
Functions | |
| int | lre_case_conv (uint32_t *res, uint32_t c, int conv_type) |
| static uint32_t | get_le24 (const uint8_t *ptr) |
| static int | get_index_pos (uint32_t *pcode, uint32_t c, const uint8_t *index_table, int index_table_len) |
| static BOOL | lre_is_in_table (uint32_t c, const uint8_t *table, const uint8_t *index_table, int index_table_len) |
| BOOL | lre_is_cased (uint32_t c) |
| BOOL | lre_is_case_ignorable (uint32_t c) |
| static __maybe_unused void | cr_dump (CharRange *cr) |
| static void * | cr_default_realloc (void *opaque, void *ptr, size_t size) |
| void | cr_init (CharRange *cr, void *mem_opaque, DynBufReallocFunc *realloc_func) |
| void | cr_free (CharRange *cr) |
| int | cr_realloc (CharRange *cr, int size) |
| int | cr_copy (CharRange *cr, const CharRange *cr1) |
| static void | cr_compress (CharRange *cr) |
| int | cr_op (CharRange *cr, const uint32_t *a_pt, int a_len, const uint32_t *b_pt, int b_len, int op) |
| int | cr_union1 (CharRange *cr, const uint32_t *b_pt, int b_len) |
| int | cr_invert (CharRange *cr) |
| BOOL | lre_is_id_start (uint32_t c) |
| BOOL | lre_is_id_continue (uint32_t c) |
| static uint32_t | unicode_get_short_code (uint32_t c) |
| static uint32_t | unicode_get_lower_simple (uint32_t c) |
| static uint16_t | unicode_get16 (const uint8_t *p) |
| static int | unicode_decomp_entry (uint32_t *res, uint32_t c, int idx, uint32_t code, uint32_t len, uint32_t type) |
| static int | unicode_decomp_char (uint32_t *res, uint32_t c, BOOL is_compat1) |
| static int | unicode_compose_pair (uint32_t c0, uint32_t c1) |
| static int | unicode_get_cc (uint32_t c) |
| static void | sort_cc (int *buf, int len) |
| static void | to_nfd_rec (DynBuf *dbuf, const int *src, int src_len, int is_compat) |
| static int | compose_pair (uint32_t c0, uint32_t c1) |
| int | unicode_normalize (uint32_t **pdst, const uint32_t *src, int src_len, UnicodeNormalizationEnum n_type, void *opaque, DynBufReallocFunc *realloc_func) |
| static int | unicode_find_name (const char *name_table, const char *name) |
| int | unicode_script (CharRange *cr, const char *script_name, BOOL is_ext) |
| static int | unicode_general_category1 (CharRange *cr, uint32_t gc_mask) |
| static int | unicode_prop1 (CharRange *cr, int prop_idx) |
| static int | unicode_case1 (CharRange *cr, int case_mask) |
| static int | unicode_prop_ops (CharRange *cr,...) |
| int | unicode_general_category (CharRange *cr, const char *gc_name) |
| int | unicode_prop (CharRange *cr, const char *prop_name) |
Variables | |
| static const uint32_t | unicode_gc_mask_table [] |
| #define UNICODE_INDEX_BLOCK_LEN 32 |
| #define UNICODE_DECOMP_LEN_MAX 18 |
| #define M | ( | id | ) | (1U << UNICODE_GC_ ## id) |
| #define CASE_U (1 << 0) |
| #define CASE_L (1 << 1) |
| #define CASE_F (1 << 2) |
| #define MR | ( | x | ) | (1 << RUN_TYPE_ ## x) |
| #define POP_STACK_LEN_MAX 4 |
| anonymous enum |
| enum DecompTypeEnum |
| enum PropOPEnum |
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Here is the caller graph for this function:| void cr_init | ( | CharRange * | cr, |
| void * | mem_opaque, | ||
| DynBufReallocFunc * | realloc_func | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void cr_free | ( | CharRange * | cr | ) |
Here is the caller graph for this function:| int cr_realloc | ( | CharRange * | cr, |
| int | size | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the caller graph for this function:| int cr_op | ( | CharRange * | cr, |
| const uint32_t * | a_pt, | ||
| int | a_len, | ||
| const uint32_t * | b_pt, | ||
| int | b_len, | ||
| int | op | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:| int cr_invert | ( | CharRange * | cr | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:| int unicode_normalize | ( | uint32_t ** | pdst, |
| const uint32_t * | src, | ||
| int | src_len, | ||
| UnicodeNormalizationEnum | n_type, | ||
| void * | opaque, | ||
| DynBufReallocFunc * | realloc_func | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:| int unicode_general_category | ( | CharRange * | cr, |
| const char * | gc_name | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:| int unicode_prop | ( | CharRange * | cr, |
| const char * | prop_name | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |