Word Unperfect
public
Read
Owner: themaster
Branch: main
Commits: 0
Git CLI clone URL
git clone https://www.xt-emporium.com/git/word-unperfect.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
word-unperfect
/
rev
/
wp_document_analyzer.h
File editor
#ifndef WP_DOCUMENT_ANALYZER_H #define WP_DOCUMENT_ANALYZER_H #include "wp_control_codes.h" #include "wp_file_format.h" #include "wp_layout_shared.h" #include "wp_variable_codes.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> typedef struct WpDocumentStats { size_t records_seen; size_t bytes_consumed; size_t top_level_records_seen; size_t top_level_bytes_consumed; size_t char_records; size_t single_byte_codes; size_t fixed_length_codes; size_t variable_length_codes; size_t incomplete_records; size_t mismatched_trailers; size_t payload_bytes; size_t ascii_control_records; size_t printable_text_records; size_t single_byte_format_records; size_t packet_records; size_t line_break_records; size_t page_break_records; size_t hard_returns; size_t soft_returns; size_t hard_pages; size_t soft_pages; size_t tabs; size_t indents; size_t dormant_returns; size_t dormant_pages; size_t normalized_spaces; size_t normalized_hyphens; size_t whitespace_gate_records; size_t render_dirty_gate_records; size_t dirty_exempt_records; size_t dirty_neutral_records; size_t extension_scan_stop_records; size_t tsm_highlight_records; size_t hyphenation_suppression_records; size_t hidden_function_gate_records; size_t unknown_single_byte_records; size_t display_columns; size_t fixed_known_packets; size_t fixed_unknown_packets; size_t fixed_mirrored_packets; size_t fixed_zero_payload_packets; size_t extended_character_packets; size_t attribute_begin_packets; size_t attribute_end_packets; size_t d0_initial_format_tables; size_t d0_format_table_words; size_t d0_format_table_groups; size_t d0_format_table_sentinels; size_t d0_format_table_nonmonotonic_steps; uint16_t d0_format_table_first_step; uint16_t d0_format_table_max_value; size_t d4_layout_state_records; size_t d4_layout_state_payload_bytes; size_t d4_pending_span_records; size_t d4_line_window_records; size_t d4_line_window_extension_bytes; size_t d4_line_metric_records; size_t d4_line_metric_extension_bytes; size_t d4_extension_fragment_records; size_t d4_extension_fragment_bytes; size_t d4_line_build_checkpoint_records; size_t d4_word_pair_checkpoint_records; size_t d4_position_marker_records; size_t d4_control_word_records; size_t d4_compact_metric_records; size_t d4_layout_anchor_records; size_t d4_unknown_records; size_t d4_unknown_payload_bytes; size_t d4_trailing_unparsed_bytes; size_t d4_extension_block_records; size_t d4_extension_block_bytes; size_t variable_structural_packets; size_t variable_generic_packets; size_t d1_definition_packets; size_t d2_outline_packets; size_t d3_generated_text_packets; size_t repeat_group_packets; size_t delayed_text_packets; size_t box_object_packets; size_t table_layout_packets; size_t system_command_packets; size_t max_record_length; size_t max_declared_payload; uint8_t max_declared_code; uint8_t max_declared_sub_code; size_t nested_stream_hints; size_t nested_streams_analyzed; size_t nested_stream_records; size_t nested_stream_bytes; size_t nested_stream_max_depth; size_t nested_stream_parse_gaps; size_t nested_stream_recursion_limits; size_t variable_repeat_dispatch_packets; size_t variable_repeat_total; size_t variable_extension_scan_packets; size_t variable_refcount_increment_packets; size_t variable_refcount_decrement_packets; size_t scanner_bypass_packets; size_t code_histogram[256]; size_t variable_subcode_histogram[256]; size_t variable_action_histogram[WP_VARIABLE_ACTION_COUNT]; } WpDocumentStats; void wp_document_stats_clear(WpDocumentStats *stats); bool wp_document_analyze_stream(WpLayoutGlobals *wl, WpDocumentStats *stats); bool wp_document_analyze_loaded_file(WpLoadedFile *file, WpDocumentStats *stats); bool wp_document_analyze_file(const char *filename, WpDocumentStats *stats); const char *wp_document_code_label(uint8_t code, uint8_t sub_code); #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
main
Visibility
public
Your access
Read
Remote
None
File activity
View file history