The m17n Library 1.8.4
Loading...
Searching...
No Matches
Functions | Variables
chartab.c File Reference

Functions

MCharTablemchartable (MSymbol key, void *default_value)
 Create a new chartable.
 
int mchartable_min_char (MCharTable *table)
 Return the minimum character whose value is set in a chartabe.
 
int mchartable_max_char (MCharTable *table)
 Return the maximum character whose value is set in a chartabe.
 
void * mchartable_lookup (MCharTable *table, int c)
 Return the assigned value of a character in a chartable.
 
int mchartable_set (MCharTable *table, int c, void *val)
 Assign a value to a character in a chartable.
 
int mchartable_set_range (MCharTable *table, int from, int to, void *val)
 Assign a value to the characters in the specified range.
 
void mchartable_range (MCharTable *table, int *from, int *to)
 Search for characters that have non-default value.
 
int mchartable_map (MCharTable *table, void *ignore, void(*func)(int, int, void *, void *), void *func_arg)
 Call a function for characters in a chartable.
 
MCharTablemdebug_dump_chartab (MCharTable *table, int indent)
 Dump a chartable.
 

Variables

MSymbol Mchar_table
 

Function Documentation

◆ mdebug_dump_chartab()

MCharTable * mdebug_dump_chartab ( MCharTable table,
int  indent 
)

Dump a chartable.

The mdebug_dump_chartab() function prints a chartable table in a human readable way to the stderr or to what specified by the environment variable MDEBUG_OUTPUT_FILE. indent specifies how many columns to indent the lines but the first one.

Return value:
This function returns table.

m17n-lib Home