libdatrie
0.2.7.1
|
AlphaMap data type and functions. More...
Typedefs | |
typedef struct _AlphaMap | AlphaMap |
AlphaMap data type. | |
Functions | |
AlphaMap * | alpha_map_new () |
Create new alphabet map. More... | |
AlphaMap * | alpha_map_clone (const AlphaMap *a_map) |
Create a clone of alphabet map. More... | |
void | alpha_map_free (AlphaMap *alpha_map) |
Free an alphabet map object. More... | |
int | alpha_map_add_range (AlphaMap *alpha_map, AlphaChar begin, AlphaChar end) |
Add a range to alphabet map. More... | |
int | alpha_char_strlen (const AlphaChar *str) |
Alphabet string length. More... | |
int | alpha_char_strcmp (const AlphaChar *str1, const AlphaChar *str2) |
Compare alphabet strings. More... | |
AlphaMap data type and functions.
Compare alphabet strings.
str1,str2 | : the arrays of null-terminated AlphaChar strings to compare |
Available since: 0.2.7
int alpha_char_strlen | ( | const AlphaChar * | str) |
Alphabet string length.
str | : the array of null-terminated AlphaChar string to measure |
Add a range to alphabet map.
alpha_map | : the alphabet map object |
begin | : the first character of the range |
end | : the last character of the range |
Add a range of character codes from begin to end to the alphabet set.
Create a clone of alphabet map.
a_map | : the source alphabet map to clone |
The created object must be freed with alpha_map_free().
void alpha_map_free | ( | AlphaMap * | alpha_map) |
Free an alphabet map object.
alpha_map | : the alphabet map object to free |
Destruct the alpha_map and free its allocated memory.
AlphaMap* alpha_map_new | ( | ) |
Create new alphabet map.
Create a new empty alphabet map. The map contents can then be added with alpha_map_add_range().
The created object must be freed with alpha_map_free().