#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "hnjalloc.h"
#include "hyphen.h"
Graphe des dépendances par inclusion de hyphen.c:
Aller au code source de ce fichier.
Classes | |
struct | _HashTab |
struct | _HashEntry |
Macros | |
#define | noVERBOSE |
#define | HASH_SIZE 31627 |
#define | MAX_WORD 256 |
Définition de type | |
typedef _HashTab | HashTab |
typedef _HashEntry | HashEntry |
Fonctions | |
static char * | hnj_strdup (const char *s) |
static unsigned int | hnj_string_hash (const char *s) |
static HashTab * | hnj_hash_new (void) |
static void | hnj_hash_free (HashTab *hashtab) |
static void | hnj_hash_insert (HashTab *hashtab, const char *key, int val) |
static int | hnj_hash_lookup (HashTab *hashtab, const char *key) |
static int | hnj_get_state (HyphenDict *dict, HashTab *hashtab, const char *string) |
static void | hnj_add_trans (HyphenDict *dict, int state1, int state2, char ch) |
HyphenDict * | hnj_hyphen_load (const char *fn) |
void | hnj_hyphen_free (HyphenDict *dict) |
int | hnj_hyphen_hyphenate (HyphenDict *dict, const char *word, int word_size, char *hyphens) |
#define HASH_SIZE 31627 |
Définition à la ligne 71 du fichier hyphen.c.
Référencé par hnj_hash_free(), hnj_hash_insert(), hnj_hash_lookup(), et hnj_hash_new().
#define MAX_WORD 256 |
typedef struct _HashEntry HashEntry |
static void hnj_add_trans | ( | HyphenDict * | dict, | |
int | state1, | |||
int | state2, | |||
char | ch | |||
) | [static] |
Définition à la ligne 188 du fichier hyphen.c.
Références _HyphenTrans::ch, hnj_malloc(), hnj_realloc(), _HyphenTrans::new_state, _HyphenState::num_trans, _HyphenDict::states, et _HyphenState::trans.
Référencé par hnj_hyphen_load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
static int hnj_get_state | ( | HyphenDict * | dict, | |
HashTab * | hashtab, | |||
const char * | string | |||
) | [static] |
Définition à la ligne 161 du fichier hyphen.c.
Références _HyphenState::fallback_state, hnj_hash_insert(), hnj_hash_lookup(), hnj_realloc(), _HyphenState::match, _HyphenDict::num_states, _HyphenState::num_trans, _HyphenDict::states, et _HyphenState::trans.
Référencé par hnj_hyphen_load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
static void hnj_hash_free | ( | HashTab * | hashtab | ) | [static] |
Définition à la ligne 114 du fichier hyphen.c.
Références _HashTab::entries, HASH_SIZE, hnj_free(), _HashEntry::key, et _HashEntry::next.
Voici le graphe d'appel pour cette fonction :
static void hnj_hash_insert | ( | HashTab * | hashtab, | |
const char * | key, | |||
int | val | |||
) | [static] |
Définition à la ligne 132 du fichier hyphen.c.
Références _HashTab::entries, HASH_SIZE, hnj_malloc(), hnj_strdup(), hnj_string_hash(), _HashEntry::key, _HashEntry::next, et _HashEntry::val.
Référencé par hnj_get_state(), et hnj_hyphen_load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
static int hnj_hash_lookup | ( | HashTab * | hashtab, | |
const char * | key | |||
) | [static] |
Définition à la ligne 147 du fichier hyphen.c.
Références _HashTab::entries, HASH_SIZE, hnj_string_hash(), _HashEntry::key, _HashEntry::next, et _HashEntry::val.
Référencé par hnj_get_state(), et hnj_hyphen_load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
static HashTab* hnj_hash_new | ( | void | ) | [static] |
Définition à la ligne 101 du fichier hyphen.c.
Références _HashTab::entries, HASH_SIZE, et hnj_malloc().
Référencé par hnj_hyphen_load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void hnj_hyphen_free | ( | HyphenDict * | dict | ) |
Définition à la ligne 361 du fichier hyphen.c.
Références hnj_free(), _HyphenState::match, _HyphenDict::num_states, _HyphenDict::states, et _HyphenState::trans.
Référencé par KoHyphenator::~KoHyphenator().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
int hnj_hyphen_hyphenate | ( | HyphenDict * | dict, | |
const char * | word, | |||
int | word_size, | |||
char * | hyphens | |||
) |
Définition à la ligne 382 du fichier hyphen.c.
Références _HyphenTrans::ch, _HyphenState::fallback_state, hnj_malloc(), _HyphenState::match, MAX_WORD, _HyphenTrans::new_state, _HyphenState::num_trans, _HyphenDict::states, et _HyphenState::trans.
Référencé par KoHyphenator::hyphenate(), et KoHyphenator::hyphens().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
HyphenDict* hnj_hyphen_load | ( | const char * | fn | ) |
Définition à la ligne 226 du fichier hyphen.c.
Références _HyphenDict::cset, _HashTab::entries, gensymbolfontmap::f, _HyphenState::fallback_state, hnj_add_trans(), hnj_get_state(), hnj_hash_insert(), hnj_hash_lookup(), hnj_hash_new(), hnj_malloc(), hnj_strdup(), _HashEntry::key, _HyphenState::match, MAX_NAME, _HashEntry::next, _HyphenDict::num_states, _HyphenState::num_trans, _HyphenDict::states, _HyphenState::trans, et _HashEntry::val.
Référencé par KoHyphenator::dict().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
static char* hnj_strdup | ( | const char * | s | ) | [static] |
Définition à la ligne 52 du fichier hyphen.c.
Références hnj_malloc().
Référencé par hnj_hash_insert(), et hnj_hyphen_load().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
static unsigned int hnj_string_hash | ( | const char * | s | ) | [static] |
Définition à la ligne 85 du fichier hyphen.c.
Référencé par hnj_hash_insert(), et hnj_hash_lookup().
Voici le graphe d'appel pour cette fonction :