xapian-core
1.4.27
|
Go to the source code of this file.
Classes | |
struct | m_pair |
struct | input |
struct | include |
struct | tokeniser |
struct | name |
struct | literalstring |
struct | amongvec |
struct | among |
struct | grouping |
struct | node |
struct | analyser |
struct | generator |
struct | options |
Macros | |
#define | SNOWBALL_VERSION "2.0.0" |
#define | true 1 |
#define | false 0 |
#define | MALLOC check_malloc |
#define | FREE check_free |
#define | NEW(type, p) struct type * p = (struct type *) MALLOC(sizeof(struct type)) |
#define | NEWVEC(type, p, n) struct type * p = (struct type *) MALLOC(sizeof(struct type) * (n)) |
#define | SIZE(p) ((int *)(p))[-1] |
#define | CAPACITY(p) ((int *)(p))[-2] |
#define | MOVE_TO_B(B, LIT) move_to_b(B, sizeof(LIT) / sizeof(LIT[0]), LIT) |
Typedefs | |
typedef unsigned char | byte |
typedef unsigned short | symbol |
Functions | |
symbol * | create_b (int n) |
void | report_b (FILE *out, const symbol *p) |
void | lose_b (symbol *p) |
symbol * | increase_capacity (symbol *p, int n) |
symbol * | move_to_b (symbol *p, int n, const symbol *q) |
symbol * | add_to_b (symbol *p, int n, const symbol *q) |
symbol * | copy_b (const symbol *p) |
char * | b_to_s (const symbol *p) |
symbol * | add_s_to_b (symbol *p, const char *s) |
struct str * | str_new (void) |
void | str_delete (struct str *str) |
void | str_append (struct str *str, struct str *add) |
void | str_append_ch (struct str *str, char add) |
void | str_append_b (struct str *str, symbol *q) |
void | str_append_string (struct str *str, const char *s) |
void | str_append_int (struct str *str, int i) |
void | str_clear (struct str *str) |
void | str_assign (struct str *str, char *s) |
struct str * | str_copy (struct str *old) |
symbol * | str_data (struct str *str) |
int | str_len (struct str *str) |
int | str_back (struct str *str) |
int | get_utf8 (const symbol *p, int *slot) |
int | put_utf8 (int ch, symbol *p) |
void | output_str (FILE *outfile, struct str *str) |
symbol * | get_input (const char *filename) |
struct tokeniser * | create_tokeniser (symbol *b, char *file) |
int | read_token (struct tokeniser *t) |
const char * | name_of_token (int code) |
void | disable_token (struct tokeniser *t, int code) |
void | close_tokeniser (struct tokeniser *t) |
void * | check_malloc (int n) |
void | check_free (void *p) |
void | print_program (struct analyser *a) |
struct analyser * | create_analyser (struct tokeniser *t) |
void | close_analyser (struct analyser *a) |
void | read_program (struct analyser *a) |
struct generator * | create_generator (struct analyser *a, struct options *o) |
void | close_generator (struct generator *g) |
void | write_char (struct generator *g, int ch) |
void | write_newline (struct generator *g) |
void | write_string (struct generator *g, const char *s) |
void | write_int (struct generator *g, int i) |
void | write_b (struct generator *g, symbol *b) |
void | write_str (struct generator *g, struct str *str) |
void | write_comment_content (struct generator *g, struct node *p) |
void | write_generated_comment_content (struct generator *g) |
void | write_start_comment (struct generator *g, const char *comment_start, const char *comment_end) |
int | K_needed (struct generator *g, struct node *p) |
int | repeat_restore (struct generator *g, struct node *p) |
void | generate_program_c (struct generator *g) |
void | generate_program_java (struct generator *g) |
void | generate_program_csharp (struct generator *g) |
void | generate_program_pascal (struct generator *g) |
void | generate_program_python (struct generator *g) |
void | generate_program_js (struct generator *g) |
void | generate_program_rust (struct generator *g) |
void | generate_program_go (struct generator *g) |
Variables | |
int | space_count |
#define CAPACITY | ( | p | ) | ((int *)(p))[-2] |
Definition at line 18 of file header.h.
Referenced by Xapian::SnowballStemImplementation::assign_to(), Xapian::SnowballStemImplementation::replace_s(), and Xapian::SnowballStemImplementation::slice_to().
#define FREE check_free |
#define MALLOC check_malloc |
#define NEW | ( | type, | |
p | |||
) | struct type * p = (struct type *) MALLOC(sizeof(struct type)) |
#define NEWVEC | ( | type, | |
p, | |||
n | |||
) | struct type * p = (struct type *) MALLOC(sizeof(struct type) * (n)) |
#define SIZE | ( | p | ) | ((int *)(p))[-1] |
Definition at line 17 of file header.h.
Referenced by Xapian::SnowballStemImplementation::eq_v(), Xapian::SnowballStemImplementation::eq_v_b(), Xapian::SnowballStemImplementation::insert_v(), Xapian::SnowballStemImplementation::len_utf8(), Xapian::SnowballStemImplementation::replace_s(), and Xapian::SnowballStemImplementation::slice_from_v().
enum analyser_modes |
enum name_types |
enum special_labels |
enum token_codes |
enum uplus_modes |
char* b_to_s | ( | const symbol * | p | ) |
void check_free | ( | void * | p | ) |
void* check_malloc | ( | int | n | ) |
void close_analyser | ( | struct analyser * | a | ) |
void close_generator | ( | struct generator * | g | ) |
void close_tokeniser | ( | struct tokeniser * | t | ) |
symbol* create_b | ( | int | n | ) |
void disable_token | ( | struct tokeniser * | t, |
int | code | ||
) |
void generate_program_c | ( | struct generator * | g | ) |
void generate_program_csharp | ( | struct generator * | g | ) |
void generate_program_go | ( | struct generator * | g | ) |
void generate_program_java | ( | struct generator * | g | ) |
void generate_program_js | ( | struct generator * | g | ) |
void generate_program_pascal | ( | struct generator * | g | ) |
void generate_program_python | ( | struct generator * | g | ) |
void generate_program_rust | ( | struct generator * | g | ) |
symbol* get_input | ( | const char * | filename | ) |
int get_utf8 | ( | const symbol * | p, |
int * | slot | ||
) |
void lose_b | ( | symbol * | p | ) |
const char* name_of_token | ( | int | code | ) |
void output_str | ( | FILE * | outfile, |
struct str * | str | ||
) |
void print_program | ( | struct analyser * | a | ) |
int put_utf8 | ( | int | ch, |
symbol * | p | ||
) |
void read_program | ( | struct analyser * | a | ) |
int read_token | ( | struct tokeniser * | t | ) |
void report_b | ( | FILE * | out, |
const symbol * | p | ||
) |
void str_append | ( | struct str * | str, |
struct str * | add | ||
) |
void str_append_b | ( | struct str * | str, |
symbol * | q | ||
) |
void str_append_ch | ( | struct str * | str, |
char | add | ||
) |
void str_append_int | ( | struct str * | str, |
int | i | ||
) |
void str_append_string | ( | struct str * | str, |
const char * | s | ||
) |
void str_assign | ( | struct str * | str, |
char * | s | ||
) |
int str_back | ( | struct str * | str | ) |
void str_clear | ( | struct str * | str | ) |
struct str* str_copy | ( | struct str * | old | ) |
symbol* str_data | ( | struct str * | str | ) |
void str_delete | ( | struct str * | str | ) |
int str_len | ( | struct str * | str | ) |
struct str* str_new | ( | void | ) |
void write_char | ( | struct generator * | g, |
int | ch | ||
) |
void write_generated_comment_content | ( | struct generator * | g | ) |
void write_int | ( | struct generator * | g, |
int | i | ||
) |
void write_newline | ( | struct generator * | g | ) |
void write_start_comment | ( | struct generator * | g, |
const char * | comment_start, | ||
const char * | comment_end | ||
) |
void write_str | ( | struct generator * | g, |
struct str * | str | ||
) |
void write_string | ( | struct generator * | g, |
const char * | s | ||
) |
int space_count |