MuPDF X.Y.Z

fitz/hyphen.h

Index

struct

function

Hyphen

struct fz_hyphenator

struct fz_hyphenator {
        fz_pool *pool;
        int node_count;
        int pattern_count;
        fz_hyph_trie *trie;
}

struct fz_hyph_trie

struct fz_hyph_trie
{
        char *patval; /* null unless leaf */
        short patlen; /* num values - 1 in pattern */
        int ch; /* char to branch on (not used for leaves) */
        fz_hyph_trie *child;
        fz_hyph_trie *next;
}

function fz_new_hyphenator_from_stream

fz_hyphenator *
fz_new_hyphenator_from_stream (
        fz_context *ctx,
        fz_stream *stm
)

function fz_register_hyphenator

void
fz_register_hyphenator (
        fz_context *ctx,
        fz_text_language lang,
        fz_hyphenator *hyph
)

function fz_hyphenate_word

void
fz_hyphenate_word (
        fz_context *ctx,
        fz_hyphenator *hyph,
        const char *input,
        int input_size,
        char *output,
        int output_size
)

function fz_drop_hyphenator

void
fz_drop_hyphenator (
        fz_context *ctx,
        fz_hyphenator *hyph
)

function fz_lookup_hyphenator

fz_hyphenator *
fz_lookup_hyphenator (
        fz_context *ctx,
        fz_text_language lang
)