Lingua-XFST
view release on metacpan or search on metacpan
privates/xfsm_api.h view on Meta::CPAN
#define FST_determinize_p(X) (X)->flags.determinize_p
#define FST_interactive_p(X) (X)->flags.interactive_p
#define FST_last_errors_p(X) (X)->flags.last_errors_p
#define FST_lex_errors_p(X) (X)->flags.lex_errors_p
#define FST_minimize_p(X) (X)->flags.minimize_p
#define FST_name_nets_p(X) (X)->flags.name_nets_p
#define FST_obey_flags_p(X) ((X)->interface).obey_flags_p
#define FST_prune_p(X) (X)->flags.prune_p
#define FST_sq_final_strings_arcs(X) (X)->flags.sq_final_strings_arcs
#define FST_sq_intern_strings_arcs(X) (X)->flags.sq_intern_strings_arcs
#define FST_sq_string_onelong(X) (X)->flags.sq_string_onelong
#define FST_reclaim_p(X) (X)->flags.reclaim_p
#define FST_recode_cp1252(X) (X)->flags.recode_cp1252
#define FST_unicode_p(X) (X)->flags.unicode_p
#define FST_verbose_p(X) (X)->flags.verbose_p
#define FST_embedded_command_p(X) (X)->flags.embedded_command_p
#define FST_cur_pos(X) (X)->pretty_print.cur_pos
#define FST_indent(X) (X)->pretty_print.indent
#define FST_line_pos(X) (X)->pretty_print.line_pos
#define FST_output_buffer(X) (X)->pretty_print.output_buffer
#define FST_output_buffer_size(X) (X)->pretty_print.output_buffer_size
#define FST_right_margin(X) (X)->pretty_print.right_margin
#define FST_eol_string(X) (X)->pretty_print.eol_string
#define FST_max_path_index_pos(X) (X)->index.max_path_index_pos
#define FST_path_index_pos(X) (X)->index.path_index_pos
#define FST_path_index_vector(X) (X)->index.path_index_vector
#define FST_ignore_white_space_p(X) (X)->parse.ignore_white_space_p
#define FST_zero_to_epsilon_p(X) (X)->parse.zero_to_epsilon_p
#define FST_input_seq_size(X) (X)->parse.input_seq_size
#define FST_input_seq(X) (X)->parse.input_seq
#define FST_lower_match(X) (X)->parse.lower_match
#define FST_match_table(X) (X)->parse.match_table
#define FST_upper_match(X) (X)->parse.upper_match
#define FST_pars_tbl_obsolete(X) (X)->parse.obsolete_parse_tables
#define FST_altchain_p(X) (X)->bin_io.altchain_p
#define FST_status_bar_p(X) (X)->bin_io.status_bar_p
#define FST_status_bar_increment(X) (X)->bin_io.status_bar_increment
#define FST_arc_count(X) (X)->bin_io.arc_count
#define FST_cur_byte(X) (X)->bin_io.cur_byte
#define FST_last_header(X) (X)->bin_io.last_header
#define FST_next_header(X) (X)->bin_io.next_header
#define FST_cur_state(X) (X)->bin_io.cur_state
#define FST_state_stack(X) (X)->bin_io.state_stack
#define FST_attributes(X) (X)->bin_io.attributes
#define FST_attribute_count(X) (X)->bin_io.attribute_count
#define FST_defined_nets(X) (X)->define.net_table
#define FST_defined_sets(X) (X)->define.set_table
FST_CNTXTptr get_default_cfsm_context(void);
/* Returns a pointer to the structure allocated and initialized by
initialize_cfsm(). */
int check_for_input_encoding(int *char_encoding, FILE *stream);
/* Looks at the current position in the stream to see if it gives
an indication of the character encoding for the file, that is,
either a BOM (Byte Order Mark) or an Emacs-style character
encoding declaration of the form
# -*- coding: utf-8 -*-
or
# -*- coding: iso-8859-1 -*-
If that is the case, the *char_encoding is set to either
CHAR_ENC_UTF_8 or CHAR_ENC_ISO_8859_1 and the file position
in the stream moves to the first byte beyond the character
encoding indication. If no character encoding indication is
found *char_encoding is set to CHAR_ENC_UNKNOWN and the file
position in the stream remains unchanged. Returns 0 unless
some unexpected error occurs. In that case the return value
is 1. */
int set_char_encoding(FST_CNTXTptr cntxt, int code);
/* Sets the character encoding mode of the cntxt. The code must be
either CHAR_ENC_UTF_8 or CHAR_ENC_ISO_8859_1. Returns 0 on
success, 1 on error. */
#define IY_PRINT_PAIRS (int_parameters())->alphabet.print_pairs
/* If the value is 1, the apply routines display both the input and the
output side of the labels matching the input. By default only the
output side is shown. Default is 0. */
#define IY_PRINT_SIGMA (int_parameters())->io.print_sigma
/* If the value is 1, the sigma of a network is printed when the
network is printed. Default is 1. */
#define IY_PRINT_SPACE (int_parameters())->io.print_space
/* If the value is 1, a space is printed to separate the symbols
in the output of many display commands. Default is 0. */
#define IY_MAX_STATE_VISITS (int_parameters())->io.max_state_visits
/* The setting IY_MAX_STATE_VISITS determines the number of times the
same state can be visited along a path. If the value is 1, loops
are ignored. If the value is 2, a looping path is traversed just
one time. Default is 1. */
#define IY_MINIMIZE_P (int_parameters())->general.minimal
/* The setting of IY_MINIMIZE_P is used by many network operations
to decide whether the result should be minimized. If the value
is 1, the function minimize_net() is called. If the value is 0,
the result is not minimized. Default is 1. */
#define IY_RECURSIVE_DEFINE (int_parameters())->general.recursive_define
/* If the value is 1, definitions such as define_regex_net("A", "a | A b")
yields a the left-recursive language a b* instead of the union of
a and Ab. Default is 0. */
#define IY_VERBOSE (int_parameters())->general.verbose
/* If the value is 1, cfsm prints reports about its activities such
as opening and closing of files. If the value is 0, no messages
other than error messages are printed. Default is 1. */
#define IY_OBEY_FLAGS (int_parameters())->io.obey_flags
/* If the value is 1, flag diacritic constraints are enforced. If
the value is 0, flag diacritic symbols are treated as epsilons.
Default is 1. */
#define IY_SHOW_FLAGS (int_parameters())->io.show_flags
/* If the value is 1, flag diacritic symbols are displayed in the
( run in 1.318 second using v1.01-cache-2.11-cpan-8dfa8b56332 )