![]() |
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 | CASE_U (1 << 0) |
| #define | CASE_L (1 << 1) |
| #define | CASE_F (1 << 2) |
| #define | MR(x) (1 << RUN_TYPE_ ## x) |
| #define | UNICODE_DECOMP_LEN_MAX 18 |
| #define | M(id) (1U << UNICODE_GC_ ## id) |
| #define | POP_STACK_LEN_MAX 4 |
| #define | S UNICODE_C_SPACE |
| #define | D UNICODE_C_DIGIT |
| #define | X UNICODE_C_XDIGIT |
| #define | U UNICODE_C_UPPER |
| #define | L UNICODE_C_LOWER |
| #define | _ UNICODE_C_UNDER |
| #define | d UNICODE_C_DOLLAR |
| #define | SEQ_MAX_LEN 16 |
Functions | |
| static int | lre_case_conv1 (uint32_t c, int conv_type) |
| static int | lre_case_conv_entry (uint32_t *res, uint32_t c, int conv_type, uint32_t idx, uint32_t v) |
| int | lre_case_conv (uint32_t *res, uint32_t c, int conv_type) |
| static int | lre_case_folding_entry (uint32_t c, uint32_t idx, uint32_t v, BOOL is_unicode) |
| int | lre_canonicalize (uint32_t c, BOOL is_unicode) |
| 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_op1 (CharRange *cr, const uint32_t *b_pt, int b_len, int op) |
| int | cr_invert (CharRange *cr) |
| static int | unicode_case1 (CharRange *cr, int case_mask) |
| static int | point_cmp (const void *p1, const void *p2, void *arg) |
| static void | cr_sort_and_remove_overlap (CharRange *cr) |
| int | cr_regexp_canonicalize (CharRange *cr, BOOL is_unicode) |
| 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_prop_ops (CharRange *cr,...) |
| int | unicode_general_category (CharRange *cr, const char *gc_name) |
| int | unicode_prop (CharRange *cr, const char *prop_name) |
| BOOL | lre_is_space_non_ascii (uint32_t c) |
| static int | unicode_sequence_prop1 (int seq_prop_idx, UnicodeSequencePropCB *cb, void *opaque, CharRange *cr) |
| int | unicode_sequence_prop (const char *prop_name, UnicodeSequencePropCB *cb, void *opaque, CharRange *cr) |
Variables | |
| static const uint32_t | unicode_gc_mask_table [] |
| uint8_t const | lre_ctype_bits [256] |
| static const uint16_t | char_range_s [] |
| #define UNICODE_INDEX_BLOCK_LEN 32 |
| #define CASE_U (1 << 0) |
| #define CASE_L (1 << 1) |
| #define CASE_F (1 << 2) |
| #define MR | ( | x | ) | (1 << RUN_TYPE_ ## x) |
| #define UNICODE_DECOMP_LEN_MAX 18 |
| #define M | ( | id | ) | (1U << UNICODE_GC_ ## id) |
| #define POP_STACK_LEN_MAX 4 |
| #define S UNICODE_C_SPACE |
| #define D UNICODE_C_DIGIT |
| #define X UNICODE_C_XDIGIT |
| #define U UNICODE_C_UPPER |
| #define L UNICODE_C_LOWER |
| #define _ UNICODE_C_UNDER |
| #define d UNICODE_C_DOLLAR |
| #define SEQ_MAX_LEN 16 |
| anonymous enum |
| enum DecompTypeEnum |
| enum PropOPEnum |
|
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:
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:
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:
|
static |
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:
|
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:
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:| 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 |
Here is the call graph for this function:
Here is the caller graph for this function:| int unicode_sequence_prop | ( | const char * | prop_name, |
| UnicodeSequencePropCB * | cb, | ||
| void * | opaque, | ||
| CharRange * | cr | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| uint8_t const lre_ctype_bits[256] |
|
static |