/* */
1 /* -*- coding: utf-8; mode: c++; -*-
2 * Concordance to A. S. Pushkin's Works - Functions
3 * $Id: DeclareFunctions.hpp 16 2013-11-04 16:38:10Z isao $
4 * Copyright (C) 2012, isao yasuda
5 */
6
7 #ifndef CONCORDANCE_FUNCTION
8 #define CONCORDANCE_FUNCTION
9 #include "Query.hpp"
10
11 void config_load(const char* fn, std::map<std::string, std::string>& cm);
12 void exp_tokenizer(std::string& line, std::vector<std::string>& sv);
13 void corpus_tokenizer(std::string& line, std::vector<std::string>& sv);
14 void emphword(std::string& l0, std::string& l1, std::string& l2,
15 std::string& o1, std::string& o2, int pos,
16 int cprelen, int caftlen);
17 bool checkfno(const char* cs, int fno);
18 void escapetag(std::string& s);
19 void ssclear(std::stringstream& ss);
20 int calckind(std::string& s, std::vector<int>& gv, int& kind);
21 int checkquery(std::string& s, std::vector<int>& gv, std::vector<query>& qv);
22 void term(int n);
23
24 #endif
/* */