|
xapian-core
2.0.0
|
#include <stdio.h>
Include dependency graph for header.h: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 "3.0.0" |
| #define | true 1 |
| #define | false 0 |
| #define | MALLOC check_malloc |
| #define | FREE check_free |
| #define | NEW(TYPE, V) struct TYPE * V = (struct TYPE *) MALLOC(sizeof(struct TYPE)) |
| #define | NEWVEC(TYPE, V, N) struct TYPE * V = (struct TYPE *) MALLOC(sizeof(struct TYPE) * (N)) |
| #define | SIZE(p) ((const int *)(p))[-1] |
| #define | SET_SIZE(p, n) ((int *)(p))[-1] = (n) |
| #define | ADD_TO_SIZE(p, n) ((int *)(p))[-1] += (n) |
| #define | CAPACITY(p) ((int *)(p))[-2] |
| #define | add_literal_to_s(P, LIT) add_slen_to_s(P, "" LIT, sizeof(LIT) - 1) |
| #define | hold_token(T) ((T)->token_held = true) |
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_b (symbol *p, int n) |
| symbol * | add_to_b (symbol *p, const symbol *q, int n) |
| symbol * | copy_b (const symbol *p) |
| char * | b_to_sz (const symbol *p) |
| symbol * | add_symbol_to_b (symbol *p, symbol ch) |
| byte * | create_s (int n) |
| byte * | create_s_from_sz (const char *s) |
| byte * | create_s_from_data (const char *s, int n) |
| void | report_s (FILE *out, const byte *p) |
| void | lose_s (byte *p) |
| byte * | increase_capacity_s (byte *p, int n) |
| byte * | ensure_capacity_s (byte *p, int n) |
| byte * | copy_s (const byte *p) |
| byte * | add_s_to_s (byte *p, const byte *s) |
| byte * | add_slen_to_s (byte *p, const char *s, int n) |
| byte * | add_sz_to_s (byte *p, const char *s) |
| byte * | add_char_to_s (byte *p, char ch) |
| struct str * | str_new (void) |
| void | str_delete (struct str *str) |
| void | str_append (struct str *str, const struct str *add) |
| void | str_append_ch (struct str *str, char add) |
| void | str_append_s (struct str *str, const byte *q) |
| void | str_append_string (struct str *str, const char *s) |
| void | str_append_int (struct str *str, int i) |
| void | str_append_wchar_as_utf8 (struct str *str, symbol ch) |
| void | str_clear (struct str *str) |
| void | str_assign (struct str *str, const char *s) |
| struct str * | str_copy (const struct str *old) |
| byte * | str_data (const struct str *str) |
| int | str_len (const struct str *str) |
| int | str_back (const struct str *str) |
| void | str_pop (const struct str *str) |
| void | str_pop_n (const struct str *str, int n) |
| void | output_str (FILE *outfile, struct str *str) |
| int | get_utf8 (const symbol *p, int *slot) |
| int | put_utf8 (int ch, symbol *p) |
| byte * | get_input (const char *filename) |
| struct tokeniser * | create_tokeniser (byte *b, char *file) |
| int | read_token (struct tokeniser *t) |
| int | peek_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 (size_t 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, unsigned localise_mask) |
| Read and analyse the program. More... | |
| 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_wchar_as_utf8 (struct generator *g, symbol ch) |
| void | write_int (struct generator *g, int i) |
| void | write_hex4 (struct generator *g, int ch) |
| void | write_symbol (struct generator *g, symbol s) |
| void | write_s (struct generator *g, const byte *b) |
| void | write_str (struct generator *g, struct str *str) |
| void | write_c_relop (struct generator *g, int relop) |
| void | write_comment_content (struct generator *g, struct node *p, const char *end) |
| 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) |
| int | just_return_on_fail (struct generator *g) |
| int | tailcallable (struct generator *g, struct node *p) |
| void | generate_program_c (struct generator *g) |
| void | generate_program_java (struct generator *g) |
| void | generate_program_dart (struct generator *g) |
| void | generate_program_csharp (struct generator *g) |
| void | generate_program_pascal (struct generator *g) |
| void | generate_program_php (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) |
| void | generate_program_ada (struct generator *g) |
Variables | |
| int | space_count |
| #define add_literal_to_s | ( | P, | |
| LIT | |||
| ) | add_slen_to_s(P, "" LIT, sizeof(LIT) - 1) |
| #define FREE check_free |
| #define MALLOC check_malloc |
| #define NEW | ( | TYPE, | |
| V | |||
| ) | struct TYPE * V = (struct TYPE *) MALLOC(sizeof(struct TYPE)) |
| #define NEWVEC | ( | TYPE, | |
| V, | |||
| N | |||
| ) | struct TYPE * V = (struct TYPE *) MALLOC(sizeof(struct TYPE) * (N)) |
| enum analyser_modes |
| enum name_types |
| enum special_labels |
| enum token_codes |
| enum uplus_modes |
| char* b_to_sz | ( | const symbol * | p | ) |
| void check_free | ( | void * | p | ) |
| void* check_malloc | ( | size_t | n | ) |
| void close_analyser | ( | struct analyser * | a | ) |
| void close_generator | ( | struct generator * | g | ) |
| void close_tokeniser | ( | struct tokeniser * | t | ) |
| symbol* create_b | ( | int | n | ) |
| byte* create_s | ( | int | n | ) |
Referenced by Xapian::Internal::Snowball::Arabic::Arabic(), Xapian::Internal::Snowball::Armenian::Armenian(), Xapian::Internal::Snowball::Basque::Basque(), Xapian::Internal::Snowball::Catalan::Catalan(), Xapian::Internal::Snowball::Danish::Danish(), Xapian::Internal::Snowball::Dutch::Dutch(), Xapian::Internal::Snowball::DutchPorter::DutchPorter(), Xapian::Internal::Snowball::Earlyenglish::Earlyenglish(), Xapian::Internal::Snowball::English::English(), Xapian::Internal::Snowball::Esperanto::Esperanto(), Xapian::Internal::Snowball::Estonian::Estonian(), Xapian::Internal::Snowball::Finnish::Finnish(), Xapian::Internal::Snowball::French::French(), Xapian::Internal::Snowball::German::German(), Xapian::Internal::Snowball::Greek::Greek(), Xapian::Internal::Snowball::Hindi::Hindi(), Xapian::Internal::Snowball::Hungarian::Hungarian(), Xapian::Internal::Snowball::Indonesian::Indonesian(), Xapian::Internal::Snowball::Irish::Irish(), Xapian::Internal::Snowball::Italian::Italian(), Xapian::Internal::Snowball::Lithuanian::Lithuanian(), Xapian::Internal::Snowball::Lovins::Lovins(), Xapian::Internal::Snowball::Nepali::Nepali(), Xapian::Internal::Snowball::Norwegian::Norwegian(), Xapian::Internal::Snowball::Polish::Polish(), Xapian::Internal::Snowball::Porter::Porter(), Xapian::Internal::Snowball::Portuguese::Portuguese(), Xapian::Internal::Snowball::Romanian::Romanian(), Xapian::Internal::Snowball::Russian::Russian(), Xapian::Internal::Snowball::Serbian::Serbian(), Xapian::Internal::Snowball::Spanish::Spanish(), Xapian::Internal::Snowball::Swedish::Swedish(), Xapian::Internal::Snowball::Tamil::Tamil(), Xapian::Internal::Snowball::Turkish::Turkish(), and Xapian::Internal::Snowball::Yiddish::Yiddish().
| byte* create_s_from_data | ( | const char * | s, |
| int | n | ||
| ) |
| byte* create_s_from_sz | ( | const char * | s | ) |
| void disable_token | ( | struct tokeniser * | t, |
| int | code | ||
| ) |
| void generate_program_ada | ( | struct generator * | g | ) |
| void generate_program_c | ( | struct generator * | g | ) |
| void generate_program_csharp | ( | struct generator * | g | ) |
| void generate_program_dart | ( | 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_php | ( | struct generator * | g | ) |
| void generate_program_python | ( | struct generator * | g | ) |
| void generate_program_rust | ( | struct generator * | g | ) |
| byte* get_input | ( | const char * | filename | ) |
| int get_utf8 | ( | const symbol * | p, |
| int * | slot | ||
| ) |
| int just_return_on_fail | ( | struct generator * | g | ) |
| void lose_b | ( | symbol * | p | ) |
| void lose_s | ( | byte * | p | ) |
Definition at line 38 of file utilities.cc.
Referenced by Xapian::Internal::Snowball::Arabic::close_env(), Xapian::Internal::Snowball::Armenian::close_env(), Xapian::Internal::Snowball::Basque::close_env(), Xapian::Internal::Snowball::Catalan::close_env(), Xapian::Internal::Snowball::Danish::close_env(), Xapian::Internal::Snowball::Dutch::close_env(), Xapian::Internal::Snowball::DutchPorter::close_env(), Xapian::Internal::Snowball::Earlyenglish::close_env(), Xapian::Internal::Snowball::English::close_env(), Xapian::Internal::Snowball::Esperanto::close_env(), Xapian::Internal::Snowball::Estonian::close_env(), Xapian::Internal::Snowball::Finnish::close_env(), Xapian::Internal::Snowball::French::close_env(), Xapian::Internal::Snowball::German::close_env(), Xapian::Internal::Snowball::Greek::close_env(), Xapian::Internal::Snowball::Hindi::close_env(), Xapian::Internal::Snowball::Hungarian::close_env(), Xapian::Internal::Snowball::Indonesian::close_env(), Xapian::Internal::Snowball::Irish::close_env(), Xapian::Internal::Snowball::Italian::close_env(), Xapian::Internal::Snowball::Lithuanian::close_env(), Xapian::Internal::Snowball::Lovins::close_env(), Xapian::Internal::Snowball::Nepali::close_env(), Xapian::Internal::Snowball::Norwegian::close_env(), Xapian::Internal::Snowball::Polish::close_env(), Xapian::Internal::Snowball::Porter::close_env(), Xapian::Internal::Snowball::Portuguese::close_env(), Xapian::Internal::Snowball::Romanian::close_env(), Xapian::Internal::Snowball::Russian::close_env(), Xapian::Internal::Snowball::Serbian::close_env(), Xapian::Internal::Snowball::Spanish::close_env(), Xapian::Internal::Snowball::Swedish::close_env(), Xapian::Internal::Snowball::Tamil::close_env(), Xapian::Internal::Snowball::Turkish::close_env(), and Xapian::Internal::Snowball::Yiddish::close_env().
| const char* name_of_token | ( | int | code | ) |
| void output_str | ( | FILE * | outfile, |
| struct str * | str | ||
| ) |
| int peek_token | ( | struct tokeniser * | t | ) |
| void print_program | ( | struct analyser * | a | ) |
| int put_utf8 | ( | int | ch, |
| symbol * | p | ||
| ) |
| void read_program | ( | struct analyser * | a, |
| unsigned | localise_mask | ||
| ) |
Read and analyse the program.
| localise_mask | bitmask of variable types the generator can localise |
| int read_token | ( | struct tokeniser * | t | ) |
| void report_b | ( | FILE * | out, |
| const symbol * | p | ||
| ) |
| void report_s | ( | FILE * | out, |
| const byte * | p | ||
| ) |
| void str_append | ( | struct str * | str, |
| const struct str * | add | ||
| ) |
| void str_append_ch | ( | struct str * | str, |
| char | add | ||
| ) |
| void str_append_int | ( | struct str * | str, |
| int | i | ||
| ) |
| void str_append_s | ( | struct str * | str, |
| const byte * | q | ||
| ) |
| void str_append_string | ( | struct str * | str, |
| const char * | s | ||
| ) |
| void str_append_wchar_as_utf8 | ( | struct str * | str, |
| symbol | ch | ||
| ) |
| void str_assign | ( | struct str * | str, |
| const char * | s | ||
| ) |
| int str_back | ( | const struct str * | str | ) |
| void str_clear | ( | struct str * | str | ) |
| struct str* str_copy | ( | const struct str * | old | ) |
| byte* str_data | ( | const struct str * | str | ) |
| void str_delete | ( | struct str * | str | ) |
| int str_len | ( | const struct str * | str | ) |
| struct str* str_new | ( | void | ) |
| void str_pop | ( | const struct str * | str | ) |
| void str_pop_n | ( | const struct str * | str, |
| int | n | ||
| ) |
| void write_c_relop | ( | struct generator * | g, |
| int | relop | ||
| ) |
| void write_char | ( | struct generator * | g, |
| int | ch | ||
| ) |
| void write_generated_comment_content | ( | struct generator * | g | ) |
| void write_hex4 | ( | struct generator * | g, |
| int | ch | ||
| ) |
| 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 | ||
| ) |
|
extern |