#include <stdio.h>#include <string.h>#include "../cl/macros.h"#include "../cl/corpus.h"#include "../cl/attributes.h"#include "../cl/cdaccess.h"#include <sys/types.h>#include <unistd.h>#include <stdlib.h>#include "sgml-print.h"#include "print_align.h"#include "cqp.h"#include "options.h"#include "corpmanag.h"#include "concordance.h"#include "attlist.h"#include <sys/time.h>#include <pwd.h>| #define SUBST_ALL (SUBST_LT | SUBST_GT | SUBST_AMP | SUBST_QUOT) |
| #define SUBST_AMP 4 |
| #define SUBST_GT 2 |
| #define SUBST_LT 1 |
| #define SUBST_QUOT 8 |
| char * sgml_convert_string | ( | char * | s | ) |
References MAX_LINE_LENGTH.
| void sgml_print_aligned_line | ( | FILE * | stream, | |
| char * | attribute_name, | |||
| char * | line | |||
| ) |
References sgml_puts(), and SUBST_ALL.
Referenced by printAlignedStrings().
| void sgml_print_context | ( | ContextDescriptor * | cd, | |
| FILE * | stream | |||
| ) |
References CHAR_CONTEXT, _context_description_block::left_structure_name, _context_description_block::left_type, _context_description_block::left_width, _context_description_block::right_structure_name, _context_description_block::right_type, _context_description_block::right_width, STRUC_CONTEXT, and WORD_CONTEXT.
Referenced by sgml_print_corpus_header().
| void sgml_print_corpus_header | ( | CorpusList * | cl, | |
| FILE * | stream | |||
| ) |
References CD, cl::corpus, cl::mother_name, cl::name, TCorpus::name, passwd, TCorpus::registry_name, sgml_print_context(), and cl::size.
Referenced by print_corpus_info_header().
| char * sgml_print_field | ( | FieldType | field, | |
| int | start | |||
| ) |
References KeywordField, MatchField, NoField, and TargetField.
| void sgml_print_group | ( | Group * | group, | |
| int | expand, | |||
| FILE * | fd | |||
| ) |
References _grouptable::count_cells, _id_cnt_mapping::freq, Group_id2str(), _grouptable::nr_cells, _id_cnt_mapping::s, sgml_puts(), SUBST_ALL, and _id_cnt_mapping::t.
Referenced by print_group().
| void sgml_print_output | ( | CorpusList * | cl, | |
| FILE * | stream, | |||
| int | interactive, | |||
| ContextDescriptor * | cd, | |||
| int | first, | |||
| int | last | |||
| ) |
References _print_descr_rec_::AfterConcordance, _print_descr_rec_::AfterLine, _context_description_block::alignedCorpora, _Attribute::any, _attrbuf::attribute, _context_description_block::attributes, _print_descr_rec_::BeforeConcordance, _print_descr_rec_::BeforeLine, broken_pipe, CD, compose_kwic_line(), ConcLineHorizontal, cl::corpus, _ConcLineField::end_position, KeywordField, cl::keywords, line, _attlist::list, MatchEndField, MatchField, _attrbuf::next, NoField, printAlignedStrings(), _context_description_block::printStructureTags, cl::range, SGMLPrintDescriptionRecord, cl::size, cl::sortidx, _ConcLineField::start_position, _attrbuf::status, TargetField, cl::targets, and _ConcLineField::type.
Referenced by print_output().
| void sgml_puts | ( | FILE * | fd, | |
| char * | s, | |||
| int | flags | |||
| ) |
References SUBST_AMP, SUBST_GT, SUBST_LT, and SUBST_QUOT.
Referenced by sgml_print_aligned_line(), and sgml_print_group().
Referenced by printAlignedStrings(), and sgml_print_output().
1.6.1