tesseract-doxygen/dict/choices.h File Reference

#include <stdio.h>
#include <string.h>
#include "oldlist.h"
#include "unicharset.h"

Go to the source code of this file.

Classes

struct  choicestruct

Defines

#define best_string(choices)   (first_node (choices) ? ((A_CHOICE*) (first_node (choices)))->string : NULL)
#define best_lengths(choices)   (first_node (choices) ? ((A_CHOICE*) (first_node (choices)))->lengths : NULL)
#define best_rating(choices)   (((A_CHOICE*) (first_node (choices)))->rating)
#define best_certainty(choices)   (((A_CHOICE*) (first_node (choices)))->certainty)
#define class_rating(choice)   (((A_CHOICE*) (choice))->rating)
#define class_certainty(choice)   (((A_CHOICE*) (choice))->certainty)
#define class_string(choice)   (((A_CHOICE*) (choice))->string)
#define class_lengths(choice)   (((A_CHOICE*) (choice))->lengths)
#define class_permuter(choice)   (((A_CHOICE*) (choice))->permuter)
#define class_config(choice)   (((A_CHOICE*) (choice))->config)
#define class_script_id(choice)   (((A_CHOICE*) (choice))->script_id)
#define free_choices(c)   destroy_nodes ((c), free_choice)
#define print_bold(string)   cprintf ("\033&dB%s\033&d@", string)

Typedefs

typedef LIST CHOICES
typedef struct choicestruct A_CHOICE

Functions

bool class_fragment_mark (A_CHOICE *choice)
void set_class_fragment_mark (A_CHOICE *choice, bool mark)
const char * class_fragment_lengths (A_CHOICE *choice)
CHOICES append_char_choice (CHOICES ratings, const char *string, const char *lengths, float rating, float certainty, inT8 config, int script_id)
CHOICES copy_choices (CHOICES choices)
void clone_choice (A_CHOICE *choice, const char *string, const char *lengths, float rating, float certainty, inT8 permuter, bool fragment_mark, const char *fragment_lengths)
void clone_choice (A_CHOICE *choice_2, A_CHOICE *choice_1)
void clear_choice (A_CHOICE *choice)
void free_choice (void *arg)
A_CHOICEget_best_free_other (A_CHOICE *choice_1, A_CHOICE *choice_2)
A_CHOICEnew_choice (const char *string, const char *lengths, float rating, float certainty, inT8 config, int script_id, char permuter, bool fragment_mark, const char *fragment_lengths)
A_CHOICEnew_choice (const char *string, const char *lengths, float rating, float certainty, inT8 config, char permuter)

Define Documentation

#define best_certainty ( choices   )     (((A_CHOICE*) (first_node (choices)))->certainty)
#define best_lengths ( choices   )     (first_node (choices) ? ((A_CHOICE*) (first_node (choices)))->lengths : NULL)
#define best_rating ( choices   )     (((A_CHOICE*) (first_node (choices)))->rating)
#define best_string ( choices   )     (first_node (choices) ? ((A_CHOICE*) (first_node (choices)))->string : NULL)
#define class_certainty ( choice   )     (((A_CHOICE*) (choice))->certainty)
#define class_config ( choice   )     (((A_CHOICE*) (choice))->config)
#define class_lengths ( choice   )     (((A_CHOICE*) (choice))->lengths)
#define class_permuter ( choice   )     (((A_CHOICE*) (choice))->permuter)
#define class_rating ( choice   )     (((A_CHOICE*) (choice))->rating)
#define class_script_id ( choice   )     (((A_CHOICE*) (choice))->script_id)
#define class_string ( choice   )     (((A_CHOICE*) (choice))->string)
#define free_choices (  )     destroy_nodes ((c), free_choice)
#define print_bold ( string   )     cprintf ("\033&dB%s\033&d@", string)

Typedef Documentation

typedef struct choicestruct A_CHOICE
typedef LIST CHOICES

Function Documentation

CHOICES append_char_choice ( CHOICES  ratings,
const char *  string,
const char *  lengths,
float  rating,
float  certainty,
inT8  config,
int  script_id 
)
const char* class_fragment_lengths ( A_CHOICE choice  )  [inline]
bool class_fragment_mark ( A_CHOICE choice  )  [inline]
void clear_choice ( A_CHOICE choice  ) 
void clone_choice ( A_CHOICE choice_2,
A_CHOICE choice_1 
) [inline]
void clone_choice ( A_CHOICE choice,
const char *  string,
const char *  lengths,
float  rating,
float  certainty,
inT8  permuter,
bool  fragment_mark,
const char *  fragment_lengths 
)
CHOICES copy_choices ( CHOICES  choices  ) 
void free_choice ( void *  arg  ) 
A_CHOICE* get_best_free_other ( A_CHOICE choice_1,
A_CHOICE choice_2 
)
A_CHOICE* new_choice ( const char *  string,
const char *  lengths,
float  rating,
float  certainty,
inT8  config,
char  permuter 
)
A_CHOICE* new_choice ( const char *  string,
const char *  lengths,
float  rating,
float  certainty,
inT8  config,
int  script_id,
char  permuter,
bool  fragment_mark,
const char *  fragment_lengths 
)
void set_class_fragment_mark ( A_CHOICE choice,
bool  mark 
) [inline]
Generated on Sun Jul 18 17:10:51 2010 for Tesseract by  doxygen 1.6.3